PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmline()

LWMLINE* lwgeom_as_lwmline ( const LWGEOM lwgeom)

Definition at line 251 of file lwgeom.c.

252 {
253  if ( lwgeom == NULL ) return NULL;
254  if ( lwgeom->type == MULTILINETYPE )
255  return (LWMLINE *)lwgeom;
256  else return NULL;
257 }
#define MULTILINETYPE
Definition: liblwgeom.h:106
uint8_t type
Definition: liblwgeom.h:462

References MULTILINETYPE, and LWGEOM::type.

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

Here is the caller graph for this function: