-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Batch sampling on layer el10978 does not work on Sampling-service #219
Comments
Layer filed stored at : /data/ala/data/layers/ready/layer https://sampling.ala.org.au/sampling-service//intersect/el10978/-65.2443/120.0708 Those query have the same results / empty results. The results should be correct since those coordinates are in the ocean. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem:
this link returns a correct value of a lat/lng from the layer el10978 -WorldClim 2.1: Temperature - annual mean
https://sampling.ala.org.au/sampling-service//intersect/el10978/-28.54999999920733/138.1
However, when we send a batch request:
https://sampling.ala.org.au/sampling-service/intersect/batch?fids=el10978&points=-28.54999999920733,138.1,38.05829999908396,145.325,-29.9,116.2,-37.67537,145.0815
No values were returned
Checked the Nginx settings on Sampling-service
We found:
The batch request runs on local and the others are forwarded to spatial service
We tried to send the same batch request to Spatial service directly
https://spatial.ala.org.au/ws/intersect/batch?fids=el10978&points=-28.54999999920733,138.1,38.05829999908396,145.325,-29.9,116.2,-37.67537,145.0815
It returned correct results:
latitude,longitude,el10978
It is reasonable to believe the sampling-service and spatial-service are sharing the same layer information
BUGS
Reviewed the Layers-store code, we found if a layer file is not found on the server, layers-store does not log any error information and just return null value - It has some codes to check if the layer exists, but the code does not work
Checking layers on both servers
We found
There are 19 worldclim21_bio grid files - from worldclim21_bio1 to worldclim21_bio19 on Spatial-service, e.g. el10978 is worldclim21_bio1.gri , size is 3.5G
However, this is only 1 worldclim21_bio grid file on sampling-service, worldclim21_bio1.gri, size is 1.1G ?incorrect size?
(For testing purpose, we moved this worldclim21_bio1.gri to a backup folder)
After, worldclim21_bio1.grd and .gri (size~3.5) copied to sampling service, the same request returns:
which is the same as the result from Spatial service
Questions:
The link
https://spatial.ala.org.au/ws/layers.json
returns 154 layers. And we can find 437 layers via `https://spatial.ala.org.au/ws/manageLayers/layers'Checking 154 layers listed onSpatial, we have found 102 missing layers on sampling service
The text was updated successfully, but these errors were encountered: