Read GML.
1893 xmlNodePtr xmlroot=NULL;
1901 xmldoc = xmlReadMemory(xml, xml_size, NULL, NULL, 0);
1909 xmlroot = xmlDocGetRootElement(xmldoc);
1918 lwgeom =
parse_gml(xmlroot, &hasz, &root_srid);
1925 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)