QGIS icon indicating copy to clipboard operation
QGIS copied to clipboard

Spilhaus not displayed complete in QGIS 3.42.1

Open jjimenezshaw opened this issue 8 months ago • 4 comments

What is the bug or the crash?

Showing a world map (originally in EPSG:4326) with the Spilhaus projection (i.e. ESRI:54099) does not display the whole map.

Image

If I also plot a vector file with parallels and meridians, those lines cover the full earth.

Image

However, using gdalwarp produces the full map properly gdalwarp world.tif spihaus.tif -co COMPRESS=JPEG -t_srs ESRI:54099

During the development of that projection https://github.com/OSGeo/PROJ/pull/4401 I was able to see the full map properly with an older version of QGIS and the development version of PROJ

Image

This is the QGIS I used during the development. For the projection I used +proj=spilhaus:

QGIS version3.40.0-Bratislava
QGIS code branchRelease 3.40
 
Libraries
Qt version5.15.8
Python version3.12.7 (Compiled)
3.12.3 (Running)
GDAL/OGR version3.9.2
PROJ version9.5.0 (Compiled)
9.6.0 (Running)
EPSG Registry database version ()
GEOS version3.13.0-CAPI-1.19.0
SQLite version3.47.0
PDAL version2.8.0
PostgreSQL client versionunknown
SpatiaLite version5.1.0
QWT version6.3.0
QScintilla2 version2.14.1
OS versionUbuntu 22.04.5 LTS
 
Active Python plugins
qgis_points2one0.4.0
reloader0.2
qgis_hub_plugin0.3.0
quick_map_services0.21.2
FreehandRasterGeoreferencer0.8.3
tiss2.0.2
proj_factors_redux0.9.1
valuetool3.0.19
qgis2web3.25.1
db_manager0.1.20
processing2.12.99
grassprovider2.12.99
MetaSearch0.3.6

Steps to reproduce the issue

Open a GeoTIFF of the world in EPSG:4326, and change the CRS to ESRI:54099 or a user CRS using +proj=spilhaus. Spilhaus only works since PROJ 9.6.0.

Using the QGIS described in the section below, the full map is not plotted. I see only from Antarctica up and right, missing left and bottom parts.

cc @rouault

Versions

Installed via conda with conda install -c conda-forge gdal qgis proj=9.6.0 pyproj

QGIS version3.42.1-Münster
QGIS code branchRelease 3.42
 
Libraries
Qt version5.15.15
Python version3.12.9
GDAL version3.10.2
PROJ version9.6.0
EPSG Registry database versionv12.004 (2025-03-02)
GEOS version3.13.1-CAPI-1.19.2
SQLite version3.49.1
PDAL version2.8.4
PostgreSQL client version17.4
SpatiaLite version5.1.0
QWT version6.3.0
QScintilla2 version2.14.1
OS versionUbuntu 22.04.5 LTS
 
Active Python plugins
qgis_points2one0.4.0
reloader0.2
qgis_hub_plugin0.3.0
FreehandRasterGeoreferencer0.8.3
tiss2.0.2
proj_factors_redux0.9.1
valuetool3.0.19
qgis2web3.25.1
db_manager0.1.20
processing2.12.99
grassprovider2.12.99
MetaSearch0.3.6
quick_map_services0.21.2

Supported QGIS version

  • [x] I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

Zooming to the left border, it seems to be the Greenwich meridian at the north pole:

Image

The bottom right corner seems to be near the antimeridian.

jjimenezshaw avatar Apr 02 '25 19:04 jjimenezshaw

How is the area of the reprojected map computed? Had it changed recently?

jjimenezshaw avatar Apr 03 '25 10:04 jjimenezshaw

How is the area of the reprojected map computed? Had it changed recently?

https://github.com/qgis/QGIS/pull/61094 could be very well related. ping @nyalldawson

rouault avatar Apr 03 '25 10:04 rouault

@rouault, #61094 is not in QGIS 3.42.1 (nor in QGIS LTR 3.40.5). It will be in 3.42.2 https://github.com/qgis/QGIS/pull/61120 (and 3.40.6 https://github.com/qgis/QGIS/pull/61151). @nyalldawson, the issue doesn't occur using QGIS 3.40.3 (compiled against PROJ 9.5.1, running PROJ 9.6.0) while it occurs using QGIS LTR 3.40.5, 3.42.1 and 3.43.0-Master (all compiled against and running PROJ 9.6.0).

agiudiceandrea avatar Apr 06 '25 16:04 agiudiceandrea

It still happens with QGIS 3.42.2 (tested with conda)

jjimenezshaw avatar Apr 24 '25 10:04 jjimenezshaw

PROJ fix in https://github.com/OSGeo/PROJ/pull/4513 QGIS fix in https://github.com/qgis/QGIS/pull/62002

rouault avatar May 27 '25 16:05 rouault