[Geoserver-users] Querying shapefile data served by Geoserver?

Hi list,

Sorry for this rather newbie question (I haven't read the whole doc yet, I'm asking because I need a quick answer for a meeting to "sell the geoserver solution" to my colleagues :-). Using the tutorial, it was quite easy to serve WMS through Geoserver and load it into an OpenLayers html page. (even building a SLD with uDig was a charm)

Now the question; how can data served by Geoserver be queryable? In short, we must be able to show shapefile attributes on the served map and some labels. Can it be done using WMS/OpenLayers? Must I switch to something else such as WFS/OpenLayers?

I know OpenLayers markers would allow me to "show attributes" of the marker, but if my data is in shapefiles served by Geoserver, how can I do it?

Thanks!

Alex
--
Alexandre Leroux, M.Sc., Ing.
Environnement Canada / Environment Canada
Centre météorologique canadien / Canadian Meteorological Centre
Division de la réponse aux urgences environnementales /
Environmental Emergency Response Division
alexandre.leroux@anonymised.com

Hi Alexandre,

Definteley possible with the wms GetFeatureInfo operation. And from what
I understand Andrea just added this feature to the GeoServer map preview
page so you will see this in the next release (1.5.2).

If you are eager to try out the functionality right away i suggest you
try our latest build snapshot from:

http://geo.openplans.org/nightly/1.5.x/

-Justin

Alexandre Leroux wrote:

Hi list,

Sorry for this rather newbie question (I haven't read the whole doc yet,
I'm asking because I need a quick answer for a meeting to "sell the
geoserver solution" to my colleagues :-). Using the tutorial, it was
quite easy to serve WMS through Geoserver and load it into an OpenLayers
html page. (even building a SLD with uDig was a charm)

Now the question; how can data served by Geoserver be queryable? In
short, we must be able to show shapefile attributes on the served map
and some labels. Can it be done using WMS/OpenLayers? Must I switch to
something else such as WFS/OpenLayers?

I know OpenLayers markers would allow me to "show attributes" of the
marker, but if my data is in shapefiles served by Geoserver, how can I
do it?

Thanks!

Alex

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Thanks Justin for the quick answer. This was exactly what I needed.

Meanwhile, I found how to do it directly with OpenLayers, see this example:
http://openlayers.org/dev/examples/getfeatureinfo.html

Have a nice weekend!

Alex

Justin Deoliveira wrote:

Hi Alexandre,

Definteley possible with the wms GetFeatureInfo operation. And from what
I understand Andrea just added this feature to the GeoServer map preview
page so you will see this in the next release (1.5.2).

If you are eager to try out the functionality right away i suggest you
try our latest build snapshot from:

http://geo.openplans.org/nightly/1.5.x/

-Justin

Alexandre Leroux wrote:

Hi list,

Sorry for this rather newbie question (I haven't read the whole doc yet, I'm asking because I need a quick answer for a meeting to "sell the geoserver solution" to my colleagues :-). Using the tutorial, it was quite easy to serve WMS through Geoserver and load it into an OpenLayers html page. (even building a SLD with uDig was a charm)

Now the question; how can data served by Geoserver be queryable? In short, we must be able to show shapefile attributes on the served map and some labels. Can it be done using WMS/OpenLayers? Must I switch to something else such as WFS/OpenLayers?

I know OpenLayers markers would allow me to "show attributes" of the marker, but if my data is in shapefiles served by Geoserver, how can I do it?

Thanks!

Alex

--
Alexandre Leroux, M.Sc., Ing.
Environnement Canada / Environment Canada
Centre météorologique canadien / Canadian Meteorological Centre
Division de la réponse aux urgences environnementales /
Environmental Emergency Response Division
alexandre.leroux@anonymised.com