[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 08:05:34 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                                                 
--------------------------+-------------------------------------------------
Changes (by hamish):

  * priority:  blocker => major

Comment:

 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)

 as a solution maybe the code should assemble "%s/%s", indbase->answer,
 inlocation->answer and test that string against G_location_path(). ?
 would that lead to dirsep hell?


 Hamish


 ps- cc'ing yourself is generally not needed, as a bug submitter or
 commenter you should be emailed any change through your osgeo id.
 less spam that way.

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


More information about the grass-dev mailing list