Re: [gdal-dev] invalid data in spatial file

2020-01-16 Thread Even Rouault
On jeudi 16 janvier 2020 11:59:30 CET Wuyyuru Ravi Teja Krishna wrote: > Hello, > > 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:

Re: [gdal-dev] invalid data in spatial file

2020-01-15 Thread jratike80
Hi, Your GeoJSON does not tell in what coordinate reference system the geometries are: { "type": "Feature", "properties": { "scalerank": 2, "featurecla": "waterfall", "name": "Niagara Falls"}, "geometry": { "type": "Point", "coordinates": [ -643212.061818000385017, 5765.686896063275327 ] } } Do

Re: [gdal-dev] invalid data in spatial file

2020-01-15 Thread Wuyyuru Ravi Teja Krishna
Hello, 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" thanks. On T

Re: [gdal-dev] invalid data in spatial file

2020-01-15 Thread Even Rouault
Hello, > 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 po

[gdal-dev] invalid data in spatial file

2020-01-13 Thread Wuyyuru Ravi Teja Krishna
Hello,  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 possib