Skip to content

ECCC-MSC/msc-wis-dcpc

Repository files navigation

Build Status

msc-wis-dcpc

Overview

MSC WIS DCPC implementation

Installation

Requirements

Dependencies

Dependencies are listed in requirements.txt. Dependencies are automatically installed during msc-wis-dcpc installation.

Dependencies of note:

Installing msc-wis-dcpc

# setup virtualenv
python3 -m venv --system-site-packages msc-wis-dcpc
cd msc-wis-dcpc
source bin/activate

# for pycsw installations
# clone pycsw and install
git clone https://github.com/geopython/pycsw.git
cd pycsw
python setup.py install
pip install -r requirements-standalone.txt
cd ..

# for pygeoapi installations
# clone pygeoapi and install
git clone https://github.com/geopython/pygeoapi.git
cd pygeoapi
python setup.py install
cd ..

# clone codebase and install
git clone https://github.com/ECCC-MSC/msc-wis-dcpc.git
cd msc-wis-dcpc
python setup.py build
python setup.py install

# configure environment
cp msc-wis-dcpc.env dev.env
vi dev.env # edit paths accordingly
. dev.env
cd ..

# serve API
cd pycsw
python pycsw/wsgi_flask.py

Running

Server will be located at http://localhost:8000 with links to all supported search API endpoints

Managing metadata

# harvest a CSW's metadata
msc-wis-dcpc metadata add --type OGC:CSW --url https://example.org/csw

# harvest MSC GeoMet configuration and MCFs
msc-wis-dcpc metadata add --type MSC:GeoMet:config --config /path/to/geomet-config.yml --mcf-dir /path/to/mcfs

# harvest MSC discovery metadata
msc-wis-dcpc metadata add --type MSC:OpenData --mcf-dir /path/to/mcfs

pycsw

Use the pycsw-admin.py utility for all other metadata repository workflows

pygeoapi

Consult the pygeoapi documentation for more information on publishing metadarta via OGC API - Records

Sample Queries

See HowTo page examples at:

Development

Running Tests

TODO

Releasing

python setup.py sdist bdist_wheel --universal
twine upload dist/*

Code Conventions

Bugs and Issues

All bugs, enhancements and issues are managed on GitHub.

Contact