PostGIS  2.5.0dev-r@@SVN_REVISION@@
LWMLINE* lwgeom_as_lwmline ( const LWGEOM lwgeom)

Definition at line 241 of file lwgeom.c.

References MULTILINETYPE, and LWGEOM::type.

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

242 {
243  if ( lwgeom == NULL ) return NULL;
244  if ( lwgeom->type == MULTILINETYPE )
245  return (LWMLINE *)lwgeom;
246  else return NULL;
247 }
uint8_t type
Definition: liblwgeom.h:395
#define MULTILINETYPE
Definition: liblwgeom.h:88

Here is the caller graph for this function: