1. Introduction
This document details how you make WMS requests to the AVCS Online service. It should be used to integrate AVCS Online into your web applications.
2. WMS Requests
Web Map Service (WMS) requests are used to generate chart output. The chart display details can be controlled by specifying various parameters in the WMS request. More details on the WMS requests and parameters are provided in this document, along with example request URLs.
2.1 Obtain Map Token using GetCapabilities
Your first request to the AVCS Online service must be a GetCapabilities request, which includes your UKHO B2B authentication JSON web token. The GetCapabilities request returns a standard OGC WMS response which describes the supported operations and parameters of the service. This includes your Map Token allowing web applications to use the AVCS Online service.
The AVCS Online test environment is known as "pre-production" and the URL is: https://admiralty.azure-api.net/avcso-dev/AVCS/WMS/.
Authentication token generated from UKHO REST B2B service
Indicates the service requested is WMS
Method to retrieve the metadata about describing the AVCS Online service, including supported operations and parameters, and a list of the available layers.
The Fleet Manager Licence ID for the licence being called
Unique user reference specified by the distributor
https://admiralty.azure-api.net/avcso-dev/AVCS/WMS/?service=wms&version=1.3.0&request=GetCapabilities&token=<<Token>>&licenseId=73706&userRef=123412
Note: all requests must also include the following in the header of the request:
Ocp-Apim-Subscription-Key=<<subscription key>>
The GetCapabilities request will allow the user to access the system for a duration of 30 minutes. After this time the token provided as part of the initial request will expire. To renew the Map Token, please see section Renew Map Token.
2.2 Renew Map Token using GenerateToken
Once your system has authenticated and completed a GetCapabilities request, all subsequent requests are made directly to the map servers. The Map Token generated is valid for 30 minutes.
To renew the Map Token without having to exit your application and then re-authenticate, web applications can make a request to the GenerateToken end point at: https://admiralty.azure-api.net/avcso-dev/tokens/generateToken
This must contain the following parameters:
The Fleet Manager Licence ID for the licence being called
Unique user reference specified by the distributor
Authentication token generated from UKHO REST B2B service
This will return a Map Token that should be used for all subsequent map requests to the map servers, as detailed in the following sections. Please note that this should not be confused with the authentication token generated by the UKHO REST B2B service.
Note: all requests must include the following in the header of the request:
Ocp-Apim-Subscription-Key=<<subscription key>>
Example request:
https://admiralty.azure-api.net/avcso-dev/tokens/generateToken?LicenseID=73706&UserRef=123456&Token=<<Token>>
Example Successful Response:
{
"token": "cui_FGKST19-IJ1W_M-lq7UBZSP_hQjt21THZ4FsQDJOc.",
"expiration": "2019-02-06T14:32:07.088Z"
}
Example error response:
{
"correlationId": "05937d60-3e14-4980-bd26-29c70e79ac73",
"errors": [
{
"source": "generateToken",
"description": "Forbidden"
}
]
}
2.3 Generate Chart Output
WMS requests are used to generate chart output according to the parameters specified in the request. The following sections outline the standard WMS parameters and additional display parameters used in the AVCS Online solution.
2.3.1 Using standard WMS GetMap Parameters
The following are standard OGC GetMap request parameters that can be used for all GetMap requests. Using these parameters alone will display a chart based on the default IHO S-52 standards within the AVCS Online solution.
The standard parameters for the WMS GetMap request are:
Map Server Token will be auto-populated from the <GenerateToken> request detailed in section 2.2
Indicates the service requested is WMS
Indicates the request is a GetMap request
The format of the output map image
Sets background colour to transparent
21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0
Optional List of Layers to display, if this is not specified then all layers will be visible. See Layer list below for Layer descriptions.
-4199759.866962299,4999896.148476938, 3025679.5427769204,9055339.121174172
The bounding box coordinates
UserId should be specified according to entitlement (in practical terms this is the Fleet Manager Licence ID)
Unique user reference specified by the distributor
2.3.1.1 Optimal tile size
Some APIs are unable to dynamically calculate an optimum tile size as map scale and level changes within the view. In these instances, it is advised that a tile size of "1100" is used. This provides an optimum combination of response time, for the client, and request count delivered to the WMS service.
In addition to the standard parameters, the following is required. Note that using tile size does not require, Width, Height or BBOX.
Width and height of tiles in the grid.
Example request:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?token=<<token>>&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&tileSize=1100&CRS=EPSG:3857&UserId=<<UserId>>&userRef=ABC123456
2.3.1.2 LAYERS Parameter
The LAYERS parameter is a standard WMS request parameter that allows clients to control the visibility and ordering of the layers in the resulting chart using a comma-separated list.
For AVCS Online, the WMS layers are equivalent to the ViewOverGroups that are configured for the solution, so use of the WMS LAYERS parameter allows the client to toggle on/off viewing groups according to the S-52 standard.
If the LAYERS parameter is not provided, the default behaviour will be applied, which is to display all layers in the default order. The client can override the default settings by specifying an alternative list of layer IDs in the LAYERS parameter.
It should be noted that the layers specified in the LAYERS parameter should be in the reverse order that they will be drawn on the chart (see below for examples).
Values for the LAYERS parameter are as follows:
Display only Display Base group
Coastline, Ships Safety Contour, Isolated dangers consisting of depths and structures within ships defined safety contour/safe water
Buoys, beacons, structures, aids to navigation
Display only Buoys, beacons, structures, aids to navigation
Display only Boundaries and limits
Swept Areas, Fairway, Anchorage Areas, Dumping Grounds, Cargo Transhipment Areas.
Prohibited and restricted areas
Display only Prohibited and restricted areas
Restricted Areas, Cautionary Areas, Military Practice Areas, Offshore Production Areas, Sea-plane landing Areas and Submarine transit Areas
Display only Chart scale boundaries
Overscale and Under-scale pattern
Display only Cautionary notes
Ships' routeing systems and ferry routes
Display only Ships' routeing systems and ferry routes
Display only Archipelagic sea lanes
Display only Standard Miscellaneous
Display only Spot soundings
Submarine cables and pipelines
Display only Submarine cables and pipelines
Display only All isolated dangers
Display only Magnetic variation
Display only Depth contours
Display only Low accuracy symbol
Display only Shallow Water Pattern
Display only Other Miscellaneous
Admiralty Information Overlay
Display only Admiralty Information Overlay
Display only Data Quality Marks
Example - Display all layers/viewing groups:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?token=<<token>>&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&LAYERS=21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=-178955.85052648446,6562022.126722074,-169401.22199085026,6571576.755257708&UserId=<<UserId>>&userRef=ABC123456
Example - Display Seabed layer/viewing group only:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?token=<<token>>&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&LAYERS=16&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=-178955.85052648446,6562022.126722074,-169401.22199085026,6571576.755257708&UserId=<<UserId>>&userRef=ABC123456
Example - Display Base, Spot soundings and Depth contours:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?token=<<token>>&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&LAYERS=15,11,0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=-178955.85052648446,6562022.126722074,-169401.22199085026,6571576.755257708&UserId=<<UserId>>&userRef=ABC123456
2.3.2 Using standard WMS GetFeatureInfo Parameters
The following are standard WMS GetFeatureInfo request parameters that can be used for all GetFeatureInfo requests. WMS GetFeatureInfo requests can be used to return attribute information for features at a specified point on the chart image.
The standard parameters for the WMS GetFeatureInfo request are:
Map Server Token will be auto-populated from the GenerateToken request detailed in section 2.2
Indicates the service requested is WMS
Indicates the request is a GetFeatureInfo request
The format of the map image
Sets background colour to transparent
-4199759.866962299,4999896.148476938, 3025679.5427769204,9055339.121174172
The bounding box coordinates of the chart/map
The format of the GetFeatureInfo response. Can be text/html, text/xml or application/json (JSON requires additional parameter, see note below)
22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0
Optional list of Layers to query for info. Note that this is not honoured in AVCS as information from all features is required to be returned.
The x position of the query point on the chart/map image in pixels from the left (0 = left) of the image.
The y position of the query point on the chart/map image in pixels from the top (0 = top) of the image.
UserId should be specified according to entitlement (in practical terms this is the Fleet Manager Licence ID)
Unique user reference specified by the distributor
JSON Response Implementation: If a JSON response is required, an additional parameter, as well as the info_format
parameter, is required: &f=pjson
Note: the GetFeatureInfo request is based on a specified chart image, therefore the WIDTH, HEIGHT, BBOX, CRS and LAYERS parameters are used to determine the query point location that is specified in pixel coordinates from the top left of the image.
Example - Query all layers:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?SERVICE=WMS&REQUEST=GetFeatureInfo&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=-106653.58774060296,6561850.143408402,-105459.25917374791,6563044.471975257&info_format=text/html&LAYERS=20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0&query_layers=22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0&i=513&j=236&Userid=<<UserId>>&token=<<token>>
Note: the Notes REST endpoint must be used to access files (text/images) that are associated with features returned in the GetFeatureInfo response.
2.3.3 Using AVCS Online specific WMS Parameters
This section will break down and outline the different WMS parameters.
2.3.3.1 ForceCharts WMS Parameter
The forceCharts parameter is a WMS request parameter specific to AVCS Online that allows clients to control the precedence of charts used for display by listing the specific charts in order.
If the forceCharts parameter is not provided, the default ISDT draw behaviour will be applied, which means that the mostly recently published or updated chart will be displayed. The client can override the default settings by specifying an alternative list of charts in the forceCharts parameter.
Example values for the forceCharts parameter are as follows:
forceCharts=GB5X01NW,GB5X01NE,GB4X0000
Precedence given to the charts listed in order specified.
Example - Specify precedence of charts:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=-65245.291359813185,3934255.9290017774,2380739.6137651764,5829894.230473644&Display_params={"ECDISParameters":{"version":"10.6.1P3","DynamicParameters":{"Parameter":[{"name":"DisplayFrames","value":4},{"name":"DisplayFrameText","value":3}]}}}&UserId=<<UserId>>&userRef=ABC123456&forceCharts=GR1OVER1&token=<<token>>
Note: the forceCharts parameter can be applied to both WMS GetMap and GetFeatureInfo requests.
2.3.3.2 Display_params WMS Parameter
The Display_params parameter is a WMS request parameter specific to AVCS Online that allows clients to control the chart output. The Display_params parameter uses JSON to define additional AVCS Online display parameters, which are listed in the following sections.
A full listing of display parameters, in JSON format, is provided in section 2.3.4.
2.3.3.3 DisplayCategory Display Parameter
The DisplayCategory parameter is specified as part of the additional Display_params parameters and allows the client to retrieve a chart according to specific display categories.
If the DisplayCategory parameter is not provided, then the default display of all categories will be applied. The client can override the default settings and apply their own to create a client-specific chart.
The display categories are set in the IHO S-57 lookup tables and allow the client to turn on/off groups of features based on those settings.
The values for the DisplayCategory parameter are as follows:
Example Display_Params JSON
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "Parameter":[{ "name":"DisplayCategory", "value":"1" }] } } }
Use DisplayBase category as per the S-52 standard
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "Parameter":[{ "name":"DisplayCategory", "value":"2" }] } } }
Use Standard category as per the S-52 standard
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "Parameter":[{ "name":"DisplayCategory", "value":"4" }] } } }
Use Other category as per the S-52 standard
Note: DisplayCategory values can also be combined by specifying values as a comma-delimited list.
Example - DisplayBase:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?token=<<token>>&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=110217.37076169756,6505991.396331931,186654.3990467708,6582428.424617005&UserId=<<UserId>>&Display_params={"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DisplayCategory","value":"1"}]}}}&userRef=ABC123456
Example - Standard:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?token=<<token>>&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=110217.37076169756,6505991.396331931,186654.3990467708,6582428.424617005&UserId=<<UserId>>&Display_params={"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DisplayCategory","value":"2"}]}}}&userRef=ABC123456
Example - Other:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?token=<<token>>&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=110217.37076169756,6505991.396331931,186654.3990467708,6582428.424617005&UserId=<<UserId>>&Display_params={"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DisplayCategory","value":"4"}]}}}&userRef=ABC123456
Example - Combined:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?token=<<token>>&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=110217.37076169756,6505991.396331931,186654.3990467708,6582428.424617005&UserId=<<UserId>>&Display_params={"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DisplayCategory","value":"1,2"}]}}}&userRef=ABC123456
2.3.3.4 SafetyContour Display Parameter
The SafetyContour parameter allows the client to return a chart according to the depth of the safety contour.
If the SafetyContour parameter is not provided, the default 1-metre safety contour setting will be applied. The client can override the default settings and apply their own to create a client-specific chart.
Example values for the SafetyContour parameter are as follows:
Example Display_Params JSON
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "Parameter":[{ "name":"SafetyContour", "value":"0" }] } } }
Use a SafetyContour value of 0 metres
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "Parameter":[{ "name":"SafetyContour", "value":"10" }] } } }
Use a SafetyContour value of 10 metres
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "Parameter":[{ "name":"SafetyContour", "value":"30" }] } } }
Use a SafetyContour value of 30 metres
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "Parameter":[{ "name":"SafetyContour", "value":"40" }] } } }
Use a SafetyContour value of 40 metres
Example - SafetyContour = 0 metres:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=-173048.7014349383,6567074.136560182,-162930.34981570172,6576924.95858042&Display_params={"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"LabelContours","value":2},{"name":"LabelSafetyContours","value":2},{"name":"SafetyContour","value":0}]}}}&UserId=<<UserId>>&userRef=ABC123456&token=<<token>>
Example - SafetyContour = 10 metres:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=-173048.7014349383,6567074.136560182,-162930.34981570172,6576924.95858042&Display_params={"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"LabelContours","value":2},{"name":"LabelSafetyContours","value":2},{"name":"SafetyContour","value":10}]}}}&UserId=<<UserId>>&userRef=ABC123456&token=<<token>>
Example - SafetyContour = 30 metres:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=-173048.7014349383,6567074.136560182,-162930.34981570172,6576924.95858042&Display_params={"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"LabelContours","value":2},{"name":"LabelSafetyContours","value":2},{"name":"SafetyContour","value":30}]}}}&UserId=<<UserId>>&userRef=ABC123456&token=<<token>>
Example - SafetyContour = 40 metres:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=-173048.7014349383,6567074.136560182,-162930.34981570172,6576924.95858042&Display_params={"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"LabelContours","value":2},{"name":"LabelSafetyContours","value":2},{"name":"SafetyContour","value":40}]}}}&UserId=<<UserId>>&userRef=ABC123456&token=<<token>>
2.3.3.5 DisplayAIOFeatures Display Parameter
The DisplayAIOFeatures parameter allows the client to modify the ADMIRALTY Information Overlay display settings.
If the DisplayAIOFeatures parameter is not provided, the default setting will be applied which will display all features. The client can override the default settings and apply their own to create a client-specific chart.
Example values for the DisplayAIOFeatures parameter are as follows:
Example Display_Params JSON
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "Parameter":[{ "name":"DisplayAIOFeatures", "value":"1,5,6,7" }] } } }
Display Temporary notice features
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "Parameter":[{ "name":"DisplayAIOFeatures", "value":"2,5,6,7" }] } } }
Display Preliminary notice features
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "Parameter":[{ "name":"DisplayAIOFeatures", "value":"3,5,6,7" }] } } }
Display ENC Preliminary notice features
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "Parameter":[{ "name":"DisplayAIOFeatures", "value":"4,5,6,7" }] } } }
Display No Information features
Note: values 5, 6 & 7 control display of the text, bounding box and area pattern respectively for the displayed AIO features and must be included if these are to display on the chart image.
Example - Temporary Notice:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?token=<<token>>&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=-4199759.866962299,4999896.148476938,3025679.5427769204,9055339.121174172&UserId=<<UserId>>&Display_params={"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DisplayAIOFeatures","value":"1,5,6,7"}]}}}&userRef=ABC123456
Example - Preliminary Notice:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?token=<<token>>&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=-4199759.866962299,4999896.148476938,3025679.5427769204,9055339.121174172&UserId=<<UserId>>&Display_params={"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DisplayAIOFeatures","value":"2,5,6,7"}]}}}&userRef=ABC123456
Example - ENC Preliminary Notice:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?token=<<token>>&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=-207740,6526093,-87413,6612841&UserId=<<UserId>>&Display_params={"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":" DisplayAIOFeatures ","value":"3,5,6,7"}]}}}&userRef=ABC123456
Example - No Information:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?token=<<token>>&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=-207740,6526093,-87413,6612841&UserId=<<UserId>>&Display_params={"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":" DisplayAIOFeatures ","value":"4,5,6,7"}]}}}&userRef=ABC123456
2.3.3.6 TextGroups Display Parameter
The TextGroups parameter will allow the client to return a chart with specific text groups displayed that are defined by the IHO S-52 standard.
If the TextGroups parameter is not provided, the default setting will be applied which will display all TextGroups. The client can override the default settings by toggling on (2) or off (1) TextGroups to create a client-specific chart. All text groups are on (2) by default and will remain on unless specifically overridden.
Example values for the TextGroups parameter are as follows:
Example Display_Params JSON
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "ParameterGroup":[{ "name":"TextGroups", "Parameter":[{ "name":"11", "value":1 }] }] } } }
Toggle Off Important Text
Names for position reporting
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "ParameterGroup":[{ "name":"TextGroups", "Parameter":[{ "name":"21", "value":1 }] }] } } }
Toggle Off Names for position reporting
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "ParameterGroup":[{ "name":"TextGroups", "Parameter":[{ "name":"23", "value":1 }] }] } } }
Toggle Off Light description string
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "ParameterGroup":[{ "name":"TextGroups", "Parameter":[{ "name":"24", "value":1 }] }] } } }
Toggle Off Note on chart data
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "ParameterGroup":[{ "name":"TextGroups", "Parameter":[{ "name":"25", "value":1 }] } } } }
Toggle Off Nature of seabed
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "ParameterGroup":[{ "name":"TextGroups", "Parameter":[{ "name":"26", "value":1 }] }] } } }
Toggle Off Geographic names
Magnetic variation and swept depth
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "ParameterGroup":[{ "name":"TextGroups", "Parameter":[{ "name":"27", "value":1 }] }] } } }
Toggle Off Magnetic variation and swept depth
Height of islet or land feature
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "ParameterGroup":[{ "name":"TextGroups", "Parameter":[{ "name":"28", "value":1 }] }] } } }
Toggle Off Height of islet or land feature
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "ParameterGroup":[{ "name":"TextGroups", "Parameter":[{ "name":"29", "value":1 }] }] } } }
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "ParameterGroup":[{ "name":"TextGroups", "Parameter":[{ "name":"30", "value":1 }] }] } } }
Toggle Off Current Velocity
Note: multiple name/value parameters can be used in combination to toggle on/off multiple TextGroups.
Example - Toggle Off Important Text
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=-240169.96689712367,6352735.1546204025,-163732.9386120504,6429172.182905476&Display_params={"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"ParameterGroup":[{"name":"TextGroups","Parameter":[{"name":"11","value":1}]}]}}}&UserId=<<UserId>>&userRef=ABC123456&token=<<token>>
Example - Toggle Off Geographic Names
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=-67575.15702987203,6537789.200098432,8861.871255201186,6614226.228383505&Display_params={"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"ParameterGroup":[{"name":"TextGroups","Parameter":[{"name":"26","value":1}]}]}}}&UserId=<<UserId>>&userRef=ABC123456&token=<<token>>
Example - Toggle Off Multiple TextGroups
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=-67575.15702987203,6537789.200098432,8861.871255201186,6614226.228383505&Display_params={"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"ParameterGroup":[{"name":"TextGroups","Parameter":[{"name":"26","value":1},{"name":"27","value":1},{"name":"28","value":1},{"name":"29","value":1}]}]}}}&UserId=<<UserId>>&userRef=ABC123456&token=<<token>>
2.3.3.7 AreaSymbolizationType Display Parameter
The AreaSymbolizationType parameter allows the client to return the chart with plain or symbolised area boundaries.
If the AreaSymbolizationType parameter is not provided, the default setting will be applied which will display plain boundaries. The client can override the default settings by specifying the AreaSymbolizationType to create a client specific chart.
Example values for the AreaSymbolizationType parameter are as follows:
Example Display_Params JSON
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "Parameter":[{ "name":"AreaSymbolizationType", "value":1 }] } } }
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "Parameter":[{ "name":"AreaSymbolizationType", "value":2 }] } } }
Display Symbolized boundaries
Example - Plain boundaries:
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=-286118.85758250835,6494839.340319926,-209681.82929743506,6571276.368604999&Display_params={"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"AreaSymbolizationType","value":1}]}}}&UserId=<<UserId>>&userRef=ABC123456&token=<<token>>
Example - Symbolised boundaries
https://avcs-preprod.admiralty.co.uk/server/rest/services/AVCS/MapServer/exts/MaritimeChartService/WMSServer?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&WIDTH=1000&HEIGHT=1000&CRS=EPSG:3857&BBOX=-286118.85758250835,6494839.340319926,-209681.82929743506,6571276.368604999&Display_params={"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"AreaSymbolizationType","value":2}]}}}&UserId=<<UserId>>&userRef=ABC123456&token=<<token>>
2.3.3.8 DisplayLightSectors Display Parameter
The DisplayLightSectors parameter allows the client to toggle ON/OFF light sectors and return the chart accordingly.
If the DisplayLightSectors parameter is not provided, the default setting of 2 (On) will be applied which will display light sectors. The client can override the default settings by specifying a DisplayLightSectors value of 1 (Off) to turn off light sectors.
Example values for the DisplayLightSectors parameter are as follows:
Example Display_Params JSON
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "Parameter":[{ "name":"DisplayLightSectors", "value":1 }] } } }
{ "ECDISParameters":{ "version":"10.6.1", "DynamicParameters":{ "Parameter":[{ "name":"DisplayLightSectors", "value":2 }] } } }