Catching up, and just didn't want to leave this hanging...
The 'layer name' property should be the same as the name of the
featureType, ie the name of the table in your datastore. So if the
tiger data that you loaded had a table named sf_roads, then the admin
interface should show that as one of the available featureTypes to
create, and once created it will be referred to as sf_roads. We should
make this more explicit in the docs, featureType and layer refer to the
same thing, the former is the WFS way, the latter is the WMS way. If
the featureType was created in the default namespace then you just need
to request the name, if not then you need to prefix it with the proper
namespace, such as hook:sf_roads, if you defined your postgis datastore
in a namespace that is prefixed with hook. If you check the wms
capabilities document
(http://localhost:8080/geoserver/wms?request=GetCapabilities), then it
will also show you the names of available layers. If the sf_roads was
successfully added then it will show up there. If not then you may
need to 'apply' or 'save' the changes that you made.
As for actually visualizing the layer, the other tricky part is getting
the bounding box correct (the bbox key value pair param). This is most
easily accomplished by first using a GetFeature request on the wfs side
of things
(http://localhost:8080/geoserver/wfs?request=GetFeature&typename=hook:sf_roads).
This will return an xml document with the features (be careful if you
have a very big dataset, I've definitely had it trash my browser as it
attempted to dispaly 15 megs of data, the best way around this is to
include a filter). The xml document will be a featureCollection, and
one of its first elements should be a bounding box. This bbox should
be used for the bbox parameter (though with all commas instead of the
space).
Hope this helps,
Chris
----- Original Message -----
From: "Anselm Hook" <anselm@anonymised.com>
To: <geoserver-devel@lists.sourceforge.net>
Sent: Friday, April 30, 2004 5:44 AM
Subject: [Geoserver-devel] novice question
Hi, trying to figure out how to view some tiger data I've loaded into
postgis and have hooked up to geoserver.Just installed geoserver 1.2.0-rc1, tested that bc_roads can be
rendered
out via wms, added the postgis source via the admin interface, added
the
featuretype via the admin interface...
... now i don't quite see how to get to the next step - visualizing my
own
data via wms...
I notice that the demo wms queries pass a 'layer name' property - in
this
case 'bc_roads' - and I guess that I might need to define a layer name
for
my own data source? Perhaps I need to make some kind of feature type
or
something in one of the xml files?
- a
----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/