1332{
1335 xmlNodePtr xa, xb;
1337 xmlChar *interpolation=NULL;
1338
1340 if (xnode == NULL)
1342
1343 if (xnode->children == NULL)
1345
1346
1347
1348
1349 interpolation =
gmlGetProp(xnode,
"interpolation");
1350 if (interpolation != NULL)
1351 {
1352 if (strcmp((char *) interpolation, "planar"))
1354 xmlFree(interpolation);
1355 }
1356
1358
1359 for (xa = xnode->children ; xa != NULL ; xa = xa->next)
1360 {
1361
1362 if (xa->type != XML_ELEMENT_NODE) continue;
1365
1366 for (xb = xa->children ; xb != NULL ; xb = xb->next)
1367 {
1368
1369 if (xb->type != XML_ELEMENT_NODE) continue;
1372
1375
1380
1382 }
1383 }
1384
1385
1386 if (pa == NULL)
gml_lwpgerror(
"invalid GML representation", 47);
1387
1390
1392
1393 return geom;
1394}
int ptarray_is_closed_3d(const POINTARRAY *pa)
LWTRIANGLE * lwtriangle_construct_empty(int32_t srid, char hasz, char hasm)
void * lwalloc(size_t size)
POINTARRAY * ptarray_flip_coordinates(POINTARRAY *pa)
Reverse X and Y axis on a given POINTARRAY.
LWGEOM * lwtriangle_as_lwgeom(const LWTRIANGLE *obj)
int ptarray_is_closed_2d(const POINTARRAY *pa)
#define SRID_UNKNOWN
Unknown SRID value.
LWTRIANGLE * lwtriangle_construct(int32_t srid, GBOX *bbox, POINTARRAY *points)
static xmlNodePtr get_xlink_node(xmlNodePtr xnode)
Return a xmlNodePtr on a node referenced by a XLink or NULL otherwise.
static xmlChar * gmlGetProp(xmlNodePtr xnode, const char *charProp)
Retrieve a GML property from a node or NULL otherwise Respect namespaces if presents in the node elem...
static bool is_xlink(xmlNodePtr node)
Return true if current node contains a simple XLink Return false otherwise.
static POINTARRAY * gml_reproject_pa(POINTARRAY *pa, int32_t epsg_in, int32_t epsg_out)
Use Proj to reproject a given POINTARRAY.
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 parse_gml_srs(xmlNodePtr xnode, gmlSrs *srs)
Parse gml srsName attribute.
static void gml_lwpgerror(char *msg, __attribute__((__unused__)) int error_code)
static POINTARRAY * parse_gml_data(xmlNodePtr xnode, bool *hasz, int *root_srid)
Parse data coordinates.
static bool is_gml_element(xmlNodePtr xn, const char *gml_name)