Database Reference
In-Depth Information
http://localhost/cgi-bin/mapserv?map=/var/www/
data/hot-
spots.map&SERVICE=WMS&VERSION=1.0.0&REQUEST=GetCapabilities
(in Linux)
http://localhost/cgi-bin/
mapserv.exe?map=C:\ms4w\Apache\htdocs\hotspots.map&SERVICE=WMS&VERSION=1.0.0&REQUEST=GetCapabilities
(in Windows)
In the following steps, we will be referring to Linux. If you are using Windows,
you just need to replace http://localhost/cgi-bin/mapserv?map=/var/
www/data/hotspots.map with http://localhost/cgi-bin/
mapserv.exe?map=C:\ms4w\Apache\htdocs\hotspots.map in every re-
quest.
1. Now, query the WMS with a GetMap request. Type the following URL in
thebrowser.Ifeverythingiscorrect,MapServershouldreturnanimagewith
somehotspotsasaresponse.TheURLis http://localhost/cgi-bin/
mapserv?map=/var/www/data/hot-
spots.map&&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-25,-100,35,-35&CRS=EPSG:4326&WIDTH=1000&HEIGHT=800&LAYERS=hotspots&STYLES=&FORMAT=image/
png .
2. Until now, you have implemented a simple WMS service. Now, to make
the TIME parameter available for WMS Time requests, add the
wms_timeextent , wms_timeitem and wms_timedefault variables in
the LAYER METADATA section, as follows:
METADATA
'wms_title' 'World
hotspots time series'
'gml_include_items' 'all'
'wms_timeextent' '2000-01-01/
2020-12-31' # time extent for which the
service will give a response
'wms_timeitem' 'acq_date' # layer field
to use to filter on the TIME parameter
'wms_timedefault' '2013-05-30' #
default parameter if not added to the
Search WWH ::




Custom Search