PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ parse_kml_point()

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

Parse KML point.

Definition at line 364 of file lwgeom_in_kml.c.

365 {
366  POINTARRAY *pa;
367 
368  if (xnode->children == NULL) lwpgerror("invalid KML representation");
369  pa = parse_kml_coordinates(xnode->children, hasz);
370  if (pa->npoints != 1) lwpgerror("invalid KML representation");
371 
372  return (LWGEOM *) lwpoint_construct(4326, NULL, pa);
373 }
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: