|
We have a site which is receiving customer-submitted data.
In one case, a submitted feature has a z-value of "-27449444222548394000", which is obviously bogus.
Regardless, GeoTools crashes when trying to parse it:
Line | Method
->> 65 | forInputString in java.lang.NumberFormatException
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 444 | parseLong in java.lang.Long
| 540 | valueOf . . . in ''
| 236 | parse in org.geotools.geojson.GeoJSONUtil
| 655 | parse . . . . in org.geotools.geojson.geom.GeometryJSON
| 196 | read in ''
An example for the failing geoJSON is:
{"type":"LineString","coordinates":[[-82.14000994324927,38.1423427727003,-5.884389895313654e-49],[-82.13694429588939,38.13721961023166,-27449444222548394000]]}
Ideally, this should be parsed as a double instead of a long (aren't all coordinates doubles?)
|