PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmline()

LWMLINE* lwgeom_as_lwmline ( const LWGEOM lwgeom)

Definition at line 233 of file lwgeom.c.

234 {
235  if ( lwgeom == NULL ) return NULL;
236  if ( lwgeom->type == MULTILINETYPE )
237  return (LWMLINE *)lwgeom;
238  else return NULL;
239 }
#define MULTILINETYPE
Definition: liblwgeom.h:120
uint8_t type
Definition: liblwgeom.h:448

References MULTILINETYPE, and LWGEOM::type.

Referenced by geography_centroid(), LWGEOM_line_substring(), and ShpLoaderGenerateShapeRow().

Here is the caller graph for this function: