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

2014-03-02 Thread Luca Delucchi
On 2 March 2014 04:23, Anna Petrášová kratocha...@gmail.com wrote: On Fri, Feb 28, 2014 at 5:14 PM, Luca Delucchi lucadel...@gmail.com wrote: On 28 February 2014 15:38, Markus Neteler nete...@osgeo.org wrote: Ideas? thanks I think the attached patch should fix the problem (I have no

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

2014-03-01 Thread Anna Petrášová
On Fri, Feb 28, 2014 at 5:14 PM, Luca Delucchi lucadel...@gmail.com wrote: On 28 February 2014 15:38, Markus Neteler nete...@osgeo.org wrote: Ideas? thanks I think the attached patch should fix the problem (I have no time to test it), but I don't know if it broke something else. I saw

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

2014-02-28 Thread Markus Neteler
On Thu, Feb 27, 2014 at 11:32 AM, Luca Delucchi lucadel...@gmail.com wrote: On 26 February 2014 18:04, Markus Neteler nete...@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

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

2014-02-28 Thread Glynn Clements
Luca Delucchi wrote: I would like to add at line 913 this: if dict_a.keys() != dict_b.keys(): return False The ordering of the elements in the list returned by .keys() isn't defined. E.g. for some dictionary d, d.keys() == d.copy().keys() can be (and typically is) False.

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

2014-02-27 Thread Luca Delucchi
On 26 February 2014 18:04, Markus Neteler nete...@osgeo.org wrote: Hi all ... back to this topic, I would be happy to find a solution for US vs UK English: GRASS 7.0.svn (patUTM32):~ r.unpack x60030_2000.green.histo2000_g.pack WARNING: Difference between PROJ_INFO file of packed map and of

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

2014-02-26 Thread Markus Neteler
On Thu, Oct 10, 2013 at 8:09 AM, Markus Neteler nete...@osgeo.org wrote: Dear Anna, thank you, a lot of work for you! ... back to this topic, I would be happy to find a solution for US vs UK English: GRASS 7.0.svn (patUTM32):~ r.unpack x60030_2000.green.histo2000_g.pack WARNING: Difference

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

2013-10-10 Thread Markus Neteler
Dear Anna, thank you, a lot of work for you! Here my test case result (certainly a bit extreme but illustrating the case): GRASS 7.0.svn (europe_laea):~ r.unpack landcover_1m.pack WARNING: Difference between PROJ_INFO file of packed map and of current location: - name:

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

2013-10-09 Thread Markus Neteler
Hi, the error (example UTM map import into LAEA location): r.unpack landcover_1m.pack ERROR: Projection information does not match. Aborting. is rather unhelpful. The code is: # check projection compatibility in a rather crappy way if not grass.compare_key_value_text_files('PROJ_INFO',

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

2013-10-09 Thread Anna Petrášová
Hi, please test r57969. You should see a diff if the proj_info files don't match. Anna On Wed, Oct 9, 2013 at 6:08 PM, Markus Neteler nete...@osgeo.org wrote: Hi, the error (example UTM map import into LAEA location): r.unpack landcover_1m.pack ERROR: Projection information does not