Saturday, 15 June 2019

Can ogr2ogr "reverse clip" (or "clip out" or "erase" or "difference") one shapefile from another?


Is there a means in ogr2ogr to "clip out" one shapefile from another?


I know ogr2ogr -clipsrc B.shp out.shp A.shp will remove any part of A.shp that is NOT in B.shp.


Is there an ogr2ogr command to remove any part of A.shp that intersects with B.shp?


I have seen this called "reverse clip", "clip out", "erase" (ArcMap), or "difference".


Note: this question is about ogr2ogr, the command line tool, NOT the OGR library, which requires programming.





No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...