PostGIS  2.3.6-r@@SVN_REVISION@@
LWLINE* lwgeom_as_lwline ( const LWGEOM lwgeom)

Definition at line 102 of file lwgeom.c.

References LINETYPE, and LWGEOM::type.

Referenced by _lwt_AddEdge(), _lwt_AddLineEdge(), _lwt_FindAdjacentEdges(), extract_pointarrays_from_lwgeom(), 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().

103 {
104  if ( lwgeom == NULL ) return NULL;
105  if ( lwgeom->type == LINETYPE )
106  return (LWLINE *)lwgeom;
107  else return NULL;
108 }
#define LINETYPE
Definition: liblwgeom.h:85
uint8_t type
Definition: liblwgeom.h:395

Here is the caller graph for this function: