[Featureserver] getting started with featureserver..

Simon Hope SimonH at geobiz.co.nz
Mon Oct 8 20:10:12 EDT 2007


Hi,

 

I am looking to use featureserver with PostGIS, but I'm running into
some difficulty and was wondering whether anybody could assist? I should
warn you I am fresh as a daisy to this stuff so please bare with me...

 

1. I've installed PostGIS on a windows server (server1) and loaded data
(all seems to be running ok)

2. I've installed FeatureServer 1.08 on another windows server (server2)
running under apache. I've updated the apache conf file to enable cgi
execution.

3. I've set up a psqlodbc driver to test the connection to PostGIS from
server1 to server 2 - all fine.

4. I've set up python (2.5) on server2

5. I've amended the featureserver.cgi to point to the python install.

6. I've not installed simplejson as the download of FeatureServer 1.08
included it.

7. I've installed FWTools for OGR

8. I understand FWTools comes with the python bindings....? Is this
where I'm messing up?

 

I looked at the datasources.txt in the featureserver download and found
that the PostGIS support requires psycopg. I've downloaded this and
looked at the install file which mentions building  psycopg however I'm
a bit confused - should I be building and installing  psycopg onto my
PostGIS server? (i.e. server1).

 

While I am pondering what on earth I should do with psycopg. I decided
to test featureserver with a shapefile datasource so I amended the
featureserver.cfg file to include

 

[scribble]

type=OGR

dsn=/data/Courts_WGS84.shp

layer=Courts_WGS84.shp

 

and tested using this URL:

 

http://localhost:8080/featureserver/featureserver.cgi/scribble/all.atm

 

Now I'm expecting to get back GeoRSS representation of my features
right? (Could well be wrong?) But all that happens is that the browser
hangs (by hanging i mean it just seems to be processing. It doesn't
return an error)

 

So I guess my questions/problems are:

 

1. Is FWTools enough in terms of the OGR requirements (including the
python bindings?

2. For PostGIS support I need psycopg - should I be building this on my
PostGIS server or the featureserver box? Or both?

3. With regard to shapefile data sources any ideas where I may have
messed up

 

I appreciate any help any one can provide.

 

Cheers

 

Si

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/featureserver/attachments/20071009/08d5ad35/attachment.html


More information about the Featureserver mailing list