Opened 10 years ago
Closed 10 years ago
#2490 closed defect (fixed)
EPSG code not saved in PROJ_EPSG
Reported by: | hellik | Owned by: | martinl |
---|---|---|---|
Priority: | major | Milestone: | 7.0.0 |
Component: | Projections/Datums | Version: | svn-releasebranch70 |
Keywords: | g.proj | Cc: | grass-dev@… |
CPU: | x86-64 | Platform: | MSWindows 7 |
Description
from the ML
http://lists.osgeo.org/pipermail/grass-dev/2014-November/071807.html
> It is sometimes stored in the PROJ_INFO file. in the recent versions of GRASS 7 it should be stored in PROJ_EPSG file. If not than it's a bug.
tested here with
GRASS Version: 7.1.svn GRASS SVN Revision: 62754 Erstellungsdatum: 2014-11-16 Build Platform: i686-pc-mingw32 GDAL/OGR: 1.11.0 PROJ.4: 4.8.0 GEOS: 3.4.2 SQLite: 3.7.17 Python: 2.7.4 wxPython: 2.8.12.1 Platform: Windows-7-6.1.7601-SP1 (OSGeo4W)
location wizard -> create location by epsg code (e.g. 4326)
EPSG code is not saved in PROJ_EPSG
Change History (10)
follow-up: 3 comment:1 by , 10 years ago
follow-up: 5 comment:2 by , 10 years ago
Component: | Default → Projections/Datums |
---|---|
Priority: | normal → major |
Version: | unspecified → svn-releasebranch70 |
While at it, perhaps also generate a file "PROJ_TOWGS84" since the EPSG number does not necessarily reflect that (e.g. in Italy with multiple TOWGS84 parameters for a single code)?
follow-up: 4 comment:3 by , 10 years ago
Keywords: | g.proj added |
---|
Replying to hellik:
r49298: Retain EPSG code, if available, into a metadata file.
This doesn't seem to work yet or the if() conditions are not fulfilled.
It would also cover the case of creating the Location from the startup script as well as the location wizard since in Python g.proj is called from there:
http://grass.osgeo.org/grass71/manuals/libpython/_modules/script/core.html#create_location
Yet the bug in g.proj is to be understood:
g.proj epsg=4326 location=mylatlong
--> no PROJ_EPSG generated as expected
follow-up: 7 comment:4 by , 10 years ago
comment:5 by , 10 years ago
Replying to neteler:
While at it, perhaps also generate a file "PROJ_TOWGS84" since the EPSG number does not necessarily reflect that (e.g. in Italy with multiple TOWGS84 parameters for a single code)?
I think it's not needed since PROJ_INFO (which includes +towgs84) is generated always.
comment:6 by , 10 years ago
Cc: | added |
---|---|
Owner: | changed from | to
Status: | new → assigned |
follow-up: 8 comment:7 by , 10 years ago
comment:8 by , 10 years ago
comment:10 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Changeset 49298:
Message:
https://trac.osgeo.org/grass/changeset/49298