Database Reference
In-Depth Information
7. Another typical WMS request is
GetFeatureInfo
, used by the clients to
querythemaplayeratthegivencoordinates(points).TypethefollowingURL
andyoushouldseethefieldvaluesforagivenfeatureastheoutput(theout-
put is built using the
template.html
file):
http://localhost/cgi-bin/mapserv?map=/var/www/data/coun-
tries.map&layer=countries&REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.1.1&LAYERS=countries&QUERY_LAYERS=countries&SRS=EPSG:4326&BBOX=-122.545074509804,37.6736653056517,-122.35457254902,37.8428758708189&X=652&Y=368&WIDTH=1020&HEIGHT=906&INFO_FORMAT=text/
html
8. NowyouwilluseQGIStousetheWMSservice.LaunchQGIS,clickonthe
Add WMS layer
button(alternatively,navigateto
Layer
|
Add WMS Layer
or
usetheQGISbrowser),andcreateanewWMSconnection,asshowninthe
following screenshot. Type something like
MapServer on localhost
in
the
Name
fieldand
http://localhost/cgi-bin/mapserv?map=/var/
www/data/coun-
tries.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
in the
URL
field, and click on the
OK
button: