26.02.2013 Views

MapInfo Spatial Server Web Map Service - Product Documentation ...

MapInfo Spatial Server Web Map Service - Product Documentation ...

MapInfo Spatial Server Web Map Service - Product Documentation ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Sample Response<br />

Input<br />

BBOX=minx,miny,maxx,maxy<br />

WIDTH=output_width<br />

HEIGHT=output_height<br />

FORMAT=output_format<br />

TRANSPARENT=TRUE|FALSE<br />

BGCOLOR=color_value<br />

EXCEPTIONS=exception_format<br />

Required<br />

Yes<br />

Yes<br />

Yes<br />

Yes<br />

No<br />

No<br />

No<br />

Description<br />

The area to be mapped. the bounding box is specified as the<br />

four coordinates of the corners of the box that bounds the<br />

map area to be included in the image. The BBOX coordinates<br />

are always expressed in the units of the SRS.<br />

Width in pixels of map picture.<br />

Height in pixels of map picture.<br />

The format in which the map image is to be returned.<br />

The transparency and color of the background of the image.<br />

If nothing is specified, the value is FALSE.<br />

Hexadecimal red-green-blue color value for the background<br />

color (default=0xFFFFFF).<br />

The format in which exceptions are to be reported by the<br />

WMS (default=SE_XML).<br />

The request parameters are always sent as an HTTP query string. The following are sample Get<strong>Map</strong><br />

requests:<br />

WMS version 1.3:<br />

http://localhost:8080/rest/Enterprise<strong>Map</strong>ping/WMS?VERSION=1.3.0&SERVICE=WMS&RE-<br />

QUEST=Get<strong>Map</strong><br />

&CRS=EPSG:4326&BBOX=-100,0,90,100&WIDTH=400&HEIGHT=300&Layers=World&STYLES=AreaStyle<br />

&FORMAT=image/png<br />

WMS version 1.1.1:<br />

http://localhost:8080/rest/Enterprise<strong>Map</strong>ping/WMS?VERSION=1.1.1&SERVICE=WMS&RE-<br />

QUEST=Get<strong>Map</strong><br />

&SRS=EPSG:4326&BBOX=-100,0,90,100&WIDTH=400&HEIGHT=300&Layers=World&STYLES=AreaStyle<br />

&FORMAT=image/png<br />

Note:<br />

Sample Response<br />

24<br />

The code above should all be on a single line with no breaks. Due to space limitations, we cannot<br />

display the request in such a way in this document.<br />

After a successful Get<strong>Map</strong> request, the service returns a Get<strong>Map</strong> response that is an image of the map<br />

specified by the parameters in the request. The following is the response to the above request:<br />

<strong><strong>Map</strong>Info</strong> <strong>Spatial</strong> <strong>Server</strong> 1.0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!