[GRASS-user] v.patch: Correct Syntax?

Rich Shepard rshepard at appl-ecosys.com
Wed Dec 30 21:38:32 EST 2009


On Wed, 30 Dec 2009, Hamish wrote:

> In this case the box created by v.in.region should be an area.

   That's what I thought.

> Here is an example using the Spearfish sample dataset:
>
> #set to the default region
> g.region -dp
>
> # shrink the region in by 6km on all sides
> g.region w=w+6000 e=e-6000 n=n-6000 s=s+6000 -p
>
> #make an area box covering the current region
> v.in.region zoom_box
>
> # preform the overlay operation
> v.overlay ain=soils bin=zoom_box op=and out=soils_zoom_box

   Looks like what I did.

> Only thing I'd add to that is to make sure that your vector areas have
> category numbers.

   The ain does; not sure the bin does, too. I'll check that.

Thanks,

Rich


More information about the grass-user mailing list