AtlasOfLivingAustralia / spatial-service

Spatial web services and layer administration console
https://spatial.ala.org.au/ws
2 stars 11 forks source link

Scatter plot won't generate data file if occurrences include NaN geospatial coordinates #178

Open qifeng-bai opened 3 years ago

qifeng-bai commented 3 years ago

We used to fetch spatial-valid data from biocache. It won't trigger this bug.

However, if ScatterPlot receives NaN coordinate, JSONObject.fromObject(scatterplotDataDTO) will throw "JSON does not allow non-finite numbers" exception

qifeng-bai commented 3 years ago

Temporary solution: replace NaN coordinates with Double.MIN, same as NaN in value