[Featureserver] Feature server and mod_python

Thomas Gratier osgeo.mailinglist at gmail.com
Thu Jul 8 17:05:44 EDT 2010


Hello,

First, mod python is dead so be cautious about using it in the future
http://blog.dscpl.com.au/2010/06/modpython-project-is-now-officially.html

Second, look official documentation :
http://featureserver.org/doc/Readme.html#running-under-mod-python
And the

"To run OpenLayers with FeatureServer, the URL passed to the
OpenLayers.Layer.WFS constructor must point to the FeatureServer script,
i.e. featureserver.cgi or featureserver.py. As an example see the *index.html
file included in the FeatureServer distribution*.

Note: index.html assumes FeatureServer is set up under CGI (see above).* If
you set up FeatureServer under mod_python you’d need to slighly modify
index.html: the URL passed to the OpenLayers.Layer.WFS constructor must
point to the mod_python script as opposed to the CGI script, so
replace* *featureserver.cgi
with featureserver.py*. Similarly, you would need to edit this URL if you
were to use FeatureServer with the standalone HTTP Server or FastCGI."
So your example handler file is in the package if you replace featureserver.cgi
with featureserver.py in the file.

Third, you can get informations too on
http://translate.google.fr/translate?hl=fr&sl=auto&tl=en&u=http%3A%2F%2Fgeotribu.net%2Fnode%2F44(a
small mistake in the title, featureserver is not wfs-t compliant but
"only" restful)

Regards

ThomasG
GIS specialist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/featureserver/attachments/20100708/3ab2c094/attachment.html


More information about the Featureserver mailing list