[Qgis-developer] ogr virtual datasource not working
Richard Duivenvoorde
rdmailings at duif.net
Wed Feb 23 15:29:18 EST 2011
Milo van der Linden wrote:
> Shouldn't it go to the dev list if the absolute path is required? I
> think that assuming the vrt and the csv are in the same dir should be
> the first check as ogr2ogr has no problem with it.
Hi Milo,
I had a look at the docs of ogr vrt driver:
http://www.gdal.org/ogr/drv_vrt.html
it's not really necessary to use the full path, you can add a attribute
relativeToVRT="1" to the SrcDataSource element:
<SrcDataSource relativeToVRT="1">test.csv</SrcDataSource>
instead of
<SrcDataSource>test.csv</SrcDataSource>
this makes your vrt-definition also work in qgis without an absolute
path. (don't know why a relative path is working for ogr2ogr though ...)
Regards,
Richard
More information about the Qgis-developer
mailing list