Parse KML MultiGeometry.
509{
511 xmlNodePtr xa;
512
514
515 for (xa = xnode->children ; xa != NULL ; xa = xa->next)
516 {
517
518 if (xa->type != XML_ELEMENT_NODE) continue;
520
525 {
526
527 if (xa->children == NULL) break;
529 }
530 }
531
532 return geom;
533}
LWCOLLECTION * lwcollection_construct_empty(uint8_t type, int32_t srid, char hasz, char hasm)
LWCOLLECTION * lwcollection_add_lwgeom(LWCOLLECTION *col, const LWGEOM *geom)
Appends geom to the collection managed by col.
static LWGEOM * parse_kml(xmlNodePtr xnode, bool *hasz)
Parse KML.
static bool is_kml_namespace(xmlNodePtr xnode, bool is_strict)
Return false if current element namespace is not a KML one Return true otherwise.
static bool is_kml_element(xmlNodePtr xn, const char *kml_name)