[gdal-dev] Overflow in geojson values
Smith, Michael ERDC-RDE-CRREL-NH
Michael.Smith at erdc.dren.mil
Thu Aug 1 10:36:00 PDT 2013
I'm reading a geojson feed put out by the USGS (http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson) but the time/updated values are overflowing. Are there any settings to allow the data to come across as bigint or strings?
For example:
{"type":"Feature","properties":{"mag":0.46,"place":"2km W of Lemmon Valley, Nevada","time":1375291903959,"updated":1375295733317,"tz":-420,"url":"http://earthquake.usgs.gov/earthquakes/eventpage/nn00419191","detail":"http://earthquake.usgs.gov/earthquakes/feed/v1.0/detail/nn00419191.geojson","felt":null,"cdi":null,"mmi":null,"alert":null,"status":"REVIEWED","tsunami":null,"sig":3,"net":"nn","code":"00419191","ids":",nn00419191,","sources":",nn,","types":",cap,general-link,geoserve,nearby-cities,origin,","nst":12,"dmin":0.069,"rms":0.1034,"gap":74,"magType":"ml","type":"earthquake"},"geometry":{"type":"Point","coordinates":[-119.8773,39.632,5.0829]},"id":"nn00419191"}
Gets returned as
OGRFeature(OGRGeoJSON):176
mag (Real) = 1.7
place (String) = 21km S of Lowell, Oregon
time (Integer) = 902732480
updated (Integer) = 903846662
tz (Integer) = -420
url (String) = http://earthquake.usgs.gov/earthquakes/eventpage/uw60561592
detail (String) = http://earthquake.usgs.gov/earthquakes/feed/v1.0/detail/uw60561592.geojson
felt (String) = (null)
cdi (String) = (null)
mmi (String) = (null)
alert (String) = (null)
status (String) = REVIEWED
tsunami (String) = (null)
sig (Integer) = 44
net (String) = uw
code (String) = 60561592
ids (String) = ,uw60561592,
sources (String) = ,uw,
types (String) = ,cap,general-link,geoserve,nearby-cities,origin,
nst (Integer) = (null)
dmin (Real) = 0.24254513
rms (Real) = 0.24
gap (Real) = 118.8
magType (String) = Md
type (String) = quarry
POINT (-122.7927 43.7262 0)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130801/165f7b47/attachment.html>
More information about the gdal-dev
mailing list