0

From three .tif files I got the relative associated .shp files through gdaltindex. Now, I'd like to create a new .shp file given by the intersection of the three shp. files previously obtained. How could I do this through gdal?

I found this Q&A but I don't know how to create OGR VRT layer.

Vince
  • 20,017
  • 15
  • 45
  • 64
Salvo
  • 31
  • 3
  • 1
    Info here: https://github.com/dwtkns/gdal-cheat-sheet – GeoMonkey Dec 21 '22 at 17:39
  • thank you very much, it was very helpful. I think I solved it like this: ogr2ogr -clipsrc master.shp output.shp slave.shp

    In my case (3 .shp files) ogr2ogr -clipsrc master.shp output.shp slave_one.shp ogr2ogr -clipsrc output.shp output_finale.shp slave_two.shp

    – Salvo Dec 21 '22 at 18:16

0 Answers0