Skip to content

bennidietz/geosoftware2_ct

 
 

Repository files navigation

geosoftware2_ct

This is the Geosoftware project written by @bennidietz, @ipleis, @NiklasAsselmann, @carojw and @KathHv.

To install the CLI-Tools the required packages to install are pip and python: Pip3 can be installed via the command line: sudo apt-get install python3-pip. Python can be installed via command line with these instructions

HOW TO MAKE THE CLI-TOOLS WORK:

  1. Write the following Code Block in your terminal:

git clone https://github.com/KathHv/geosoftware2_ct.git

cd geosoftware2_ct

pip3 install -r requirements.txt

cd CLITools

  1. Install GDAL: https://www.gdal.org
    • Download: http at download.osgeo.org
    • Choose CURRENT/
    • Choose gdal-2.4.0.tar.gz
    • Open Terminal and write
    • ./connect
    • make (may take a while)
    • sudo make install
  2. python3 extract_metadata.py -h to get all the command that are supported in our CLI-tool

Make the CLI-tools work with one command:

(assuming GDAL is installed):

All CLITool impelementations can be found in the subfolders of the folder CLITools.

extract Metadata:

The extract_metadata.py-file is just for extracting the bounding box, vector representation and temporal extent. The results will be printed.

cd CLITools/metadataExtraction && python3 extract_metadata.py -h

insert Entry:

The insert_Entry.py-file inserts a given xml file with metadata to a given server. The entry will then be updated by extracting metadata form the given source file of the metadata.

cd CLITools/transaction && python3 insertEntry.py -h

update Entry:

The update_Entry.py-file updates an Entry, identified by its id, with bounding box, vector representation and temporal extent, if available.

cd CLITools/transaction && python3 updateEntry.py -h

Tests:

Tests can be found in the folder Tests and can be executed with pytest.

further documentation and links:

The CLI Tool is written to insert and update Entries of the database in the pycsw Tool.

The documentation to the base software "pycsw" can be found here

Our pycsw repository: https://github.com/KathHv/pycsw

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%