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.

name=/NamedTiles/WorldTile<br />

&level=4<br />

&screenX=100<br />

&screenY=100<br />

&view=-20000000,20000000,20000000,-20000000<br />

&output=json<br />

The above example will return the following JSON response object:<br />

{"EnvinsaResponse":{"tileCoord":{"column":1,"row":1},"type":"<strong>Map</strong><strong>Tiling</strong>Response"}}<br />

Returns<br />

A TileCoordinate object as seen in the above sample. See TileCoordinate on page 43.<br />

convert<strong>Map</strong>ToTileCoord<br />

Description<br />

Returns the row and column number of the map tile in which a specified set of map coordinates lies.<br />

Parameters<br />

For information on the parameter types listed below, see Request URL Data Types on page 46.<br />

Parameter<br />

worldX<br />

worldY<br />

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

Type<br />

Float<br />

Float<br />

Required<br />

yes<br />

yes<br />

Description<br />

Chapter 4: Legacy <strong>Map</strong> <strong>Tiling</strong> Interface<br />

Specifies the x coordinate of the map's point location.<br />

The map location is specified in terms of the units<br />

of the map coordinate system (for example, degrees<br />

or meters). You can determine the coordinate<br />

system of the map by calling the convertScreen-<br />

To<strong>Map</strong>Coord method and examining the returned<br />

<strong>Map</strong>Coordinate object. For more information, see<br />

convertScreenTo<strong>Map</strong>Coord on page 34 and<br />

<strong>Map</strong>Coordinate on page 43.<br />

Specifies the y coordinate of the map's point location.<br />

The map location is specified in terms of the units<br />

of the map coordinate system (for example, degrees<br />

or meters). You can determine the coordinate<br />

system of the map by calling the convertScreen-<br />

To<strong>Map</strong>Coord method and examining the returned<br />

<strong>Map</strong>Coordinate object. For more information, see<br />

37

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

Saved successfully!

Ooh no, something went wrong!