[gdal-dev] .csvt file doesn't allow space after comma

Peter Halls p.halls at york.ac.uk
Fri Nov 29 05:16:35 PST 2013


David,


http://www.qgis.nl/2012/07/13/koppelen-van-data-uit-csv-bestand/?lang=endefines
the cvst file as a sequence of comma separated column definitions.
The examples are all 'dense', with no space between the comma and the next
value.  It seems odd to define it in this way - perhaps there is a reason
or perhaps it is a bijou bugette in QGIS ...

Peter


On 29 November 2013 03:51, David Strip <gdal at stripfamily.net> wrote:

>  I am trying to use a .csv file in a qgis project. After not getting what
> I expected, I learned about .csvt files and wrote a file that looked like
>
> "String", "Integer"
>
> with a space following the comma. This did not work - both fields were
> still read as String. After removing the comma I got a String field and an
> Integer field.
> The documentation states the list is comma-separated, which I suppose if
> strictly interpreted could mean no white space. However, in general .csv
> files ignore whitespace following a comma.
> I'm posting this in the event that someone is working with a more complex
> .csvt file that fails might have a chance of finding this when they search
> for a clue as to why their file isn't working.
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
----------------------------------------------------------------------------------------------------------------
Peter J Halls, GIS Advisor & Team Leader Applications Support and Training,
               Information Directorate, University of York
Telephone: 01904 323806     Fax: 01904 323740
Snail mail: Harry Fairhurst Building, University of York,
                Heslington, York YO10 5DD
This message has the status of a private and personal communication
----------------------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20131129/a08762d0/attachment-0001.html>


More information about the gdal-dev mailing list