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

Parse KML lineString.

Definition at line 371 of file lwgeom_in_kml.c.

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

Referenced by parse_kml().

372 {
373  POINTARRAY *pa;
374 
375  if (xnode->children == NULL) lwpgerror("invalid KML representation");
376  pa = parse_kml_coordinates(xnode->children, hasz);
377  if (pa->npoints < 2) lwpgerror("invalid KML representation");
378 
379  return (LWGEOM *) lwline_construct(4326, NULL, pa);
380 }
int npoints
Definition: liblwgeom.h:355
static POINTARRAY * parse_kml_coordinates(xmlNodePtr xnode, bool *hasz)
Parse kml:coordinates.
LWLINE * lwline_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwline.c:29

Here is the call graph for this function:

Here is the caller graph for this function: