[GRASS-dev] i.rectify still chokes on @mapset

Moritz Lennert mlennert at club.worldonline.be
Wed Apr 15 13:44:39 EDT 2009


On 15/04/09 19:14, Markus Neteler wrote:
> On Wed, Apr 15, 2009 at 7:12 PM, Isaac Ullah <iullah at asu.edu> wrote:
>> To clarify,  the error is exactly this:
>>
>> i.rectify group=central_hasa_square_60_69 at PERMANENT
>> input=central_hasa_square_60_69.1 at PERMANENT extension=rectify_test order=1
>> Input raster map <central_hasa_square_60_69.1 at PERMANENT> does not exist in
>> group <central_hasa_square_60_69 at PERMANENT>.
>>  Try:
>> central_hasa_square_60_69.1
>> central_hasa_square_60_69.alpha
>> Exit!
> 
> three questions:
> 
> - in which mapset are you currently? (g.gisenv)
> - does the group really exist? (g.list group)
> - please post the content of the group file

As the message says, the group file contains 
central_hasa_square_60_69.1, but not 
central_hasa_square_60_69.1 at PERMANENT. I would guess that the problem is 
  in line 166 of imagery/i.rectify/main.c (ref to trunk) where you have

if (strcmp(ifile->answers[m], ref.file[n].name) == 0) {

without stripping the @mapset from the file name and so the comparison 
with the files in the group fails.

Don't know how this is handled elsewhere, but should be fairly trivial 
to correct, I would guess.

Moritz


More information about the grass-dev mailing list