Open lachlanhurst opened 7 years ago
@z0u proposed steps
DataController.query
: datasetId
, bandId
Job.Work
objectdatasetId
and bandId
are present, the DatabaseActor
should write to DatasetCats
instead of TaskCats
I'd probably suggest using landblade to do the upload and make the upload + import and categorise requests (via http://sydney.landblade.com/#/import). Once you've got the data imported into RSA the categorise request is just a GET request.
Something like http://rsaurl/{datasetId}/Band/{BandId}/TimeSlice/{TimeSliceId}/categorise
would do it.
The latest code (29th May 2016) in the feature-improved-user-import
supports uploading zip files via landblade, but the version in master requires you to unzip the tifs before upload.
Really any raster file should work provided it covers the region that RSA has been setup to cover. sydney.zip
Note: if importing using the Sydney config settings make sure you have UPLOAD_RES=20
added to your env.sh file (defaults to 100m).
So can I use live upload for this test?
And if I need to set UPLOAD_RES=20
on env.sh, do I need to restart lb server?
There's a RSA web service that when called, extracts statistics and saves the results to the DB (https://github.com/vpac-innovations/rsa/blob/akka-workers/src/spatialcubeservice/src/main/java/org/vpac/web/controller/DatasetController.java#L164). This is a blocking web request, which was ok for the Python import script, but is not suitable for the import UI. It also doesn't make use of the AKKA stuff at all, so is pretty slow (single threaded).
I'd like to have this web service work the same way as the one we use to extract stats from the query (non blocking, uses AKKA, can track progress). For a quick hack I modified that function in
DatasetController
to pass the QueryDefinition it creates to the query function in https://github.com/vpac-innovations/rsa/blob/akka-workers/src/spatialcubeservice/src/main/java/org/vpac/web/controller/DataController.java#L769 . The hack can be found here https://github.com/vpac-innovations/rsa/commit/6be331b007e9c61138c52155e2b31fdf66e90e83.Thing is I believe this hack worked, kinda. The problem is that the stats from running via AKKA are stored as query stats and not dataset stats (
DataSetCats
vsTaskCats
) and this breaks Landblade. Based on my reading of the code everything AKKA does is based on it being query stats (not Dataset stats).