[GRASS-dev] r.unpack: unhelpful error message when projection info does not match

Markus Neteler neteler at osgeo.org
Fri Feb 28 06:38:24 PST 2014


On Thu, Feb 27, 2014 at 11:32 AM, Luca Delucchi <lucadeluge at gmail.com> wrote:
> On 26 February 2014 18:04, Markus Neteler <neteler at osgeo.org> wrote:
...
> I solved the problem for units and projection system in r59147.

fine, thanks.

> The is stil a bug in compare_key_value_text_files because if second
> file has more keys this is not recognize.
> I would like to add at line 913 this:
>
> if dict_a.keys() != dict_b.keys():
>     return False
>
> but this could broke all the system of compare_key_value_text_files function
> what do you think?

Good (Python) question.

To illustrate the issue to all:

# being in a UTM South location, I try to import an UTM North map:
GRASS 7.0.svn (utm32s):/incoming/proj_mess > r.unpack
x60030_2000.green.histo2000_g.pack
Raster map <x60030_2000.green.histo2000_g> unpacked

--> should have been rejected

GRASS 7.0.svn (utm32s):/incoming/proj_mess > g.proj -p
-PROJ_INFO-------------------------------------------------
name       : Universal Transverse Mercator
proj       : utm
datum      : wgs84
ellps      : wgs84
zone       : 32
south      : defined   <<---- not tested properly
no_defs    : defined
-PROJ_UNITS------------------------------------------------
unit       : metre
units      : metres
meters     : 1

Ideas? thanks

Markus


More information about the grass-dev mailing list