[Gdal-dev] Cookie cutting shapefiles in OGR
Chapman, Martin
MChapman at sanz.com
Wed Jul 5 12:23:43 EDT 2006
Thank you for the information Markus. I will look into that.
Martin
-----Original Message-----
From: gdal-dev-bounces at lists.maptools.org
[mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of Markus Neteler
Sent: Wednesday, July 05, 2006 5:59 AM
To: gdal-dev at lists.maptools.org
Subject: Re: [Gdal-dev] Cookie cutting shapefiles in OGR
On Sun, Jul 02, 2006 at 04:18:36PM -0400, Frank Warmerdam wrote:
...
> You might want to look at options for doing this in GRASS. I believe
it
> has some sort of layer overlay operation (perhaps done in the raster
> domain?).
You can do it both in the raster or vector domain.
Since vector was asked:
http://grass.itc.it/grass61/manuals/html61_user/v.overlay.html
http://grass.itc.it/grass61/manuals/html61_user/v.select.html
Operators are
and : also known as 'intersection' in GIS
or : also known as 'union' in GIS (only for atype=area)
not : features from ainput not overlayed by features from binput
xor : features from either ainput or binput but not those from
ainput overlayed
by binput (only for atype=area)
As a script solution, you can put everything into a shell script which
internally launches GRASS:
- v.in.ogr: import
- v.overlay: operation
- v.out.ogr: export
For details, see
http://grass.gdf-hannover.de/wiki/GRASS_and_Shell
Regards,
Markus
_______________________________________________
Gdal-dev mailing list
Gdal-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/gdal-dev
More information about the Gdal-dev
mailing list