[gdal-dev] vector VRT: Warning 1: Line 2: Attribute value should be single or double quoted.

Kyle Shannon kyle at pobox.com
Wed Aug 26 11:32:08 PDT 2015


Helmut,


On Wed, Aug 26, 2015 at 12:16 PM, Helmut Kudrnovsky <hellik at web.de> wrote:
> hi,
>
> I have a vector VRT which refers to a CSV.
>
> both files are attached to the mail:
>
> chondrilla.vrt
> <http://osgeo-org.1560.x6.nabble.com/file/n5221290/chondrilla.vrt>
> chondrilla.csv
> <http://osgeo-org.1560.x6.nabble.com/file/n5221290/chondrilla.csv>
>
> when I do ogrinfo on the VRT, I get following warning:
>
>>ogrinfo chondrilla.vrt
>>Warning 1: Line 2: Attribute value should be single or double quoted. Going
> on,
>>but this is invalid XML that might be rejected in future versions.
>>INFO: Open of `chondrilla.vrt'
>>      using driver `VRT' successful.
>>1: chondrilla (Point)
>
> a look into the CSV file:
>
> "gbifid","datasetkey","occurrenceid",...
> "895176382","834a4794-f762-11e1-a439-00145eb45e9a","",...
> ...
>
> any idea what should be changed in the VRT or in CSV, as the attribute
> values are quoted?

Quote the '1' in relativeToVRT:

<SrcDataSource relativeToVRT="1">chondrilla.csv</SrcDataSource>

>
> thanks
>
>
>
>
>
>
>
>
> -----
> best regards
> Helmut
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/vector-VRT-Warning-1-Line-2-Attribute-value-should-be-single-or-double-quoted-tp5221290.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev



-- 
Kyle


More information about the gdal-dev mailing list