[gdal-dev] VRT layer definition question

Al Piszcz ap at solarrain.com
Mon May 31 23:01:10 PDT 2021


Jukka:
Thank you, interesting, lat,lon interpreted as string by gdalinfo.

==== Request 1
ogrinfo file1.csv -al -so
INFO: Open of `file1.csv'
      using driver `CSV' successful.

Layer name: file1
Geometry: None
Feature Count: 1000
Layer SRS WKT:
(unknown)
lon: String (0.0)
lat: String (0.0)
id: String (0.0)
field_4: String (0.0)

=== Request 2
::: file1.csv
lon,lat,id,
0.084362378404311,0.08587464990542,"0"
0.090601035370249,0.005574551382458,"1"
0.074081946277276,0.020574321282505,"2"
0.034318505618178,0.034922734033886,"3"
0.008330436091964,0.013543226571866,"4"



Message: 2
Date: Mon, 31 May 2021 13:41:55 -0700 (MST)
From: jratike80 <jukka.rahkonen at maanmittauslaitos.fi>
To: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev]
Message-ID: <1622493715145-0.post at n6.nabble.com>
Content-Type: text/plain; charset=us-ascii

Hi,

Please add couple of rows from your CSV file. Maybe the lon and lat fields
are otherwise OK but GDAL does not recognize them to contain numbers but
perhaps text. You can also check what sort of attributes ogrinfo reports
with

ogrinfo file1.csv -al -so

-Jukka Rahkonen-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210601/46e9d616/attachment.html>


More information about the gdal-dev mailing list