Skip to content

OGC CITE Compliance

Tom Kralidis edited this page Jul 1, 2016 · 21 revisions

OGC CSW 2.0.2

OGC CSW 3.0.0

How to run your own CITE Tests

  • you must ensure that pycsw is running with the CITE test data. pycsw comes shipped with an SQLite database of the CSW test data in tests/suites/cite/data/records.db. In default.cfg, set repository.database to tests/suites/cite/data/records.db.
  • ensure the following settings
  • server.maxrecords is NOT enabled
  • metadata:inspire.enabled is NOT enabled or set to false
  • metadata:main:contact_email is set to an email address value (CITE CSW 3.0 test requirement). The email is not used per se by CITE, but CITE checks for the email pattern in the CSW 3.0 OpenSearch tests
  • go to http://cite.opengeospatial.org/teamengine/
  • Click "Start Testing"
  • You will be asked to login. If you do not have a CITE username/password, you must register to continue
  • Click "Create a new session"
  • Set the following:
  • Organization: OGC
  • Standard: CSW
  • Version: 2.0.2 or 3.0.0
  • Click "Start a New Test Session"
  • Enter the full GetCapabilities URL
  • CSW 2.0.2: http://host/pycsw/csw.py?service=CSW&version=2.0.2&request=GetCapabilities
  • CSW 3.0.0: http://host/pycsw/csw.py

At this point the OGC CITE tests will execute and results for the session will be returned.

Demo Server

The demo server at http://demo.pycsw.org/cite/csw?service=CSW&version=2.0.2&request=GetCapabilities is configured with the CITE CSW test data. You can use the demo server against CITE for checking against latest master in Git. The demo server is pycsw's official OGC Reference Implementation.

Access

ssh to demo.pycsw.org using your OSGeo username/password. The entire setup is in /osgeo/demo.pycsw.org/ as a Python virtualenv as per https://github.com/geopython/demo.pycsw.org where:

  • bin/, include/, lib/ : virtualenv dirs (remember to source bin/activate when working here)
  • pycsw/ : various pycsw endpoint configurations / data
  • www/ : static website
  • httpd.d/ : Apache config
  • src/ : Git clone of master which powers all the endpoints

pycsw changes / updates need to be followed by sudo /usr/sbin/apache2ctl graceful (as pycsw is deployed via mod_wsgi)

Updating pycsw

cd src/pycsw/
git pull origin master
python setup.py build
python setup.py install
sudo /usr/sbin/apache2ctl graceful