PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmline()

LWMLINE* lwgeom_as_lwmline ( const LWGEOM lwgeom)

Definition at line 174 of file lwgeom.c.

References MULTILINETYPE, and LWGEOM::type.

Referenced by LWGEOM_line_substring(), and ShpLoaderGenerateShapeRow().

175 {
176  if ( lwgeom == NULL ) return NULL;
177  if ( lwgeom->type == MULTILINETYPE )
178  return (LWMLINE *)lwgeom;
179  else return NULL;
180 }
uint8_t type
Definition: liblwgeom.h:395
#define MULTILINETYPE
Definition: liblwgeom.h:88
Here is the caller graph for this function: