PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwline()

LWLINE* lwgeom_as_lwline ( const LWGEOM lwgeom)

Definition at line 170 of file lwgeom.c.

171 {
172  if ( lwgeom == NULL ) return NULL;
173  if ( lwgeom->type == LINETYPE )
174  return (LWLINE *)lwgeom;
175  else return NULL;
176 }
#define LINETYPE
Definition: liblwgeom.h:86
uint8_t type
Definition: liblwgeom.h:399

References LINETYPE, and LWGEOM::type.

Referenced by _lwt_AddEdge(), _lwt_AddLine(), _lwt_AddLineEdge(), _lwt_AddPoint(), _lwt_FindAdjacentEdges(), extract_pointarrays_from_lwgeom(), geography_centroid(), geometry_to_path(), gserialized_distance_nd(), lwcompound_contains_point(), LWGEOM_addpoint(), lwgeom_cpa_within(), LWGEOM_dumppoints(), lwgeom_interpolate_point(), LWGEOM_line_interpolate_point(), LWGEOM_line_locate_point(), LWGEOM_line_substring(), LWGEOM_makepoly(), lwgeom_offsetcurve(), LWGEOM_removepoint(), lwgeom_segmentize_sphere(), LWGEOM_setpoint_linestring(), lwgeom_swap_ordinates(), lwgeom_tcpa(), lwt_ModEdgeSplit(), lwt_NewEdgesSplit(), ShpLoaderGenerateShapeRow(), ST_LineCrossingDirection(), test_lw_dist2d_pt_ptarrayarc(), test_lw_dist2d_ptarray_ptarrayarc(), test_lwgeom_split(), test_lwline_interpolate_points(), test_lwline_split_by_point_to(), test_ptarray_append_point(), test_ptarray_append_ptarray(), test_ptarray_contains_point(), test_ptarray_insert_point(), test_ptarray_isccw(), test_ptarray_locate_point(), test_ptarray_scale(), test_ptarray_signed_area(), test_ptarrayarc_contains_point(), test_tree_circ_create(), test_tree_circ_pip(), and wkt_parser_curvepolygon_add_ring().

Here is the caller graph for this function: