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

st_transform - 'proj_create: crs not found' error on MapInfo files since GDAL 3.3 (PROJ7) builds #187

Open
rdewit opened this issue Feb 5, 2022 · 1 comment
Assignees

Comments

@rdewit
Copy link

rdewit commented Feb 5, 2022

Since the release of GDAL 3.3 (with PROJ7), the SQLite function st_transform stopped working on MapInfo files. It works on release-1900-gdal-3-2-1-mapserver-7-6-2 but fails in the latest release: release-1916-gdal-3-4-1-mapserver-7-6-4.

This is the output on a sample MapInfo file (FOI_POINT from data.vic.gov.au, see attachment FOI_POINT.zip):

C:\Downloads\FOI_POINT>ogrinfo FOI_POINT.tab -sql "select st_transform ( geometry , 4326 ) as geometry from FOI_POINT" -dialect SQLite -so
INFO: Open of `FOI_POINT.tab'
      using driver `MapInfo File' successful.
proj_create: crs not found
ERROR 1: In ExecuteSQL(): sqlite3_step(select st_transform ( geometry , 4326 ) as geometry from FOI_POINT):
  ST_Transform exception - PROJ reports "".

Running ogr2ogr foi_point_WGS84.tab foi_point.tab -t_srs EPSG:4326 gives no errors.

Another windows build using Anaconda (https://anaconda.org/conda-forge/gdal) does not have the error, so I think it may be limited to the GisInternals builds).

Happy to assist with debugging if that helps!

@szekerest szekerest self-assigned this Feb 5, 2022
@rdewit
Copy link
Author

rdewit commented Feb 20, 2022

Version release-1900-gdal-3-2-1-mapserver-7-6-2 is the last version that still works. From release-1916-gdal-3-2-2-mapserver-7-6-2 onward the issue is present. That also marks the change from PROJ6 to PROJ7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants