Read GML.
1813 xmlNodePtr xmlroot=NULL;
1814 int xml_size = strlen(xml);
1821 xmldoc = xmlReadMemory(xml, xml_size, NULL, NULL, XML_PARSE_SAX1);
1822 if (!xmldoc || (xmlroot = xmlDocGetRootElement(xmldoc)) == NULL)
1829 lwgeom =
parse_gml(xmlroot, &hasz, &root_srid);
1837 lwgeom->
srid = root_srid;
void lwgeom_free(LWGEOM *geom)
#define SRID_UNKNOWN
Unknown SRID value.
LWGEOM * lwgeom_force_2d(const LWGEOM *geom)
Strip out the Z/M components of an LWGEOM.
static LWGEOM * parse_gml(xmlNodePtr xnode, bool *hasz, int *root_srid)
Parse GML.
static void gml_lwpgerror(char *msg, __attribute__((__unused__)) int error_code)