PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmline()

LWMLINE* lwgeom_as_lwmline ( const LWGEOM lwgeom)

Definition at line 210 of file lwgeom.c.

References MULTILINETYPE, and LWGEOM::type.

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

211 {
212  if ( lwgeom == NULL ) return NULL;
213  if ( lwgeom->type == MULTILINETYPE )
214  return (LWMLINE *)lwgeom;
215  else return NULL;
216 }
uint8_t type
Definition: liblwgeom.h:396
#define MULTILINETYPE
Definition: liblwgeom.h:89
Here is the caller graph for this function: