Database Reference
In-Depth Information
14. Trytonavigatethemap;ateachzoomandpanaction,GeoServerwillstream
out a new image provided by the response output to a
GetMap
request.
By clicking on the map, you can perform a
GetFeatureInfo
request and
the user interface will display the feature's attributes corresponding to the
point on the map on which you clicked. An effective way to check how the
requests are sent to GeoServer as you navigate the map is by using the
FirefoxFirebugpluginortheChrome(orChromium,ifyouareusingLinux)
DeveloperTools.Withthesetools,youwillbeabletoidentifythe
GetMap
and
GetFeatureInfo
requeststhatarebeingsentbehindthescenesfromthe
OpenLayers
viewertoGeoServer.Onesuchmapisshowninthefollowing
screenshot:
15. Now, try a WMS
GetMap
request by typing the URL,
ht-
tp://localhost:8080/geoserver/postgis_cookbook/
wms?LAYERS=postgis_cookbook%3Acounties&STYLES=&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-200.50286594033,7.6152902245522,-43.196688503029,81.457450330258&WIDTH=703&HEIGHT=330
,
in your browser.
16. Try a WMS
GetFeatureInfo
request, as well, by typing the URL
ht-
tp://localhost:8080/geoserver/postgis_cookbook/
wms?REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&BBOX=-126.094303%2C37.16812%2C-116.262667%2C41.783255&SERVICE=WMS&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=postgis_cookbook%3Acounties&FEATURE_COUNT=50&Layers=postgis_cookbook%3Acounties&WIDTH=703&HEIGHT=330&format=image%2Fpng&styles=&srs=EPSG%3A4326&version=1.1.1&x=330&y=158
.