Opened 7 months ago

Closed 7 months 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 Changed 7 months ago by mmetz

Fixed in master, relbr76, and relbr74.

comment:2 Changed 7 months ago by sbl

Resolution: fixed
Status: newclosed

Yes, tested in master and works fine!

Note: See TracTickets for help on using tickets.