0

I have two shapefiles with me, one big and one small. I want to clip part of big shapefile where the small shapefile is located. I tried QGIS vector intersect by geometry, but that is returning me empty file.

Is there any command line argument from gdal that can do the job for me?

Kadir Şahbaz
  • 76,800
  • 56
  • 247
  • 389
bambi
  • 113
  • 3
  • Are the shapefiles in the same coordinate system? – SMiller Apr 08 '19 at 19:06
  • @smiller No they were not. But now I reprojected them to same coordinate system and tried QJIS intersect but again no result. Is intersect the right command or should I try anything else ? – bambi Apr 08 '19 at 19:13
  • It looks like there's a clip tool -- https://guides.library.duke.edu/QGIS/Clip. Vector -> Geoprocessing -> Clip – SMiller Apr 08 '19 at 19:19
  • Great! Added as answer. Please take a moment to mark it as accepted if it was helpful. – SMiller Apr 08 '19 at 20:13

1 Answers1

1

First ensure that the shapefiles are in the same coordinate system, reprojecting if necessary. Then try the Clip tool in QGIS:

Vector -> Geoprocessing -> Clip 

Additional information on this tool: https://guides.library.duke.edu/QGIS/Clip

Clipping line layer based on polygons with QGIS?

Kadir Şahbaz
  • 76,800
  • 56
  • 247
  • 389
SMiller
  • 3,706
  • 9
  • 22