Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Geometry viewer always transforms to Earth-specific projection #6190
Describe the problem you're observing:
The amazing geometry viewer (original issue) appears to auto-transform all PostGIS data to 4326 without a way to disable the functionality. It was suggested (Twitter) to change the SRID to hide the map but that truly does only hide the map. It does not disable the transformation of the data before being visually represented. It seems that adding a check on the SRID to see if it is valid before making the change might solve this issue. Having an option to disable the overlay manually would also provide a real solution.
This issue makes the geometry viewer feature unusuable for use cases not bound to Earth. A few examples of non-Earth use cases of PostGIS:
Steps to reproduce:
In an empty database, create the PostGIS extension and a
Verify the geometry data does not have an SRID set:
My expectation for a visualization of this data is a straight line as seen in this screenshot from QGIS:
Following the suggestion to change the SRID, I found that does hide the map under the data but the visualization is obviously still bound by Earth's projection. The curve of the northern ranges into the flat line is the indicator there.
I would expect data without a valid SRID to not be transformed to any projection. I like the auto-transfrom when you know the source but in an unknown that seems to be a risky guess.
Agreed. This looks more like a bug in one of latest versions.
We could use: