1051{
1055
1057 if (xnode == NULL)
1059
1060 if (xnode->children == NULL)
1062
1065
1068 if (!*root_srid)
1069 {
1070 *root_srid = srs.
srid;
1072 }
1073 else
1074 {
1075 if (srs.
srid != *root_srid)
1078 }
1079
1080 return geom;
1081}
POINTARRAY * ptarray_flip_coordinates(POINTARRAY *pa)
Reverse X and Y axis on a given POINTARRAY.
LWLINE * lwline_construct(int32_t srid, GBOX *bbox, POINTARRAY *points)
LWGEOM * lwline_as_lwgeom(const LWLINE *obj)
#define SRID_UNKNOWN
Unknown SRID value.
LWLINE * lwline_construct_empty(int32_t srid, char hasz, char hasm)
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 POINTARRAY * gml_reproject_pa(POINTARRAY *pa, int32_t epsg_in, int32_t epsg_out)
Use Proj to reproject a given POINTARRAY.
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.