[Qgis-developer] ogr virtual datasource not working

Milo van der Linden milo at dogodigi.net
Wed Feb 23 15:32:05 EST 2011


Thanks! Nice tip! I have read the documentation and will play arround with
setting the datatypes for my columns too, this will give me the ability to
do thematic mapping right on the csv!

2011/2/23 Richard Duivenvoorde <rdmailings at duif.net>

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20110223/ab58b059/attachment.html


More information about the Qgis-developer mailing list