<br clear="all">Hi,<br><br>I am working on my thesis and i am somehow stuck. I have a PostGIS database up and running and have included sone tables in a configuration file that i would like to be read and loaded on open layers.<br>
<br>My cinfiguration looks like this <br><br><br>[Primary_canal]<br> type=PostGIS<br> dsn=host=localhost dbname=Project user=postgres password=gabbs<br> layer=Primary_canal<br> fid=gid #defaults to ogc_fid<br>
geometry=the_geom # defaults to the_geom<br> srid=4326 #defaults to 4326<br> attribute_cols=name,barragenam #optional<br> order=name #optional<br><br>I am looking for a way to have my layers served to open layers through a method like this example from GeoServer.<br>
<br> new OpenLayers.Layer.WMS("Cities",<br> "<a href="http://demo.opengeo.org/geoserver/wms">http://demo.opengeo.org/geoserver/wms</a>", { ## I would like this line to point to my table in the featureserver.cgi file<br>
layers: "topp:tasmania_cities",<br> transparent: true,<br> format: "image/gif"<br> }, {<br> isBaseLayer: false,<br>
buffer: 0<br>Many thanks,<br><br>Gabriel.<br>