Web Map Services (WMS) by simple URL request:
- WMS GetCapabilities (in some browsers, the resulting XML file has to be saved locally, then opened and viewed):
- /cgi-bin/mapserv?map=/data/web_folders/kartoweb/mapserver/config.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
WMS GetMap, using MapServer CLASSes for styling, PNG as output:
- /cgi-bin/mapserv?map=/data/web_folders/kartoweb/mapserver/config.map&SERVICE=WMS&VERSION=1.3.0&REQUEST
=GetMap&LAYERS=forest,railroad,airports&CRS=EPSG:4326&BBOX=5.61,97.35,20.47,105.64&WIDTH=400&HEIGHT=600&FORMAT=image/png
WMS GetMap using SLD (see SLD file) for styling
- /cgi-bin/mapserv?map=/data/web_folders/kartoweb/mapserver/configSLD.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=forest,railroad,airports&CRS=EPSG:4326&BBOX=5.61,97.35,20.47,105.64&WIDTH=400&HEIGHT=600&FORMAT=image/png&SLD=https://gip.itc.utwente.nl/kartoweb/mapserver/sld/sld.xml
- Web Feature Services (WFS) by simple URL request:
- WFS GetCapabilities:
- /cgi-bin/mapserv?map=/data/web_folders/kartoweb/mapserver/wfs_config.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetCapabilities
WFS DescribeFeatureType (more info about the airportsWFS data):
- /cgi-bin/mapserv?map=/data/web_folders/kartoweb/mapserver/wfs_config.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=airportsWFS
- WFS GetFeature (airports, returned as GML2):
- /cgi-bin/mapserv?map=/data/web_folders/kartoweb/mapserver/wfs_config.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=airportsWFS&MAXFEATURES=25&OUTPUTFORMAT=GML2
- Web Map Services (WMS) in an AJAX client (using the OpenLayers Javascript library):
- WMS GetMap request: simple zooming, panning and layers on/off using Thailand LatLon data
- /mapserver/openLayers.html
- WMS GetMap & GetFeatureInfo requests: map viewing + retrieving attributes from underlying data
- /mapserver/openLayersQuery.html
last change:
November 2021
B. Köbben, International Institute
for Geo-Information Science and Earth Observation (ITC)