PostGIS  2.1.10dev-r@@SVN_REVISION@@
static LWGEOM* parse_kml_point ( xmlNodePtr  xnode,
bool *  hasz 
)
static

Parse KML point.

Definition at line 352 of file lwgeom_in_kml.c.

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

Referenced by parse_kml().

353 {
354  POINTARRAY *pa;
355 
356  if (xnode->children == NULL) lwerror("invalid KML representation");
357  pa = parse_kml_coordinates(xnode->children, hasz);
358  if (pa->npoints != 1) lwerror("invalid KML representation");
359 
360  return (LWGEOM *) lwpoint_construct(4326, NULL, pa);
361 }
int npoints
Definition: liblwgeom.h:327
static POINTARRAY * parse_kml_coordinates(xmlNodePtr xnode, bool *hasz)
Parse kml:coordinates.
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:67
LWPOINT * lwpoint_construct(int srid, GBOX *bbox, POINTARRAY *point)
Definition: lwpoint.c:96

Here is the call graph for this function:

Here is the caller graph for this function: