PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwline()

LWLINE* lwgeom_as_lwline ( const LWGEOM lwgeom)

Definition at line 138 of file lwgeom.c.

References LINETYPE, and LWGEOM::type.

Referenced by _lwt_AddEdge(), _lwt_AddLineEdge(), _lwt_FindAdjacentEdges(), extract_pointarrays_from_lwgeom(), geography_centroid(), geometry_to_path(), gserialized_distance_nd(), lwcompound_contains_point(), LWGEOM_addpoint(), lwgeom_clip_to_ordinate_range(), lwgeom_cpa_within(), LWGEOM_dumppoints(), lwgeom_interpolate_point(), LWGEOM_line_interpolate_point(), LWGEOM_line_locate_point(), LWGEOM_line_substring(), LWGEOM_makepoly(), LWGEOM_removepoint(), lwgeom_segmentize_sphere(), LWGEOM_setpoint_linestring(), lwgeom_swap_ordinates(), lwgeom_tcpa(), lwt_AddLine(), lwt_AddPoint(), lwt_ModEdgeSplit(), lwt_NewEdgesSplit(), ShpLoaderGenerateShapeRow(), ST_LineCrossingDirection(), ST_OffsetCurve(), test_lw_dist2d_pt_ptarrayarc(), test_lw_dist2d_ptarray_ptarrayarc(), test_lwgeom_split(), 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().

139 {
140  if ( lwgeom == NULL ) return NULL;
141  if ( lwgeom->type == LINETYPE )
142  return (LWLINE *)lwgeom;
143  else return NULL;
144 }
#define LINETYPE
Definition: liblwgeom.h:86
uint8_t type
Definition: liblwgeom.h:396
Here is the caller graph for this function: