Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GSB File missing on macOS #31453

Closed
timlinux opened this issue Aug 27, 2019 · 9 comments
Closed

GSB File missing on macOS #31453

timlinux opened this issue Aug 27, 2019 · 9 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! macOS

Comments

@timlinux
Copy link
Member

Adding a layer downloaded from

https://dados.gov.pt/en/datasets/freguesias-de-portugal/

(first layer listed there), I get prompted to manage the transformation:

image

However the needed gsb file is not there:

File 'ptLX_e89.gsb' not found in directory '/Applications/QGIS3.9.app/Contents/Resources/proj/proj'

Mac package downloaded from QGIS nightly builds.

QGIS version 3.9.0-Master QGIS code revision 6af029d
Compiled against Qt 5.12.3 Running against Qt 5.12.3
Compiled against GDAL/OGR 2.4.1 Running against GDAL/OGR 2.4.1
Compiled against GEOS 3.7.2-CAPI-1.11.2 Running against GEOS 3.7.2-CAPI-1.11.2 b55d2125
PostgreSQL Client Version 11.3 SpatiaLite Version 4.3.0a
QWT Version 6.1.4 QScintilla2 Version 2.11.1
Compiled against PROJ 5.2.0 Running against PROJ Rel. 5.2.0, September 15th, 2018
OS Version macOS Mojave (10.14)  
QGIS version 3.9.0-Master QGIS code revision 6af029d
Compiled against Qt 5.12.3 Running against Qt 5.12.3
Compiled against GDAL/OGR 2.4.1 Running against GDAL/OGR 2.4.1
Compiled against GEOS 3.7.2-CAPI-1.11.2 Running against GEOS 3.7.2-CAPI-1.11.2 b55d2125
PostgreSQL Client Version 11.3 SpatiaLite Version 4.3.0a
QWT Version 6.1.4 QScintilla2 Version 2.11.1
Compiled against PROJ 5.2.0 Running against PROJ Rel. 5.2.0, September 15th, 2018
OS Version macOS Mojave (10.14)  
@timlinux timlinux added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Aug 27, 2019
@timlinux
Copy link
Member Author

cc @PeterPetrik

@gioman
Copy link
Contributor

gioman commented Aug 27, 2019

However the needed gsb file is not there:

@timlinux Hi Tim, this is not a QGIS issue, we must submit the gsb grids for Portugal upstream to Proj. Recently we got the green light to do that by the entity (DGT) that creates them. Shortly after I committed to submit them to Proj, but then I had some issues and forgot to do that. I'm still committed to do this pr against proj, in the meantime you can grab the gsb files here: https://github.com/NaturalGIS/naturalgis_ntv2_transformations_grids_and_sample_data/tree/master/pt

@nyalldawson
Copy link
Collaborator

I think Tim's issue is that it's being presented as a valid choice, yet shouldn't be (since the grid is missing).

Anyway - this is already fixed in Proj 6 builds.

@timlinux
Copy link
Member Author

Thanks -@gioman - I tested with the file you provided and it fixes the issue it seems:

image

@nyalldawson there is another minor issue in that the dialog is not resizable so the full message in the dialog is not readable.

@

@nyalldawson
Copy link
Collaborator

@timlinux are you sure it fixed the issue? Your dialog is now showing a different pair of CRS. Anyway, this is all total poop on proj < 6. The sooner we can make proj 6 a hard dependency of QGIS the better the world will be.

there is another minor issue in that the dialog is not resizable so the full message in the dialog is not readable.

Sounds like a MacOS specific issue - I can't reproduce.

@timlinux
Copy link
Member Author

Your dialog is now showing a different pair of CRS

Hooo you are right I missed that

Ok I will hold on for PROJ6

@gioman
Copy link
Contributor

gioman commented Aug 30, 2019

See OSGeo/proj-datumgrid#54

I think this can be closed.

@PedroVenancio
Copy link
Contributor

Hi @nyalldawson

The PR to proj datum grids with portuguese grids needed by @timlinux was merged yesterday
OSGeo/proj-datumgrid@46e538f

So, they will be available soon.

However, OSGeo4W is using old versions of proj datum grids, missing the most recent ones:

proj-datumgrid_version

On another side, OSGeo4W is putting these grids on ..\OSGeo4W64\share\proj folder, which I believe will be the final location when the PROJ>=6 will be fully supported by QGIS (and other software). However, at this moment, QGIS dev is expecting these grids in ..\OSGeo4W64\apps\proj-dev\share\proj folder, and the interface does not show the location where the grids should be placed:

Datum_Transformation_QGIS_dev

Just says that they are not available in the system.

Can this be polished in some way?

@elpaso elpaso added the macOS label Sep 9, 2019
@nyalldawson
Copy link
Collaborator

Should all be fixed in recent versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! macOS
Projects
None yet
Development

No branches or pull requests

5 participants