1398 for (xa = xnode->children ; xa != NULL ; xa = xa->next)
1400 if (xa->type != XML_ELEMENT_NODE)
continue;
1402 if (!strcmp((
char *) xa->name,
"patches"))
1408 if (!found)
gml_lwpgerror(
"invalid GML representation", 51);
1411 for (patch=0, xa = xa->children ; xa != NULL ; xa = xa->next)
1413 if (xa->type != XML_ELEMENT_NODE)
continue;
1415 if (strcmp((
char *) xa->name,
"PolygonPatch"))
continue;
1420 if (patch > 1)
gml_lwpgerror(
"invalid GML representation", 52);
1425 if (!patch)
gml_lwpgerror(
"invalid GML representation", 53);
static void gml_lwpgerror(char *msg, int error_code)
static LWGEOM * parse_gml_patch(xmlNodePtr xnode, bool *hasz, int *root_srid)
Parse GML PolygonPatch (3.1.1)
static xmlNodePtr get_xlink_node(xmlNodePtr xnode)
Return a xmlNodePtr on a node referenced by a XLink or NULL otherwise.
static bool is_xlink(xmlNodePtr node)
Return true if current node contains a simple XLink Return false otherwise.
static bool is_gml_namespace(xmlNodePtr xnode, bool is_strict)
Return false if current element namespace is not a GML one Return true otherwise. ...