Read GML.
1797 xmlNodePtr xmlroot=NULL;
1798 int xml_size = strlen(xml);
1805 xmldoc = xmlReadMemory(xml, xml_size, NULL, NULL, XML_PARSE_SAX1);
1806 if (!xmldoc || (xmlroot = xmlDocGetRootElement(xmldoc)) == NULL)
1813 lwgeom =
parse_gml(xmlroot, &hasz, &root_srid);
1821 lwgeom->
srid = root_srid;
static void gml_lwpgerror(char *msg, int error_code)
void lwgeom_free(LWGEOM *geom)
static LWGEOM * parse_gml(xmlNodePtr xnode, bool *hasz, int *root_srid)
Parse GML.
#define SRID_UNKNOWN
Unknown SRID value.
LWGEOM * lwgeom_force_2d(const LWGEOM *geom)
Strip out the Z/M components of an LWGEOM.
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.