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
Post a Comment