[GRASSLIST:411] Re: SRTM coastline sharpening

Patton, Eric epatton at nrcan.gc.ca
Mon Mar 27 06:34:57 EST 2006


Maybe I'm not understanding the question, but couldn't you just make a
raster mask like this:

g.region <to-whatever-you-want>
r.mapcalc Newmap='1'
g.rename Newmap,MASK

~ Eric. 

-----Original Message-----
From: owner-GRASSLIST at baylor.edu
To: Luigi Ponti
Cc: grasslist at baylor.edu
Sent: 3/25/2006 11:36 PM
Subject: [GRASSLIST:386] Re: SRTM coastline sharpening

> Following the GRASSNews_vol3 article on SRTM import, I was trying to 
> sharpen coastlines using GSHHS shapefiles. However, the imported GSHHS
> vectors are just lines and not areas. Therefore I do not know how to 
> generate a raster MASK, because there is no area for v.to.rast to 
> produce a filled raster coverage.


others have mentioned the new SRTM v2 so I'll leave that, but for the
general vector how-to question:

An area is made up of a boundary and a centroid, so two steps are
needed:

# convert lines to boundaries
v.type line,boundary

# add centroids 
v.category op=add   # ?!!!

This second part I know possible, but I forget the correct command.
Maybe it is v.build or v.clean?


Hamish




More information about the grass-user mailing list