[GRASS-dev] Re: [GRASS GIS] #718: r.li forgets mask/illegal filename
GRASS GIS
trac at osgeo.org
Fri Aug 14 22:29:37 EDT 2009
#718: r.li forgets mask/illegal filename
------------------------+---------------------------------------------------
Reporter: kyngchaos | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: Raster | Version: 6.4.0 RCs
Resolution: | Keywords: r.li
Platform: All | Cpu: All
------------------------+---------------------------------------------------
Comment (by glynn):
Replying to [comment:8 neteler]:
> As mentioned above, the path should NOT be set. conf= has to be a
filename, not a full pathname.
> Please always post the command line to better illustrate the problem
(also in GUI mode available)
>
> @devs: can we simply strip off the directory stuff?
It would be better to only prepend ~/.r.li/ if the filename isn't an
absolute path (see G_is_absolute_path()), or possibly if it doesn't
contain any directory separators.
AFAIK, the GUI will see "old_file" in the ->gisprompt field and provide an
absolute pathname. Either the ->gisprompt field needs to be removed (so
it's just a string option), or the code needs to be changed to allow an
absolute pathname. Or it could enumerate ~/.r.li/ and add all files found
therein to the ->options field.
Certainly, it shouldn't silently discard any directory components; that
would leave the user trying to figure out why it isn't behaving as
expected.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/718#comment:12>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list