(Return to Portal)
Context Rendering

Introduction

Context Rendering is a service that creates a map image from OGC WMS context documents. The service accesses a particular context document by downloading it from a URL specified as one of the service parameters. The output of the service is currently GIF images. The Context Rendering service will return any errors it finds in a PNG format.

The context document URL is specified along with other additional parameters in either a GET or POST HTTP request to the ContextRenderer Servlet. The Servlet can render the image between 10x10 and 2000x2000, along with specific background colors. You can also specify a bounding box so that the generated map image will include only image data within the specified box and override any bounding box in the context document.

Context Rendering

Parameters

top
When passing a context document to the rendering service, the following parameters can manipulate the response of the service to your requirements.
WIDTH: Integer (10...2000). Defaults to 800.
HEIGHT: Integer (10...2000). Defaults to 600.
BGCOLOR: String ("0xrrggbb"). A six digit hexadecimal number preceded by 0x which represents the background color. Defaults to 0x000000.
CONTEXTURL(mandatory): String - HTTP URL to a context document.
BBOX: String (minx,miny,maxx,maxy) - A comma-separated list of decimal geographic coordinates which define a bounding box. minx refers to the western bound (-180.0...180.0), miny refers to the southern bound (-90.0...90.0), maxx refers to the eastern bound (-180.0...180.0), and maxy refers to the northern bound (-90.0...90.0). If omitted, uses BBOX in context.
Note: The aspect ratio between the width & height should be the same as the aspect ratio of the bounding box coordinates.

Example Interface for Context Rendering

top
Please see the parameters list for information on how to configure parameters.
width
height
bgcolor
contextURL
bbox
top
Links