How to read GeoCSV with OGR?

المشرف العام

Administrator
طاقم الإدارة
I have a GeoCSV file which stores the geometry in a WKT formatted cell following this recommendation:

"identifier","date","geom","value""Dgf01","15.04.2013","POINT (52.404869 13.147457)","285""Erp06","19.07.2012","POINT (52.455153 13.603216)","170""Gbs02","06.08.2013","POINT (52.476737 13.215827)","305"[...]But it does not recognize the geometry field, it always says Geometry: None.

$ ogrinfo -ro -geomfield "geom" geo.csv -alINFO: Open of `geo.csv' using driver `CSV' successful.Layer name: geoGeometry: NoneFeature Count: 3Layer SRS WKT:(unknown)identifier: String (0.0)date: String (0.0)geom: String (0.0)value: String (0.0)OGRFeature(geo):1 identifier (String) = Dgf01 date (String) = 15.04.2013 geom (String) = POINT (13.147457 52.404869) value (String) = 285[...]I tried different formats but it does not work at all. How to read GeoCSV with OGR correctly?



أكثر...
 
أعلى