|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.adf.web.ve.util.VEUtil
public class VEUtil
This class contains many useful methods for Bing™ Maps (formerly known as Virtual Earth) Web Services.
Field Summary |
---|
Fields inherited from interface com.esri.adf.web.ve.data.VEConstants |
---|
MAP_STYLE_AERIAL, MAP_STYLE_AERIAL_WITH_LABEL, MAP_STYLE_ROAD, MAX_LEVEL_OF_DETAIL, MIN_LEVEL_OF_DETAIL, TILE_HEIGHT, TILE_WIDTH, VIRTUAL_EARTH_GEOCODE_WKID, VIRTUAL_EARTH_SPATIAL_REFERENCE_WKID, VIRTUAL_EARTH_XMAX, VIRTUAL_EARTH_XMIN, VIRTUAL_EARTH_YMAX, VIRTUAL_EARTH_YMIN |
Method Summary | |
---|---|
static javax.media.jai.PlanarImage |
assembleTiles(String genericURL,
int levelOfDetail)
Returns an image composed with all the tiles for a given level of detail. |
static byte[] |
assembleTiles(String genericURL,
int levelOfDetail,
String imageFormat)
Returns an image composed with all the tiles for a given level of detail. |
static javax.media.jai.PlanarImage |
assembleTiles(String genericURL,
WebExtent extent,
int widthImg,
int heightImg,
Collection<WebLodInfo> lodInfos)
Returns an image composed with all the tiles for a given extent and to the size requested. |
static javax.media.jai.PlanarImage |
assembleTiles(String genericURL,
WebExtent extent,
VETileFunctionality veFunc)
Returns an image composed with all the tiles for a given extent. |
static CandidateTileInfo |
getCandidateTileInfo(WebExtent extent,
VETileFunctionality tileFunc)
Returns the Candidate Tile information for a given extent. |
static WebLodInfo |
getClosestLevelOfDetail(WebExtent extent,
int widthImg,
int heightImg,
Collection<WebLodInfo> lodInfos)
Returns the closest level of detail for a given extent. |
static WebLodInfo |
getClosestLevelOfDetail(WebExtent extent,
VETileFunctionality veFunc)
Returns the closest level of detail for a given extent and a VE functionality. |
static ContainingTile |
getOriginContainingTile(WebExtent extent,
VETileFunctionality veFunc)
Retrieves the tile containing the origin point for the provided extent. |
static ContainingTile |
getOriginContainingTile(WebExtent extent,
VETileFunctionality veFunc,
WebLodInfo lod)
Retrieves the tile containing the origin point for the provided extent. |
static String |
getQuadKey(int col,
int row,
int levelOfDetail)
Returns a quad key according to a column, a row and a level of detail |
static String |
getVEToken(String username,
String password,
String url,
String clientIPAddress,
int timeToLive)
Retrieves a token for Microsoft Virtual Earth web services. |
static int |
pixelXToColumn(double x,
WebLodInfo lod)
Returns the column of the tiles for an X coordinate in the Web Mercator spatial reference at a specified level of detail. |
static VETile |
pixelXYToTile(double x,
double y,
WebLodInfo lod)
Converts pixel XY coordinates into VE tile XY coordinates. |
static int |
pixelYToRow(double y,
WebLodInfo lod)
Returns the row of the tiles for a Y coordinate in the Web Mercator spatial reference at a specified level of detail. |
static String |
requestVirtualEarthToken(VEUser user,
VETokenInfo tokenInfo)
Retrieves a token for Microsoft Virtual Earth web services. |
static boolean |
scalesEqual(double scale1,
double scale2)
Determines if 2 scales are equal with a tolerance based on whether or not the difference between the 2 scales would be noticeable once the tiles are displayed. |
static ContainingTile |
webPointToTile(WebPoint containedPoint,
WebLodInfo lod,
WebPoint origin)
Returns a Containing tile for a given point at a particular level of detail. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static VETile pixelXYToTile(double x, double y, WebLodInfo lod)
x
- the pixel X coordinatey
- the pixel Y coordinatelod
- the Level of Detail of the tile to retrieve
public static int pixelXToColumn(double x, WebLodInfo lod)
x
- the X coordinate in the Web Mercator spatial referencelod
- the specified level of detail
public static int pixelYToRow(double y, WebLodInfo lod)
y
- the Y coordinate in the Web Mercator spatial referencelod
- the specified level of detail
public static ContainingTile webPointToTile(WebPoint containedPoint, WebLodInfo lod, WebPoint origin)
containedPoint
- the point the tile has to containlod
- the level of detail for the containing tileorigin
- the point of origin
public static WebLodInfo getClosestLevelOfDetail(WebExtent extent, VETileFunctionality veFunc)
extent
- the extent the level of detail has to match toveFunc
- the VE tile functionality
public static WebLodInfo getClosestLevelOfDetail(WebExtent extent, int widthImg, int heightImg, Collection<WebLodInfo> lodInfos)
extent
- the extent the level of detail has to match toveFunc
- the VE tile functionalitywidthImg
- the width desired for the imageheightImg
- the width desired for the imagelodInfos
- the levels of details available
public static javax.media.jai.PlanarImage assembleTiles(String genericURL, int levelOfDetail)
genericURL
- the generic URL used to fetch the tileslevelOfDetail
- the level of details of the tiles
public static javax.media.jai.PlanarImage assembleTiles(String genericURL, WebExtent extent, VETileFunctionality veFunc)
genericURL
- the generic URL used to fetch the tilesextent
- the extent
public static javax.media.jai.PlanarImage assembleTiles(String genericURL, WebExtent extent, int widthImg, int heightImg, Collection<WebLodInfo> lodInfos)
genericURL
- the generic URL used to fetch the tilesextent
- the extentwidthImg
- the width desired for the imageheightImg
- the width desired for the imagelodInfos
- the levels of details available
public static byte[] assembleTiles(String genericURL, int levelOfDetail, String imageFormat)
genericURL
- the generic URL used to fetch the tileslevelOfDetail
- the level of details of the tilesimageFormat
- format of the image returned
public static String getQuadKey(int col, int row, int levelOfDetail)
col
- the column of the tilerow
- the row of the tilelevelOfDetail
- the level of detail of the tilepublic static String requestVirtualEarthToken(VEUser user, VETokenInfo tokenInfo)
user
- a VEUsertokenInfo
- a VETokenInfo
public static String getVEToken(String username, String password, String url, String clientIPAddress, int timeToLive)
username
- a valid usernamepassword
- the password associated to the usernameurl
- the URL of the service providing tokensclientIPAddress
- the IP address of the clienttimeToLive
- The time the token will be valid for
public static ContainingTile getOriginContainingTile(WebExtent extent, VETileFunctionality veFunc, WebLodInfo lod)
extent
- the extentveFunc
- the VE functionalitylod
- the level of detail
public static ContainingTile getOriginContainingTile(WebExtent extent, VETileFunctionality veFunc)
extent
- the extentveFunc
- the VE functionality
public static CandidateTileInfo getCandidateTileInfo(WebExtent extent, VETileFunctionality tileFunc)
extent
- the extenttileFunc
- the VE tile functionality
public static boolean scalesEqual(double scale1, double scale2)
scale1
- - first scale to comparescale2
- - second scale to compare
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |