PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmline()

LWMLINE* lwgeom_as_lwmline ( const LWGEOM lwgeom)

Definition at line 242 of file lwgeom.c.

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

References MULTILINETYPE, and LWGEOM::type.

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

Here is the caller graph for this function: