Opened 8 years ago
Last modified 6 years ago
#3145 new enhancement
v.unpack: too sensitive to difference of names in projections
Reported by: | mlennert | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.6.2 |
Component: | Vector | Version: | svn-trunk |
Keywords: | v.unpack projection | Cc: | |
CPU: | Unspecified | Platform: | Unspecified |
Description
Trying to use v.unpack I got the following error:
ATTENTION: Difference between PROJ_INFO file of packed map and of current location: - name: Belge 1972 / Belgian Lambert 72 + name: Lambert Conformal Conic + proj: lcc datum: bel72 ellps: international - proj: lcc lat_1: 51.16666723333333 lat_2: 49.8333339 lat_0: 90 lon_0: 4.367486666666666 x_0: 150000.013 y_0: 5400088.438 no_defs: defined
AFAIU, the difference in position of "proj: lcc" is not the problem, it is only the difference in projection names. Maybe v.unpack could/should ignore a difference of names if all the other parameters are the same ?
Change History (9)
follow-up: 2 comment:1 by , 8 years ago
comment:2 by , 8 years ago
Replying to neteler:
Can you please attach the PROJ_INFO file? And, if known, the EPSG code?
Sure, but I think the issue is a generic one, not specifically linked to this case.
The PROJ_INFO of the .pack file corresponds to EPSG31370:
name: Belge 1972 / Belgian Lambert 72 datum: bel72 ellps: international proj: lcc lat_1: 51.16666723333333 lat_2: 49.8333339 lat_0: 90 lon_0: 4.367486666666666 x_0: 150000.013 y_0: 5400088.438 no_defs: defined
And here's the PROJ_INFO file of the location:
name: Lambert Conformal Conic proj: lcc datum: bel72 ellps: international lat_1: 51.16666723333333 lat_2: 49.8333339 lat_0: 90 lon_0: 4.367486666666666 x_0: 150000.013 y_0: 5400088.438 no_defs: defined
I don't remember how this location was created (based on a file, perhaps), but as you can see the parameters are strictly identical, it's just the name that differs.
v.unpack uses compare_key_value_text_files from lib/python/script/core.py. Maybe a solution would be to add to that function a list of keys to skip and then v.unpack could add 'name' as a key to skip. Thus, if all other parameters are equal the projection test wouldn't fail.
comment:3 by , 8 years ago
Milestone: | 7.2.1 → 7.2.2 |
---|
comment:4 by , 7 years ago
Milestone: | 7.2.2 → 7.4.0 |
---|
All enhancement tickets should be assigned to 7.4 milestone.
comment:6 by , 6 years ago
Milestone: | 7.4.1 → 7.4.2 |
---|
comment:7 by , 6 years ago
Milestone: | 7.4.2 → 7.6.0 |
---|
All enhancement tickets should be assigned to 7.6 milestone.
Can you please attach the PROJ_INFO file? And, if known, the EPSG code?