This update exposes Weave map engines as a WMS service. The bundle can also be used to create URL's that can be called from external applications to create custom map images. The bundle supports additional parameters beyond those required by WMS and allows for more customised map output.
...
Name | Description | WMS Compliant |
---|---|---|
srs | Coordinate reference system of the coordinates specified in the URL | Y |
width | Width of generated image in pixels | Y |
height | Height of generated image in pixels | Y |
format | Output format of the generated image | Y |
bgcolor | Background colour | Y |
transparent | true if transparent images should be created, false if opaque images should be generated | Y |
bbox | Comma separated minx, miny, maxx and maxy of the generated image | Y |
layers | List of layers to draw, all layers will be drawn if not set at all, and no layers drawn if layers is set to no value | Y |
exceptions | Method used to return errors to the caller | Y |
size | Comma separated width and height of generated image in pixels | |
dpi | DPI of generated image, to ensure scale dependencies are calculated correctly | |
minx | Left X coordinate | |
miny | Bottom Y coordinate | |
maxx | Right X Coordinate | |
maxy | Top Y coordinate | |
x | Center X coordinate | |
y | Center Y coordinate | |
center | Comma separated X and Y coordinate. Both | |
scale | Scale to generate map at | |
entity | Entity to use to determine map extent and draw highlight | |
ids | Identifiers of entities to zoom to and highlight | |
filter | Filters to be applied to 'ids' before calculating the extent. For use if external system uses different id's for the underlying GIS data | |
buffer | Amount to scale entity extent by to calculate extent, e.g. 1.2 to place a 20% buffer around the entity bounds | |
minscale | Minimum scale to zoom to when zooming to an entity | |
highlight | false if the entity highlight should not be drawn, true if it should be drawn | |
hlcolor | Vector highlight colour | |
mcolor | Marker highlight colour. Should be blue, brown, dark, green, orange, purple, red, silver or yellow. The default is green. The mcolor 'dark' is a dark grey. |
Note |
---|
You must include a parameter or parameters in the URL to set or calculate the map bounding box, this can not be set in the context. When specifying the map bounding box setting minx, miny, maxx and maxy is the same as specifying just bbox, and bbox will take precedence if both are present. Setting size will take precedence over setting width and height if both are present. |
...
Code Block | ||
---|---|---|
| ||
/weave/wms/test?x=355971&y=5831675&scale=5000
/weave/wms/test?center=355971,5831675&scale=5000
/weave/wms/test?center=337649.188,5818856.678&scale=1000&srs=EPSG:28355
/weave/wms/test?center=145.1568367,-37.7632155&scale=5000&srs=EPSG:4283
|
Code Block | ||
---|---|---|
| ||
/weave/wms/test?entity=property&ids=242765 |
...