[GRASSLIST:4526] Re: roads cut slopes in right angle
Eric G. Miller
egm2 at jps.net
Wed Sep 18 03:10:35 EDT 2002
On Wed, Sep 18, 2002 at 09:20:45AM +0300, orkun wrote:
> Hi
>
> Does anyone have an idea about how to query a road map to get a new map
> in which roads cut slopes in right angle ?
Hmmm, maybe:
Convert vector roads to raster at resolution << than road width.
Create a raster elevation layer just along these road centerlines:
r.mapcalc 'elev_roads = if (!isnull(centerline), elevation)'
Now, grow the elev_roads to the width of the road (r.resample?) --
not sure if that will work well.
Finally:
r.mapcalc 'cut_elev = if (!isnull(elev_roads2), elev_roads, elevation)'
Don't know if that'll work too well because the r.resample is liable
just create a NULL raster -- not sure how it's handling the NULL's in
the input.
--
begin 664 .signature
M<F5L;&E-("Y'(&-I<D4@/G1E;BYS<&I`,FUG93P)"`@("`@("`@("`@("`@(
M"`@("`@("`@("`@("`@("`A%<FEC($<N($UI;&QE<B`\96=M,D!J<',N;F5T
"/@H`
`
end
More information about the grass-user
mailing list