PostGIS  3.0.0dev-r@@SVN_REVISION@@

◆ parse_kml_point()

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

Parse KML point.

Definition at line 369 of file lwgeom_in_kml.c.

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

Referenced by parse_kml().

370 {
371  POINTARRAY *pa;
372 
373  if (xnode->children == NULL) lwpgerror("invalid KML representation");
374  pa = parse_kml_coordinates(xnode->children, hasz);
375  if (pa->npoints != 1) lwpgerror("invalid KML representation");
376 
377  return (LWGEOM *) lwpoint_construct(4326, NULL, pa);
378 }
static POINTARRAY * parse_kml_coordinates(xmlNodePtr xnode, bool *hasz)
Parse kml:coordinates.
LWPOINT * lwpoint_construct(int srid, GBOX *bbox, POINTARRAY *point)
Definition: lwpoint.c:129
uint32_t npoints
Definition: liblwgeom.h:373
Here is the call graph for this function:
Here is the caller graph for this function: