[gdal-dev] ogr2ogr is not working for a geojson file

jratike80 jukka.rahkonen at maanmittauslaitos.fi
Mon Nov 23 06:07:36 PST 2020


Hi,

I don't know that Java stuff but at least there does not seem to be anything
wrong with your data nor  ogr2ogr. Your command runs without errors on
Windows and ogr2ogr binary (GDAL version 3.2).

-Jukka Rahkonen- 



Ravi Teja Krishna Wuyyuru wrote
> 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
> _______________________________________________
> gdal-dev mailing list

> gdal-dev at .osgeo

> https://lists.osgeo.org/mailman/listinfo/gdal-dev
> 
> 
> map_sample.geojson (647 bytes)
> <http://osgeo-org.1560.x6.nabble.com/attachment/5450537/0/map_sample.geojson>





--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list