[gdal-dev] ogr2ogr is not working for a geojson file
Wuyyuru Ravi Teja Krishna
ravitejakrishna.w at zohocorp.com
Mon Nov 23 00:32:24 PST 2020
Hi team,
I am using ogr2ogr with java bindings for conversion of a geojson file to a csv file, But I am getting an error as specified below.
ERROR 10: Pointer 'panMap' is NULL in 'OGR_F_SetFrom'.
Unable to translate feature 0 from layer map_sample
Terminating translation prematurely after failed
translation of layer map_sample (use -skipfailures to skip errors)
ogr2ogr is invoked as below
java -cp :gdal.jar -Djava.library.path=libs/ ogr2ogr "-s_srs" "CRS:84" "-t_srs" "CRS:84" "-f" "CSV" proplesscsv.csv map_sample.geojson "-lco" "GEOMETRY=AS_WKT"
I have also attached the sample file I was working with this mail. Kindly help me in this conversion failure.
Thanks & Regards,
Ravi Teja
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20201123/4e19e0a8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: map_sample.geojson
Type: application/octet-stream
Size: 647 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20201123/4e19e0a8/attachment.obj>
More information about the gdal-dev
mailing list