Skip to content

OGC CITE Compliance

Tom Kralidis edited this page Jun 25, 2015 · 21 revisions

OGC CSW 2.0.2

To run your own CITE Test

  • 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 that server.maxrecords is NOT enabled
  • 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
  • Test Suite Rev: <choose latest revision>
  • Click "Start a New Test Session"
  • Enter the full GetCapabiilties URL (i.e. http://host/pycsw/csw.py?service=CSW&version=2.0.2&request=GetCapabilities)

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