[GRASS-user] 7.5svn: issue with finding EPSG codes for new locations
Solano Barajas Ramon
rsolano at ucol.mx
Thu Jun 28 12:24:06 PDT 2018
I was struggling with the same problem since some time ago. I’m using a Mac with MacPorts so currently I have GRASS 7.4.0 installed, but the problem dates from before.
I just solved this problem: it look like the GRASS routine looking for the EPSG data is not expecting the 1st line of the EPSG text file. Original content is:
<metadata> +version=9.2.0 +origin=EPSG +lastupdate=2017-12-17
# HD1909
<3819> +proj=longlat +ellps=bessel +towgs84=595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408 +no_defs <>
# TWD67
<3821> +proj=longlat +ellps=aust_SA +no_defs <>
:
So the error comes from the first token, “<metadata>”. I solved this just commenting out that line:
#<metadata> +version=9.2.0 +origin=EPSG +lastupdate=2017-12-17
# HD1909
<3819> +proj=longlat +ellps=bessel +towgs84=595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408 +no_defs <>
# TWD67
<3821> +proj=longlat +ellps=aust_SA +no_defs <>
:
In my Mac with MacPorts the epsg file is located in "/opt/local/lib/proj5/share/proj/epsg”.
A word of caution: this file is *not* provided by GRASS GIS itself, but in m case it is provided by the “proj” package, so some collateral errors may arise later.
Cheers.
Ramon.
--
--Universidad de Colima
More information about the grass-user
mailing list