Skip to content
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

Load Layer : Australia's Exclusive Economic Zone #126

Open
46 tasks
peggynewman opened this issue Nov 11, 2020 · 0 comments
Open
46 tasks

Load Layer : Australia's Exclusive Economic Zone #126

peggynewman opened this issue Nov 11, 2020 · 0 comments

Comments

@peggynewman
Copy link

Description

GA layer describing Australia using defined EEZ
A much more sophisticated view of Australian boundaries than the simple bounding box we use now
https://data.gov.au/dataset/ds-dga-a8c72ee4-d0c1-4447-973a-e5d2241b388c/details

Investigation and approval

Check the boxes below that apply, including comments where necessary, and then refer this issue to the appropriate person for approval:

  • The information doesn’t already exist (e.g., IPAs are in CAPAD)
  • Is it an AREA (single or multi-polygon that could be imported/saved) rather than a layer?
  • National coverage, or international coverage where data helps place the Australian region in context
  • Presents information that suggests spatial control of species distributions or would be useful in the interpretation or management of species and areas
  • Data is from an authoritative source
  • Spatial resolution of 1km or better preferred
  • Fills a gap in or complements our layer collection (name, space, time, environmental factor)
  • Anticipated broad usage by one or more of the following communities (research, area managers, environmental consultants, citizen scientists, education, public)
  • Has quality metadata
  • Data is in a form that is readily ingested into our systems
  • Is up to date
  • Supersedes an existing layer (deprecation or deletion)
  • Anticipates future requirements
  • Supports nationally significant projects (which themselves would need some evaluation, but GBR management given World Heritage status and threats would pass)
  • Externally funded? This may relate to project support.
  • Openly available (free and open source data).

Approval

  • Obtain approval from ALA Management to load layer based on an evaluation

Loading the layer

Once layer loading has been approved, the following are the steps required to load, integrate, and test it.

  • Download the original shapefile and metadata file
  • Analyse the shapefile for field value expectations
  • Select one or more fields from the shapefile to be included as fields in spatial/biocache
  • Upload layer at: https://nectar-spatial-staging.ala.org.au/ws/manageLayers/uploads
  • Once the shapefile upload is complete, choose Create layer
  • Enter the layer metadata and choose create layer
  • Wait until the layer is finished before creating a field, or the field creation will silently fail. Once the task list shows the create layer task and any other successive tasks as complete, you may continue. https://nectar-spatial-staging.ala.org.au/ws/tasks
  • Once the layer is loaded, create one or more fields
  • Once the fields are created, check that they are visible and correct on nectar-spatial-staging spatial-hub instance by adding the new Layer to a map
  • If not visible, run https://nectar-spatial-staging.ala.org.au/ws/tasks/create?name=Thumbnails
  • If still not visible, restart nectar-spatial-staging
  • If still not visible, wait for 24 hours and check again
  • If still not visible, give up and submit an issue on Github with the details for a spatial developer to look at
  • Once the fields are visible, go to https://spatial.ala.org.au/ws/manageLayers/remote and choose Copy layer
  • Once the copy is complete, check that the layer copy succeeded. The layer and the field should not be Enabled after the layer copy process completes, as a final safety if the copy failed to complete successfully.
  • Copy the layer to ala-dylan.it.csiro.au based on running the following on ala-dylan:
export LAYER_NAME=... # This is the short name for the layer
export LAYER_ID=... # This is the numeric identifier for the layer
export FIELD_ID=... # This is the cl/el identifier for the field
export API_KEY= # Obtain API key from at https://auth.ala.org.au/apikey/
/root/copy-layer-from-aws-spatial-prod.sh "${LAYER_NAME}" "${LAYER_ID}" "${FIELD_ID}" "${API_KEY}"
 sudo service tomcat7 restart
  • Pick a suitable coordinate that is expected to have a value from the layer, and test intersection sampling is working using the following and then inspecting ~/${FIELD_ID}-intersection-output/sample.csv:
export INTERSECTING_COORDINATES=-17,150;
export FIELD_ID=... # This is the cl/el identifier for the field
/root/check-intersection.py --field-id=${FIELD_ID} --intersecting-coordinates=${INTERSECTING_COORDINATES} --output-dir ~/${FIELD_ID}-intersection-output
Fetch 'https://sampling.ala.org.au/sampling-service/fieldsdb' and double-check that the field now exists and 'indb: true' is on the field that was added
TODO: automate this using 'jq'.
  • Run Complete Process and Sample jenkins job on aws-scjenkins http://aws-scjenkins.ala:9193/job/Complete%20Process%20and%20Sample/ (Or wait for the weekly automated job)
  • Run the Complete Reindex on aws-scjenkins http://aws-scjenkins.ala:9193/job/Complete%20Indexing/job/MASTER%20-%20Complete%20Re-index/ (Or wait for the next automated job after the Complete Process and Sample)
  • Check using biocache.ala.org.au that expected records have the new cl value (individual record displays are sourced from cassandra)
  • Check using biocache.ala.org.au that searches on the new cl value succeed (search results are sourced from solr)
  • Check that the new field exists in https://biocache-ws.ala.org.au/ws/index/fields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant