PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmline()

LWMLINE* lwgeom_as_lwmline ( const LWGEOM lwgeom)

Definition at line 161 of file lwgeom.c.

References MULTILINETYPE, and LWGEOM::type.

Referenced by LWGEOM_line_substring(), and ShpLoaderGenerateShapeRow().

162 {
163  if ( lwgeom == NULL ) return NULL;
164  if ( lwgeom->type == MULTILINETYPE )
165  return (LWMLINE *)lwgeom;
166  else return NULL;
167 }
uint8_t type
Definition: liblwgeom.h:380
#define MULTILINETYPE
Definition: liblwgeom.h:74
Here is the caller graph for this function: