PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ parse_kml_point()

static LWGEOM * parse_kml_point ( xmlNodePtr  xnode,
bool *  hasz 
)
static

Parse KML point.

Definition at line 391 of file lwgeom_in_kml.c.

392{
393 POINTARRAY *pa;
394
395 if (xnode->children == NULL) lwpgerror("invalid KML representation");
396 pa = parse_kml_coordinates(xnode->children, hasz);
397 if (pa->npoints != 1) lwpgerror("invalid KML representation");
398
399 return (LWGEOM *) lwpoint_construct(4326, NULL, pa);
400}
LWPOINT * lwpoint_construct(int32_t srid, GBOX *bbox, POINTARRAY *point)
Definition lwpoint.c:129
static POINTARRAY * parse_kml_coordinates(xmlNodePtr xnode, bool *hasz)
Parse kml:coordinates.
uint32_t npoints
Definition liblwgeom.h:413

References lwpoint_construct(), POINTARRAY::npoints, and parse_kml_coordinates().

Referenced by parse_kml().

Here is the call graph for this function:
Here is the caller graph for this function: