PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmline()

LWMLINE* lwgeom_as_lwmline ( const LWGEOM lwgeom)

Definition at line 242 of file lwgeom.c.

References MULTILINETYPE, and LWGEOM::type.

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

243 {
244  if ( lwgeom == NULL ) return NULL;
245  if ( lwgeom->type == MULTILINETYPE )
246  return (LWMLINE *)lwgeom;
247  else return NULL;
248 }
uint8_t type
Definition: liblwgeom.h:398
#define MULTILINETYPE
Definition: liblwgeom.h:88
Here is the caller graph for this function: