Opened 5 years ago

Closed 5 years ago

#3854 closed defect (fixed)

r.stream.extract does not support fully qualified map names

Reported by: sbl Owned by: grass-dev@…
Priority: normal Milestone: 7.6.2
Component: Raster Version: svn-trunk
Keywords: r.stream.extract Cc:
CPU: All Platform: All

Description

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@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@my_other_mapset threshold=5000 stream_length=100 stream_raster=DTM_1m_streams stream_vector=DTM_1m_streams

works.

Probably because it uses G_find_raster instead of G_find_raster2 ?

Change History (2)

comment:1 by mmetz, 5 years ago

Fixed in master, relbr76, and relbr74.

comment:2 by sbl, 5 years ago

Resolution: fixed
Status: newclosed

Yes, tested in master and works fine!

Note: See TracTickets for help on using tickets.