[gdal-dev] invalid data in spatial file

Wuyyuru Ravi Teja Krishna ravitejakrishna.w at zohocorp.com
Wed Jan 15 22:29:30 PST 2020


The geojson file before conversion and csv file after conversion are attached below.

the ogr2ogr command line used isĀ 

java -cp :gdal.jar -Djava.library.path=libs/ ogr2ogr "-f" "CSV" "-t_srs" "CRS:84" gdaltampered.csv gdaltampered.geojson "-lco" "GEOMETRY=AS_WKT"


---- On Thu, 16 Jan 2020 05:44:36 +0530 Even Rouault <even.rouault at spatialys.com> wrote ----

> I am trying to convert a geojson file to csv file. but that coordinates were 
> tampered i.e 32.76543 is changed as 2333432.76543. Is there a way that 
> ogr2ogr conversion util will throw an error for such cases that data is 
> invalid. It would be of great help if such error throwing is possible. 
You should provide a sample csv file and the exact ogr2ogr command line to 
reproduce the issue 
Spatialys - Geospatial professional services 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200116/b892980c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdaltampered.csv
Type: application/octet-stream
Size: 172 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200116/b892980c/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdaltampered.geojson
Type: application/octet-stream
Size: 506 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200116/b892980c/attachment-0001.obj>

More information about the gdal-dev mailing list