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

French reprojection use ntf_r93.gsb (IGNF:LAMBE etc ..) #22107

Closed
qgib opened this issue Jan 14, 2016 · 3 comments
Closed

French reprojection use ntf_r93.gsb (IGNF:LAMBE etc ..) #22107

qgib opened this issue Jan 14, 2016 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@qgib
Copy link
Contributor

qgib commented Jan 14, 2016

Author Name: Yves ryra6453 (Yves ryra6453)
Original Redmine Issue: 14101
Affected QGIS version: 2.12.2


ERROR when reproject or save as whith "IGNF:xxx" projection

for example:

PROJ.4:  +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0 +to  +proj=lcc +nadgrids=ntf_r93.gsb,null +a=6378249.2000 +rf=293.4660210000000 +pm=2.337229167 +lat_0=46.800000000 +lon_0=0.000000000 +k_0=0.99987742 +lat_1=46.800000000 +x_0=600000.000 +y_0=2200000.000 +units=m +no_defs
			Erreur: failed to load datum shift file

in python console

>>>import os
>>>os.getenv('PROJ_LIB')
'"C:\\MYPROG~1\\QGIS_L~1.2\\share\\proj"'

path is ok and ntf_r93.gsb exist.


Related issue(s): #22200 (duplicates)
Redmine related issue(s): 14198


@qgib
Copy link
Contributor Author

qgib commented Jan 15, 2016

Author Name: Yves ryra6453 (Yves ryra6453)


I found a temporary solution.

I change the proj4 definition in the database /path_qgis/apps/qgis/ressources/srs.db
In table tbl_srs

I delete ",null" after "+nadgrids=ntf_r93.gsb" in parameters column

reprojection now operating normally

I test whith national reference software (IGN Circé France) the coordinate convertion is exact.

@qgib
Copy link
Contributor Author

qgib commented Jan 23, 2016

Author Name: Quan Tum (Quan Tum)


Hello all,
I have the same bug here and found the same workaround.

For future references, the OP has more detailed information (in french) here : http://georezo.net/forum/viewtopic.php?pid=277328#p277328
Results are the same with 32 an d 64 bit standalone setup, as well as OSGEO4W setup. So it seems to come from QGIS itself.

On my side, with an OSGEO4W setup, other software using gdal seem to work without problem.

The symptoms are the same than in this bug #16809
Although the bug/solution for this one was in OSGEO4W code, there are some interesting debugging information.
I didn't manage to find a solution though and would be glad if more experienced devs could give a hand !

Thanks,
Cev.

@qgib
Copy link
Contributor Author

qgib commented Jan 30, 2016

Author Name: Jürgen Fischer (@jef-n)


This is a (fixed) OSGeo4W issue with the proj package.


  • resolution was changed from to up/downstream
  • status_id was changed from Open to Closed

@qgib qgib added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 25, 2019
@qgib qgib closed this as completed May 25, 2019
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!
Projects
None yet
Development

No branches or pull requests

1 participant