gis - gdal/ogr: How to really crop a shapefile? -


given shp file corresponding european countries, and...

given defined area corresponting france such :

west : 005° 48' w east : 010° e north : 051° 30' n south : 041° n 

how dots/geometries intersects defined area gdal ? crop indeed real crop, keep necessary geometries. strong preference gdal, ogr or console solutions.

use gdal's ogr2ogr command-line utility. if have file europe.shp has spatial reference units of degrees, use -clipsrc option decimal degrees make new shapefile:

ogr2ogr -clipsrc -5.8 41 10 51.5 france.shp europe.shp 

there an example @ ogr2ogr page france used example.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -