04.02.2013 Views

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

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

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

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

There is one restriction when defining a map: the resultant tile height must be a whole number (integer).<br />

Since tile height and tile width are calculated in pixels, it is impossible for a user to display these values<br />

as fractions of a pixel.<br />

For example, a map with a bounds of (-180, -90, 180, 90) in WGS84 has an aspect ratio (width to height)<br />

of 2:1. So the tileHeight calculation is half the tileWidth. If you defined the tileWidth parameter<br />

to be 256 then the tileHeight would be 128. This is an acceptable tileHeight value. However, if<br />

you have defined a map with the bounds of (-180, -90, 90, 0) in WGS84, that would create an aspect<br />

ratio of 3:1. Calculating the tileHeight based on a tileWidth of 256 would result in a tileHeight<br />

of 85.3333333. This is not an acceptable tileHeight value, and will not be displayed by the <strong>Map</strong> <strong>Tiling</strong><br />

<strong>Service</strong>. If a map hosted by the <strong>Map</strong> <strong>Tiling</strong> <strong>Service</strong> is configured with tileWidth and bounds parameter<br />

settings that result in an invalid tileHeight calculation, then the map will not appear in the list of<br />

available maps returned by a call to the get<strong>Map</strong>s method in the <strong>Map</strong> <strong>Tiling</strong> Interface.<br />

<strong>Map</strong> <strong>Tiling</strong> <strong>Service</strong> Guide<br />

Chapter 2: Managing <strong>Map</strong> <strong>Tiling</strong> Resources and Configuration<br />

17

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

Saved successfully!

Ooh no, something went wrong!