Skip to content

Repository files navigation

GeoDiscovery File Processing

A place to store the scripts used to process AGSL Archival GIS data.

Links and notes:

Example Steps to process \Test Fixture Data\Wisconsin_IceAgeTrail_2019:

  1. Mint an ark for the resource using NOID
  2. Bind the ark's where tag to "https://geodiscovery.uwm.edu/*ark:id*"
  3. Add the ark:id and the url generated to the ArcGIS format metadata (Wisconsin_IceAgeTrail_2019.shp.xml)
  4. Regenerate ISO and FGDC XML metadata (Wisconsin_IceAgeTrail_2019_ISO.xml and Wisconsin_IceAgeTrail_2019_FGDC.xml)
  5. Zip the folder -> Wisconsin_IceAgeTrail_2019.zip
  6. Use the metadata to determine which directory the folder will go to (public, UW, UW-System)
  7. Create a directory with the ark:id as the directory name
  8. Put the zip file in the directory
  9. Create copies of ISO and FGDC metadata outside the zip in the directory.
  10. Use GeoCombine to generate aardvark JSON metadata - > ark:id.json, put it in the directory. (This step should include generating the download link: https://geodata.uwm.edu/*public*/*ark:id*)

noidmint.py

Contains two functions:

searchForID()

Designed to take a response string from the noid minter and applies a regular expression to extract the arkid.

Could easily be modified to extract component parts, such as the Name Assigning Authority Number and the Assigned Name.

Takes a string, returns a string.

mintArk()

Designed to accept a noid minter url as a string as it's only argument and return a string containing just the arkid. Includes a try loop to catch any connection issues and checks the status code from the minter to ensure the request is completed as expected.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages