PostGIS  2.5.0beta1dev-r@@SVN_REVISION@@

◆ parse_kml_point()

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

Parse KML point.

Definition at line 370 of file lwgeom_in_kml.c.

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

Referenced by parse_kml().

371 {
372  POINTARRAY *pa;
373 
374  if (xnode->children == NULL) lwpgerror("invalid KML representation");
375  pa = parse_kml_coordinates(xnode->children, hasz);
376  if (pa->npoints != 1) lwpgerror("invalid KML representation");
377 
378  return (LWGEOM *) lwpoint_construct(4326, NULL, pa);
379 }
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: