Closed djtfmartin closed 9 years ago
Maybe more to it. This works for the bird Acanthiza (Geobasileus) chrysorrhoa:
http://spatial.ala.org.au/ws/distribution/outliers/urn:lsid:biodiversity.org.au:afd.taxon:8969a0e0-3d46-4c6e-a233-1ba9e82a2886
with
pointsJson=
{"point1":{"decimalLatitude": -18.4,"decimalLongitude": 144.1}}
gives
{
"point1": 18100.071262463545
}
Fixed on prod.
Code is here:
https://github.com/AtlasOfLivingAustralia/layers-store/blob/master/src/main/java/au/org/ala/layers/dao/DistributionDAOImpl.java#L462
Service accepts a x-www-form-urlencoded post with the folllowing request param:
to the URL
http://spatial.ala.org.au/ws/distribution/outliers/urn:lsid:biodiversity.org.au:afd.taxon:f308a791-3721-4010-87ec-a61868b6ab79
but then blows up with the following exception:
The code looks like it isnt dealing with the case of when a distribution consists of more than one polygon.