You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make a WFS request with an output srs that has "inverted axes" (not x/y but y/x cq lat/lon cq north/east). E.g. EPSG:3035 or EPSG:4326. (Not using 4326 cq WGS84 in the example as to not confuse the crs being hidden for other reasons.)
When that WKT is turned into an OGRSpatialReference and later on passed to GDAL to write the geojson, it has no URN (because no authority) and the crs key is skipped.
The coordinate axes are swapped though, but why would I want that?
Expected behavior and actual behavior.
Expected a geojson output including a
crs
key. E.g.Actually received that without the
crs
key.Steps to reproduce the problem.
Have a source in another srs than the request.
Ensure geojson
RFC7946=OFF
(default)Make a WFS request with an output srs that has "inverted axes" (not x/y but y/x cq lat/lon cq north/east). E.g. EPSG:3035 or EPSG:4326. (Not using 4326 cq WGS84 in the example as to not confuse the
crs
being hidden for other reasons.)QUERY_STRING=service=WFS&request=GetFeature&count=1&version=2.0.0&outputFormat=geojson&typeName=test&srsName=EPSG:3035
Analysis
When the output projection is made into a OGC WKT and it has "inverted axes", then
+epsgaxis=ne
is added to the proj string which is inputted to GDAL'simportFromProj4
. Resulting in a WKT named "unknown" and without authority name and code.When that WKT is turned into an
OGRSpatialReference
and later on passed to GDAL to write the geojson, it has no URN (because no authority) and thecrs
key is skipped.The coordinate axes are swapped though, but why would I want that?
Attached simple test case
wfs-test.zip
Operating system
ubuntu 20.04
MapServer version and installation method
mapserver 8.0.1 (from source)
proj 9.3 (from source)
gdal 3.6.2 (from source, also with proj 9.3)
The text was updated successfully, but these errors were encountered: