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?

closed as off-topic by Vince, Kadir Şahbaz, ahmadhanb, Jochen Schwarze, LaughU Apr 9 at 7:25

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This problem cannot or can no longer be reproduced. Changes to the system or to the asker's circumstances may have rendered the question obsolete, or the question does not include a procedure to enable potential answerers to reproduce the same symptoms. Such questions are off-topic as they are unlikely to help future readers, but editing them to include more details can lead to re-opening." – Vince, Kadir Şahbaz, ahmadhanb, Jochen Schwarze, LaughU
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Are the shapefiles in the same coordinate system? – smiller Apr 8 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 8 at 19:13
  • It looks like there's a clip tool -- guides.library.duke.edu/QGIS/Clip. Vector -> Geoprocessing -> Clip – smiller Apr 8 at 19:19
  • @smiller Thanks it worked. – bambi Apr 8 at 19:26
  • Great! Added as answer. Please take a moment to mark it as accepted if it was helpful. – smiller Apr 8 at 20:13

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?

Not the answer you're looking for? Browse other questions tagged or ask your own question.