Hi all,<br><br>How can I union several shapefiles into one using ogr?<br>I tried using the OGR Virtual Format and created a XML file similar to this:<br><pre><OGRVRTDataSource>
<OGRVRTUnionLayer name="unionLayer">
<OGRVRTLayer name="source1">
<SrcDataSource>source1.shp</SrcDataSource>
</OGRVRTLayer>
<OGRVRTLayer name="source2">
<SrcDataSource>source2.shp</SrcDataSource>
</OGRVRTLayer>
</OGRVRTUnionLayer>
</OGRVRTDataSource></pre>My next step was to call ogr2ogr to created the new file.<br>The above XML merges all shapes instead of performing an union.<br>How can I do a proper union using ogr?<br><br>Thanks,<br><br>
Paul<br><br>