[Qgis-user] Python Library for OWS Services now being used in a CSW plugin....(in development)

Sampson, David David.Sampson at NRCan-RNCan.gc.ca
Thu Jun 4 07:48:46 PDT 2009


Hey Folks,

My CSW plugin is coming along nicely, and now is fully integrated with the newly added csw.py library from OWSLIB (a modules stacked full of fuctions for working with web services).... This library makes OWS services so easy that I won't be surprised if someone beats me to releasing a CSW plugin.... (smile)

The csw contribution was submitted by Tom Kralidis and can be read about in a recent blog post here: 
http://www.kralidis.ca/blog/2009/06/03/new-stuff-in-owslib/

OWSLIB can be found here:
http://trac.gispython.org/lab/wiki/OwsLib

>From the site:

OWSLib Makes WxS Suck Less ΒΆ <http://trac.gispython.org/lab/wiki/OwsLib#OWSLibMakesWxSSuckLess> 

Package for programming with OGC(TM) web services. 

This project was buried down inside PCL, but has been brought out as a separate project in r481 <http://trac.gispython.org/lab/changeset/481> . It does not depend on PCL, only on ElementTree <http://effbot.org/zone/element-index.htm>  or lxml <http://codespeak.net/lxml> . Your choice. 


Perhaps finding a way to load owslib directory into qgis site packgeas or the osgeo4w installer might make things nicer. Using this library could also decrease duplicate code from various plugins and other tools in qgis.

With this library you let the library do the heavy lifting and construction so the plugin developer can focus on interface and not heavy parsing.  More exciting things to come in the library that will make parsing the response even easier...

ElementTree and lxml are dependencies that take a little munging to get to work within osgeo4w because the windows version of the python xml module is limited... linux users should be clear for takeoff.


Cheers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20090604/b4dab751/attachment.html>


More information about the Qgis-user mailing list