Database Reference
In-Depth Information
You should see the
countries
layer rendered with the three symbology
classes defined in the mapfile, as shown in the following screenshot:
Asyoucansee,thereisasmalldifferencebetweentheURLsusedinWin-
dowsandLinux.WewillrefertoLinuxfromnowon,butyoucaneasilyadapt
the URLs to Windows..
5. Now,youwillstarttestingtheWMSservice;youwilltryrunningthe
GetCap-
abilities
,
GetMap
, and
GetFeatureInfo
requests. To test the
GetCapabilities
request, type this URL in the browser:
ht-
tp://localhost/cgi-bin/mapserv?map=/var/www/data/coun-
tries.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
.
YoushouldreceivealongXMLresponse(shownasfollows)fromtheserver,
wherethemoreimportantfragmentsaretheWMSservicedefinitionsinthe
<Service>
section, the requests are enabled in the
<Capability>
sec-
tion,andthelayersexposedandtheirmaindetails(forexample,name,ab-
stract,projection,andextent)areinthe
<Layer>
sectionofeachofthelay-
ers:
<WMT_MS_Capabilities version="1.1.1">
...