[GRASS-user] cutting rasters with a vector

anna zanchetta ciupava at gmail.com
Sat Nov 30 04:41:17 PST 2013


thanks a lot to all of you.
as i said, i've already performed a serial rasterization in 6.4.x through
the path Nikos suggested,
good to know that something for vectors exists in 7.

i'll also have a look at the trimming-borders hints and keep you updated.

Anna



On Sat, Nov 30, 2013 at 11:07 AM, Nikos Alexandris
<nik at nikosalexandris.net>wrote:

> Francesco Pirotti UNIPD wrote:
>
> > Just a shot: rasterize a vector polygon and use the rasterized area (or
> > areas) as mask?
>
> I wouldn't think otherwise too. In GRASS GIS 6.4.x you have to go this path
> along (v.to.rast, r.mask, r.mapcalc).  In GRASS GIS 7, however, you can
> mask
> from a vector directly (i.e. r.mask vector=SomeVectorMap).
>
> Ensure to have set the resolution of the region to the one you desire as an
> output. Most of the times it should match the resolution of the raster
> map(s)
> to be masked. Otherwise, a resampling (based on Nearest Neighbour) will
> take
> place.
>
> Nikos
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20131130/36585233/attachment.html>


More information about the grass-user mailing list