Closed turley85 closed 1 month ago
Note, the shapefile for this alert is quite complex: https://spatial.ala.org.au/?pid=9433211
I think these two alerts are failing in the same way too:
Thanks for flagging Andrew, the team are investigating
Hi @turley85 , thanks for the screenshot, from the R alert, could you please supply a few occurrenceIds / links that you were expecting that did not appear?
Hi @turley85 , thanks for the screenshot, from the R alert, could you please supply a few occurrenceIds / links that you were expecting that did not appear?
https://biocache.ala.org.au/occurrences/4a42e85a-117c-4734-a663-bb90164f2991 https://biocache.ala.org.au/occurrences/d161667c-c613-434b-aa53-272945e8fb65 https://biocache.ala.org.au/occurrences/d87ee725-d644-4baf-b755-a9d95a5a72b9
The use of spatialObject
requires more knowledge. General users of the ALA do not need to be aware of this as their objects are simplified by default. spatialObject
is not simplified automatically, giving more control to advanced users.
https://biocache.ala.org.au/ws/occurrences/search?q=spatialObject:9433211
returns an error message.https://biocache.ala.org.au/occurrences/search?q=spatialObject:9433211
also fails, but without the specific error message.In this case, the tests above fail and one reports that the object is too large.
Analysis of all future shapefiles is required. For this example:
.shp
file by about 100 times.The method of simplification to use for all future shapefiles:
Example use cases:
Hi @turley85 - I'm happy to run through this in QGIS with you, either in our catchup tomorrow or another time that suits, if you'd like
@kylie-m I think we need more than just to correct this file. Could a list of requirements for shapefile be produced that could be given to users to ensure their files match our requirements/standards?
Hi Andrew, I've been working through this one for you, it looks like we have a promising solution.
Following Adam's guidance above, the team have downloaded the shapefiles, reduced the complexity of each in QGIS, and uploaded a new copy. I'll include my testing steps below too.
Testing steps:
Test links following steps above:
I also did a quick test of an alert, spatialObject:9439584 seemed to work well for my "Rivers-test2" alert in production
Actions for you -
Longer term, I agree some guidelines for users on what they're supplying would be helpful. I spoke with Adam about this, though we don't have a single file size limit we can give them. As a starting point, we could test new files using the biocache web service link and if that fails, we could ask for complexity to be reduced. We can also run through the QGIS process we have used if needed, though I expect their experts are probably already across it.
Hi Andrew, I've taken another look at the NSW NPWS Invasive Species Unit List shapefile, and it's looking like the shapefile optimisation process I've used has worked.
Original spatialObject: 9433211
New spatialObject (to 0.0001 degrees, or ~11.1m): 9454574
(Saved session where you can compare both shapefiles: https://spatial.ala.org.au/?ss=1726203062173)
Tested using the Biocache link: https://biocache.ala.org.au/ws/occurrences/search?q=spatialObject:9454574 Result: Returned records
Tested using map view on Biocache: https://biocache.ala.org.au/occurrences/search?q=&fq=spatialObject:9454574#tab_mapView Result: returned records
Tested an alert: https://lists.ala.org.au/speciesListItem/list/dr28053 Result: Records showing on preview and email
Hi @turley85, just flagging the response to this one, have you had a chance to try out the new optimised version of NSW NPWS Invasive Species Unit List shapefile - spatialObject:9454574? It was testing ok for me with alerts, but let me know if any issues come up
That looks to be working @kylie-m. This list has been transferred over to the new alerts system now.
That's great news! I'll close off this issue now
I think the alert for the NSW Invasive Species unit (BioSecurity alert for NSW_NPWS_InvasiveSpeciesUnit_list) is failing. In testing, it's taking many minutes to load a preview, then showing zero detections:
But R alerts are detecting occurrences during this same time period.
As such, I suspect the alert itself is failiing/timing out.