OSGeo / gdal

GDAL is an open source MIT licensed translator library for raster and vector geospatial data formats.
https://gdal.org
Other
4.91k stars 2.55k forks source link

GML not rendered correctly #2356

Closed antoniolocandro closed 4 years ago

antoniolocandro commented 4 years ago

Expected behavior and actual behavior.

Already reported in QGIS but they suggested this is really a GDAL thing to be investigated, sorry I don't have more technical skills to do it completely by myself

If I add the following attached file the GML should all be over the North Atlantic between USA and Europe, however when point features use the following root element aixm:ElevatedPoint () it is not rendered correctly as opposed to if used aixm:Point () INVERTED

Steps to reproduce the problem.

I am using the following file loaded in QGIS

EA_AIP_DS_FULL_20170701.zip

I add the filed attached before and will select only the following layers as shown per the image layers_for_test

You will notice the following view on the map canvas of QGIS

qgis_map_view

I will start with the following two point layers for review layers_for_test

I have concluded the following

-> render correctly (check layer = DesignatedPoint)

gml:pos51.529284 -33.555661 -> render incorrectly (check layer = AeronauticalGroundLight ) gml:pos55.36666666666667 -33.983333333333334 So why does QGIS/GDAL handles improperly the second case, is like it doesn't take into consideration the axis order for it which is lat,lon for EPSG:4326, I suppose because it is a specialization class from the aviation schema, but it is supposed to be inheriting properties from the GML, here is the definition for it which mentions "This is a specialization of the Point class and it inherits all attributes and associations of that class." which in turn the Point class "This is a specialization of the GM_Point class and it inherits all attributes and associations of that class." All of this is supposed to be based on ISO 19107 http://www.aixm.aero/sites/aixm.aero/files/imce/AIXM511HTML/AIXM/Class_ElevatedPoint.html?menu=open So to sum up the layer AeronauticalGroundLight has the axis reversed like it can't honor the axis order and it uses the AIXM:ElevatedPoint, the layer DesignatedPoint has the axis correct but uses AIXM:Point ## Operating system WINDOWS 10 ## GDAL version and provenance Running against GDAL/OGR 3.1.0dev from QGIS
antoniolocandro commented 4 years ago

Confirmed fix! Thanks you this will make it possible to use it for aviation even more

antoniolocandro commented 4 years ago

I have one more issue

render incorrectly (check layer = Airspace )

the following feature identifier

21a13c9f-a8ff-4fdd-9aaa-5dbfd91514b8 ... 52.36666666666667 -22.1 15.0 2.0 Axis is inverted for this, seems the Circle by Center point doesn't honor also the axis order maybe is something similar to the aixm:ElevatedPoint? ![circle_gml](https://user-images.githubusercontent.com/4627073/77834844-6ae30d80-710d-11ea-8a58-850c8f9c8b1a.png)