[GRASS-dev] GRASS GIS + PROJ 6 + GDAL 2.5

Markus Metz markus.metz.giswork at gmail.com
Mon Feb 25 06:10:10 PST 2019


Hi all,

GRASS needs some adjustments in order to be compatible with PROJ 6 + GDAL
2.5

The plain text file "share/proj/epsg" no longer exists. This file is
currently required by the GUI location wizard to retrieve a list of known
EPSG codes. Now there is a sqlite db "proj.db", and a new PROJ function
proj_get_codes_from_database(). I suggest to enhance g.proj with a new
option "list_codes_auth" which will print a list of codes for the given
autority name (EPSG, IGNF, etc.). This option can be made backwards
compatible to read "share/proj/epsg" with PROJ versions up to 5. The
location wizard can then use this new output of g.proj to construct a list
of known EPSG codes.

We need to take care of axis order if a CRS is created from EPSG because
the axis order can now be northing, easting instead of traditional easting,
northing. Maybe it is enough to enforce +axis=enu, or to use GDAL's
SetAxisMappingStrategy(OAMS_TRADITIONAL_GIS_ORDER)
when asking GDAL to construct a CRS definition from an EPSG code.

Markus M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20190225/e1309f07/attachment.html>


More information about the grass-dev mailing list