Spatial Maps API

Apply Dynamic Styling To Map

POST version of WMS GetMap that accepts the SLD_BODY as an application/x-www-form-urlencoded form field in the request body. All standard WMS parameters (REQUEST, SERVICE, VERSION, LAYERS, STYLES, CRS, BBOX, WIDTH, HEIGHT, FORMAT, etc.) are provided as query parameters.

Example:

  • REQUEST=GetMap
  • SERVICE=WMS
  • VERSION=1.3.0
  • LAYERS=World
  • CRS=EPSG:4326
  • BBOX=37.786,-122.274,37.814,-122.240
  • WIDTH=1062
  • HEIGHT=853
  • FORMAT=image/png
  • TRANSPARENT=TRUE
  • SLD_BODY (in request body as form field)

Authorization: Requires a valid Bearer JWT or API key (see security schemes below). As with the GET WMS entrypoint, no per-layer EXECUTE-permission check is performed.

post/v1/spatial/wms

Request

  • Base URL: https://api.cloud.precisely.com
  • URL: https://api.cloud.precisely.com/v1/spatial/wms
  • Auth: one of:
    • HTTP bearer
    • API key in header Authorization

Query parameters

REQUESTstring required

WMS operation — must be GetMap for POST

SERVICEstring required

Service type (always WMS)

VERSIONstring

WMS version (1.1.1 or 1.3.0)

LAYERSstring required

Comma-separated list of layer names

STYLESstring

Comma-separated list of style names

CRSstring

Coordinate Reference System (WMS 1.3.0)

SRSstring

Spatial Reference System (WMS 1.1.1)

BBOXstring required

Bounding box (minx,miny,maxx,maxy)

WIDTHinteger required

Image width in pixels

HEIGHTinteger required

Image height in pixels

FORMATstring required

Image format

TRANSPARENTstring

Transparency (TRUE/FALSE)

BGCOLORstring

Background color (hex)

EXCEPTIONSstring

Exception format

Headers

X-Request-Idstring

Optional request correlation ID for tracing and logging.

Response

Map image returned successfully

Changes

No recorded changes to this operation across all 1 revision of this API.