Skip to content

Fix GeoTIFF CRS reading on modern GDAL/PROJ - #1759

Merged
dg0yt merged 4 commits into
masterfrom
geotiff-crs
Oct 23, 2020
Merged

Fix GeoTIFF CRS reading on modern GDAL/PROJ#1759
dg0yt merged 4 commits into
masterfrom
geotiff-crs

Conversation

@dg0yt

Copy link
Copy Markdown
Member

No description provided.

The Mapper_USE_GDAL macro is to indicate linking against lib
mapper-gdal. For georeferencing_t, we only want to enable
additional tests targeting lib gdal directly.
GDAL needs to find proj.db in order to handle CRS from GeoTIFF.
It might use PROJ_LIB, but we don't set this variable. We need
to rely on OSRSetPROJSearchPaths() instead.
ResolvesGH-1755 (GeoTIFF loaded incorrectly).
@dg0yt

Copy link
Copy Markdown
MemberAuthor

This change will cause WKT to be used in omap files, in the georeferencing saved for the template.
This doesn't seem to cause much harm: even Mapper on Ubuntu 18.04 (PROJ 4.9, GDAL 2.3) loads the template correctly, although PROJ 4.9 doesn't understand WKT.

@dg0yt
dg0yt merged commit 878f83f into masterOct 23, 2020
@dg0yt
dg0yt deleted the geotiff-crs branch October 23, 2020 04:31
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@dg0yt