MSC WIS DCPC implementation
- Python 3
- virtualenv
Dependencies are listed in requirements.txt. Dependencies are automatically installed during msc-wis-dcpc installation.
Dependencies of note:
# 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
Server will be located at http://localhost:8000 with links to all supported search API endpoints
# 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
Use the pycsw-admin.py utility for all other metadata repository workflows
Consult the pygeoapi documentation for more information on publishing metadarta via OGC API - Records
See HowTo page examples at:
- CSW
- OGC API - Records
TODO
python setup.py sdist bdist_wheel --universal
twine upload dist/*
All bugs, enhancements and issues are managed on GitHub.