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 <[email protected]> > 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 >
_______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
