Opened 7 years ago

Last modified 5 years ago

#3145 new enhancement

v.unpack: too sensitive to difference of names in projections

Reported by: mlennert Owned by: grass-dev@…
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)

comment:1 by neteler, 7 years ago

Can you please attach the PROJ_INFO file? And, if known, the EPSG code?

in reply to:  1 comment:2 by mlennert, 7 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 martinl, 7 years ago

Milestone: 7.2.17.2.2

comment:4 by martinl, 6 years ago

Milestone: 7.2.27.4.0

All enhancement tickets should be assigned to 7.4 milestone.

comment:5 by neteler, 6 years ago

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:6 by neteler, 6 years ago

Milestone: 7.4.17.4.2

comment:7 by martinl, 5 years ago

Milestone: 7.4.27.6.0

All enhancement tickets should be assigned to 7.6 milestone.

comment:8 by martinl, 5 years ago

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

comment:9 by martinl, 5 years ago

Milestone: 7.6.17.6.2

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.