[GRASS-dev] Re: [GRASS GIS] #675: r.proj's "use different location" error while working in different dbases

GRASS GIS trac at osgeo.org
Sun Jul 5 10:18:35 EDT 2009


#675: r.proj's "use different location" error while working in different dbases
--------------------------+-------------------------------------------------
  Reporter:  nikos        |       Owner:  grass-dev at lists.osgeo.org                                   
      Type:  defect       |      Status:  new                                                         
  Priority:  major        |   Milestone:  6.4.0                                                       
 Component:  Raster       |     Version:  unspecified                                                 
Resolution:               |    Keywords:  r.proj, dbase, location, indbase->answer, inlocation->answer
  Platform:  Unspecified  |         Cpu:  Unspecified                                                 
--------------------------+-------------------------------------------------
Comment (by nikos):

 Replying to [comment:1 hamish]:
 > the bug appears as follows. r.proj(.seg) has the following check:
 >
 > >     if (strcmp(inlocation->answer, G_location()) == 0)
 > >         G_fatal_error(_("You have to use a different location for
 input than the current"));
 >
 > which fails if the location name is the same in both gisdbases. does it
 work if you leave the location= option blank? (default for mapsets is to
 assume the same, maybe location name too)

 No, it does not work and the error message (correctly I suppose) is:
 ERROR: G_getenv(): Variable LOCATION_NAME not set

 Nikos

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/675#comment:3>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list