PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmline()

LWMLINE* lwgeom_as_lwmline ( const LWGEOM lwgeom)

Definition at line 234 of file lwgeom.c.

235 {
236  if ( lwgeom == NULL ) return NULL;
237  if ( lwgeom->type == MULTILINETYPE )
238  return (LWMLINE *)lwgeom;
239  else return NULL;
240 }
#define MULTILINETYPE
Definition: liblwgeom.h:120
uint8_t type
Definition: liblwgeom.h:476

References MULTILINETYPE, and LWGEOM::type.

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

Here is the caller graph for this function: