PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ parse_kml_line()

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

Parse KML lineString.

Definition at line 406 of file lwgeom_in_kml.c.

407 {
408  POINTARRAY *pa;
409 
410  if (xnode->children == NULL) lwpgerror("invalid KML representation");
411  pa = parse_kml_coordinates(xnode->children, hasz);
412  if (pa->npoints < 2) lwpgerror("invalid KML representation");
413 
414  return (LWGEOM *) lwline_construct(4326, NULL, pa);
415 }
LWLINE * lwline_construct(int32_t srid, GBOX *bbox, POINTARRAY *points)
Definition: lwline.c:42
static POINTARRAY * parse_kml_coordinates(xmlNodePtr xnode, bool *hasz)
Parse kml:coordinates.
uint32_t npoints
Definition: liblwgeom.h:413

References lwline_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: