Clipping Shapefiles with OGR

How to clip shapefile to extent of another shapefile with OGR ( as found here)

Run FWTools (if you have it installed, otherwise install). Then type:

ogr2ogr -f “ESRI Shapefile” -clipsrc c:/sourcedir/sourcefile.shp c:/outputdir/outputfile.shp c:/extentfiledir/extentfile.shp

Advertisements

Leave a comment

Filed under Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s