[Featureserver] First steps

Lehtonen, Mika mika at digikartta.net
Thu Nov 20 11:21:55 EST 2008


Hi,

I've been trying to use FeatureServer for an hour now and might have 
something else to do. So I'm taking a short cut, if someone can help me.

I have a web server with CGI, so I uploaded the FeatureServer code in 
there. I added the following into cfg-file:

[shape]
type=OGR
dsn=/var/www/cgi-bin/featureserver-1.12/name-of-my-shape.shp
layer=myshape

But I am getting this, when trying to call the featureserver.cgi

An error occurred: No module named ogr
  File "/var/www/cgi-bin/featureserver-1.12/FeatureServer/Server.py", line 264, in cgiHandler
    service = Server.load(*cfgfiles)
  File "/var/www/cgi-bin/featureserver-1.12/FeatureServer/Server.py", line 68, in _load
    datasources[section] = cls.loadFromSection(
  File "/var/www/cgi-bin/featureserver-1.12/FeatureServer/Server.py", line 43, in _loadFromSection
    module = __import__("%s.%s" % (module_type, type), globals(), locals(), type)
  File "/var/www/cgi-bin/featureserver-1.12/FeatureServer/DataSource/OGR.py", line 14, in ?
    import ogr

If I remove that [shape], I get this:

{"Layers": []}

So, what's wrong?

- mika -







More information about the Featureserver mailing list