1414 for (xa = xnode->children ; xa != NULL ; xa = xa->next)
1416 if (xa->type != XML_ELEMENT_NODE)
continue;
1418 if (!strcmp((
char *) xa->name,
"patches"))
1424 if (!found)
gml_lwpgerror(
"invalid GML representation", 51);
1427 for (patch=0, xa = xa->children ; xa != NULL ; xa = xa->next)
1429 if (xa->type != XML_ELEMENT_NODE)
continue;
1431 if (strcmp((
char *) xa->name,
"PolygonPatch"))
continue;
1436 if (patch > 1)
gml_lwpgerror(
"invalid GML representation", 52);
1441 if (!patch)
gml_lwpgerror(
"invalid GML representation", 53);
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 LWGEOM * parse_gml_patch(xmlNodePtr xnode, bool *hasz, int *root_srid)
Parse GML PolygonPatch (3.1.1)
static bool is_gml_namespace(xmlNodePtr xnode, bool is_strict)
Return false if current element namespace is not a GML one Return true otherwise.
static void gml_lwpgerror(char *msg, __attribute__((__unused__)) int error_code)