[GRASS-dev] [GRASS GIS] #3854: r.stream.extract does not support fully qualified map names

GRASS GIS trac at osgeo.org
Mon May 27 00:58:52 PDT 2019


#3854: r.stream.extract does not support fully qualified map names
------------------------------+-------------------------
 Reporter:  sbl               |      Owner:  grass-dev@…
     Type:  defect            |     Status:  new
 Priority:  normal            |  Milestone:  7.6.2
Component:  Raster            |    Version:  svn-trunk
 Keywords:  r.stream.extract  |        CPU:  All
 Platform:  All               |
------------------------------+-------------------------
 r.stream.extract does not find the input elevation model, if it is
 specified with the fully qualified map name and it`s mapset is not on the
 search path.

 {{{
 grass /grassdata/LOCATION/my_mapset --exec r.stream.extract
 elevation=DTM_1m at my_other_mapset threshold=5000 stream_length=100
 stream_raster=DTM_1m_streams stream_vector=DTM_1m_streams
 }}}

 Gives:
 {{{
 ERROR: Raster map <DTM_1m> not found.
 }}}

 While:
 {{{
 grass /grassdata/LOCATION/my_mapset --exec g.mapsets operation=add
 mapset=my_other_mapset
 grass /grassdata/LOCATION/my_mapset --exec r.stream.extract
 elevation=DTM_1m at my_other_mapset threshold=5000 stream_length=100
 stream_raster=DTM_1m_streams stream_vector=DTM_1m_streams
 }}}
 works.

 Probably because it uses
 [https://github.com/OSGeo/grass/blob/master/raster/r.stream.extract/main.c#L172
 G_find_raster] instead of
 [https://github.com/OSGeo/grass/blob/master/raster/r.stream.extract/main.c#L248
 G_find_raster2] ?

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3854>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list