PostGIS 3.7.0dev-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 386 of file lwgeom_in_kml.c.

387{
388 POINTARRAY *pa;
389
390 if (xnode->children == NULL) lwpgerror("invalid KML representation");
391 pa = parse_kml_coordinates(xnode->children, hasz);
392 if (pa->npoints != 1) lwpgerror("invalid KML representation");
393
394 return (LWGEOM *) lwpoint_construct(4326, NULL, pa);
395}
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:427

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: