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
- 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
- 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
python3 extract_metadata.py -h
to get all the command that are supported in our CLI-tool
(assuming GDAL is installed):
All CLITool impelementations can be found in the subfolders of the folder CLITools.
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
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
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 can be found in the folder Tests and can be executed with pytest.
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