Skip to content

Instantly share code, notes, and snippets.

@tomkralidis
Last active December 15, 2015 19:29
Show Gist options
  • Save tomkralidis/5311990 to your computer and use it in GitHub Desktop.
Save tomkralidis/5311990 to your computer and use it in GitHub Desktop.
pycsw Windows Installation
Install Dependencies:
- Python (2.7 series)
- http://python.org/download/
Install Package Management Tools
- download http://python-distribute.org/distribute_setup.py
- C:\python27\python.exe distribute_setup.py
Install Virtual Environment
- C:\python27\scripts\easy_install.exe virtualenv
Create virtual environment
- C:\python27\scripts\virtualenv.exe pycsw-workshop
- cd pycsw-workshop
- scripts\activate.exe
Install pycsw Dependencies
- C:\python27\scripts\easy_install.exe lxml==2.2.8
- C:\python27\scripts\easy_install.exe pyproj==1.9.2
- C:\python27\scripts\easy_install.exe Shapely==1.2.17
- C:\python27\scripts\easy_install.exe SQLAlchemy>=0.6
- C:\python27\scripts\easy_install.exe OWSLib==0.7.1
Download pycsw from http://pycsw.org/download/ and unzip into pycsw-workshop/ folder
- cd pycsw-1.4.1
- copy default-sample.cfg default.cfg
# edit default-sample.cfg
## server.home (e.g. home=/Users/foo/Desktop/pycsw-workshop/pycsw-1.4.1)
## server.url to url=http://localhost:8000/
## repository.database (e.g. database=sqlite:////Users/foo/Desktop/pycsw-workshop/pycsw-1.4.1/data/cite/records.db)
Start CSW server
- python.exe csw.wsgi
- open web browser to http://localhost:8000/?service=CSW&version=2.0.2&request=GetCapabilities
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment