Feature request #12990
Updated by Nyall Dawson over 6 years ago
Trying to create a virtual vector with postgis/spatialite layers (or anything that is not a shapefile) the tool will return an error.
Virtual vectors with postgis layer as datasources are like
@<OGRVRTDataSource>
<OGRVRTLayer name="layer1">
<SrcDataSource>PG:dbname=xxx host=localhost port=5432 user=xxx password=xxx</SrcDataSource>
<SrcLayer>layer1</SrcLayer>
</OGRVRTLayer>
<OGRVRTLayer name="layer2">
<SrcDataSource>PG:dbname=xxx host=localhost port=5432 user=xxx password=xxx</SrcDataSource>
<SrcLayer>layer2</SrcLayer>
</OGRVRTLayer>
</OGRVRTDataSource>@
Virtual vectors with postgis layer as datasources are like
@<OGRVRTDataSource>
<OGRVRTLayer name="layer1">
<SrcDataSource>PG:dbname=xxx host=localhost port=5432 user=xxx password=xxx</SrcDataSource>
<SrcLayer>layer1</SrcLayer>
</OGRVRTLayer>
<OGRVRTLayer name="layer2">
<SrcDataSource>PG:dbname=xxx host=localhost port=5432 user=xxx password=xxx</SrcDataSource>
<SrcLayer>layer2</SrcLayer>
</OGRVRTLayer>
</OGRVRTDataSource>@