sql query? You're using some kind of a database? You can easly do that kind of spatial queries using postgis
–
nickvesSep 29 '12 at 0:21

Thanks menjaraz, i will test it. Actually i think should be possible with ogr2ogr by using sql statement. I tried several combination but not i did not succeed. Let's see if somebody else reply. Ciao Giuseppe
–
user10600Sep 29 '12 at 20:38

+1 because this is ultra cool, but will it allow the OP to do the intersection/conflation stuff they mention? ::bows::
–
elrobisOct 17 '13 at 18:04

@elrobis I have updated the answer, because you make me notice that the second question was unanswered. Thank you.
–
afalcianoOct 18 '13 at 8:52

Hi, great answer, just an update for the final ogr2ogr statement. instead of "* FROM merge" for your example you want "* FROM unionLayer", since it was defined as unionLayer in your vrt. Also for those unfamiliar with vrt's in ogr your name="source1" will have to be the same as the name of your shapefile, so: <OGRVRTLayer name="myshapefile"> <SrcDataSource>myshapefile.shp</SrcDataSource>
–
VesantoJun 25 '14 at 10:41