Re: [gdal-dev] Difficulty opening Safecast GeoJSON data

2014-05-06 Thread Mark Coletti
On Mon, May 5, 2014 at 4:57 PM, David Fawcett wrote: > On second thought, I see that the .csv file is 2.1 gb! I would suggest > not following the .csv driver approach. > > I would follow Sean's suggestion and just use some simple Python (or > whatever language that you want to use to consume the

Re: [gdal-dev] Difficulty opening Safecast GeoJSON data

2014-05-05 Thread Even Rouault
Le lundi 05 mai 2014 22:57:12, David Fawcett a écrit : > On second thought, I see that the .csv file is 2.1 gb! I would suggest not > following the .csv driver approach. Note: Download time might be the problem, but except that, the OGR CSV (and VRT) driver should be able to deal with multi giga

Re: [gdal-dev] Difficulty opening Safecast GeoJSON data

2014-05-05 Thread David Fawcett
On second thought, I see that the .csv file is 2.1 gb! I would suggest not following the .csv driver approach. I would follow Sean's suggestion and just use some simple Python (or whatever language that you want to use to consume the data) to grab the XY values and write out geometries. David.

Re: [gdal-dev] Difficulty opening Safecast GeoJSON data

2014-05-05 Thread David Fawcett
Mark, You could use the GDAL/OGR .csv driver with a VRT to access the data and spit it out into a different, filtered file. http://www.gdal.org/ogr/drv_csv.html You could also use the VSI to pull from a .zip'd file via URL. You could also likely use args with ogr2ogr to filter by attribute or b

Re: [gdal-dev] Difficulty opening Safecast GeoJSON data

2014-05-05 Thread Mark Coletti
Thank you Even and Sean for your very quick and salient replies! I'll notify the Safecast folks that their data might be better served using GeoJSON; meanwhile, they also make their open source data available as a single downloadable file in CSV format. Since qgis can import files of that type, I

Re: [gdal-dev] Difficulty opening Safecast GeoJSON data

2014-05-05 Thread Sean Gillies
Hi Mark, Safecast's JSON isn't GeoJSON, but wouldn't be too hard to crosswalk over to GeoJSON... make a geometry from its latitude/longitude, stuff all the other attributes in properties. On 5/5/14, 1:56 PM, Mark Coletti wrote: Safecast is user sourced radiation data, and has a public API s

Re: [gdal-dev] Difficulty opening Safecast GeoJSON data

2014-05-05 Thread Even Rouault
Le lundi 05 mai 2014 21:56:04, Mark Coletti a écrit : > Safecast is user sourced radiation data, and has a public API serving data > in GeoJSON format (https://api.safecast.org/en-US/home). However, I'm > having difficulty in accessing this data via OGR: Mark, This is JSON, but not GeoJSON (the

[gdal-dev] Difficulty opening Safecast GeoJSON data

2014-05-05 Thread Mark Coletti
Safecast is user sourced radiation data, and has a public API serving data in GeoJSON format (https://api.safecast.org/en-US/home). However, I'm having difficulty in accessing this data via OGR: % ogrinfo -so " https://api.safecast.org/en-US/measurements?distance=10&latitude=37.42&longitude=141.0