A GetCapabilities call to a WMS service returns two types of information: service-level metadata that describes the WMS service, and a list of layers and styles that a client can request.
Service-level metadata is the information that describes the WMS server. This information includes the URL endpoint that clients use to access the server, a description of what the service provides, who owns the service, search keywords, and access restrictions or limitations.
The layers and styles are the items that a client can request in a GetMap call. A GetCapabilities request to the server returns the information in XML format.
Request Format
https://api.cloud.precisely.com/v1/Spatial/WMS?VERSION={version}&SERVICE=WMS&REQUEST=GetCapabilitiesInput Parameters
The request parameters are always sent as an HTTP query string.
| Parameter | Type | Required | Description |
|---|---|---|---|
| VERSION=version | String | No | Request version. Currently versions 1.1.1 and 1.3.0 are supported. |
| SERVICE=WMS | String | Yes | Service type. The SERVICE attribute is always set to WMS. |
| REQUEST=GetCapabilities | String | Yes | Request name. |
Example
Request
https://api.cloud.precisely.com/v1/Spatial/WMS?VERSION=1.3.0&SERVICE=WMS&REQUEST=GetCapabilitiesResponse
<?xml version="1.0" encoding="UTF-8"?>
<WMS_Capabilities xmlns="http://www.opengis.net/wms" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.3.0" xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd">
<Service>
<Name>WMS</Name>
<Title>Precisely WMS Service</Title>
<Abstract>Access to Precisely enrich data via a web API that conforms to the OGC WMS specification</Abstract>
<KeywordList>
<Keyword>map</Keyword>
<Keyword>geographic</Keyword>
<Keyword>wms</Keyword>
</KeywordList>
<OnlineResource xlink:type="simple" xlink:href="https://api.cloud.precisely.com/v1/spatial/wms?"/>
</Service>
<Capability>
<Request>
<GetCapabilities>
<Format>application/vnd.ogc.wms_xml</Format>
<Format>text/xml</Format>
<DCPType>
<HTTP>
<Get>
<OnlineResource xlink:type="simple" xlink:href="https://api.cloud.precisely.com/v1/spatial/wms?"/>
</Get>
</HTTP>
</DCPType>
</GetCapabilities>
<GetMap>
<Format>image/png</Format>
<DCPType>
<HTTP>
<Get>
<OnlineResource xlink:type="simple" xlink:href="https://api.cloud.precisely.com/v1/spatial/wms?"/>
</Get>
</HTTP>
</DCPType>
</GetMap>
<GetFeatureInfo>
<Format>text/xml</Format>
<Format>application/vnd.ogc.gml</Format>
<Format>application/json</Format>
<DCPType>
<HTTP>
<Get>
<OnlineResource xlink:type="simple" xlink:href="https://api.cloud.precisely.com/v1/spatial/wms?"/>
</Get>
</HTTP>
</DCPType>
</GetFeatureInfo>
</Request>
<Exception>
<Format>INIMAGE</Format>
<Format>BLANK</Format>
<Format>XML</Format>
</Exception>
<Layer queryable="1" opaque="0" noSubsets="0" fixedWidth="0" fixedHeight="0">
<Name/>
<Title>Risk Data</Title>
<CRS>CRS:84</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>-180.0</westBoundLongitude>
<eastBoundLongitude>180.0</eastBoundLongitude>
<southBoundLatitude>-90.0</southBoundLatitude>
<northBoundLatitude>90.0</northBoundLatitude>
</EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0"/>
<Layer queryable="1" opaque="0" noSubsets="0" fixedWidth="0" fixedHeight="0">
<Name>wfr_usa_fireriskpro_layer</Name>
<Title>wfr_usa_fireriskpro_layer</Title>
<CRS>CRS:84</CRS>
<CRS>EPSG:4326</CRS>
<CRS>EPSG:3857</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>-179.14748</westBoundLongitude>
<eastBoundLongitude>-66.94981</eastBoundLongitude>
<southBoundLatitude>18.91086</southBoundLatitude>
<northBoundLatitude>71.39011</northBoundLatitude>
</EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="-179.14748" miny="18.91086" maxx="-66.94981" maxy="71.39011"/>
<BoundingBox CRS="EPSG:4326" minx="18.91086" miny="-179.14748" maxx="71.39011" maxy="-66.94981"/>
<BoundingBox CRS="EPSG:3857" minx="-1.994260625049816E7" miny="2144443.930335349" maxx="-7452818.757906415" maxy="1.1536997545245435E7"/>
</Layer>
<Layer queryable="1" opaque="0" noSubsets="0" fixedWidth="0" fixedHeight="0">
<Name>fireriskpro_layer</Name>
<Title>fireriskpro_layer</Title>
<CRS>CRS:84</CRS>
<CRS>EPSG:4326</CRS>
<CRS>EPSG:3857</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>-179.14748</westBoundLongitude>
<eastBoundLongitude>-66.94981</eastBoundLongitude>
<southBoundLatitude>18.91086</southBoundLatitude>
<northBoundLatitude>71.39011</northBoundLatitude>
</EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="-179.14748" miny="18.91086" maxx="-66.94981" maxy="71.39011"/>
<BoundingBox CRS="EPSG:4326" minx="18.91086" miny="-179.14748" maxx="71.39011" maxy="-66.94981"/>
<BoundingBox CRS="EPSG:3857" minx="-1.994260625049816E7" miny="2144443.930335349" maxx="-7452818.757906415" maxy="1.1536997545245435E7"/>
</Layer>
</Layer>
</Capability>
</WMS_Capabilities>