C# 클래스 OrleansGeo.Grains.ExtensionMethods

파일 보기 프로젝트 열기: richorama/OrleansGeo

공개 메소드들

메소드 설명
Add ( this position, double dx, double dy ) : Position
DistanceTo ( this position1, Position position2 ) : double
GetAllParents ( this quadKey ) : IEnumerable
GetDelta ( string from, string to ) : IEnumerable
GetDelta ( this from, Position to ) : IEnumerable
GetQuadKeysInRadius ( this position, double radius ) : IEnumerable
GroundResolution ( double latitude, int levelOfDetail ) : double

Determines the ground resolution (in meters per pixel) at a specified latitude and level of detail.

LatLongToPixelXY ( double latitude, double longitude, int levelOfDetail, int &pixelX, int &pixelY ) : void

Converts a point from latitude/longitude WGS-84 coordinates (in degrees) into pixel XY coordinates at a specified level of detail.

MapScale ( double latitude, int levelOfDetail, int screenDpi ) : double

Determines the map scale at a specified latitude, level of detail, and screen resolution.

MapSize ( int levelOfDetail ) : uint

Determines the map width and height (in pixels) at a specified level of detail.

PixelXYToLatLong ( int pixelX, int pixelY, int levelOfDetail, double &latitude, double &longitude ) : void

Converts a pixel from pixel XY coordinates at a specified level of detail into latitude/longitude WGS-84 coordinates (in degrees).

PixelXYToTileXY ( int pixelX, int pixelY, int &tileX, int &tileY ) : void

Converts pixel XY coordinates into tile XY coordinates of the tile containing the specified pixel.

QuadKeyToTileXY ( string quadKey, int &tileX, int &tileY, int &levelOfDetail ) : void

Converts a QuadKey into tile XY coordinates.

TileXYToPixelXY ( int tileX, int tileY, int &pixelX, int &pixelY ) : void

Converts tile XY coordinates into pixel XY coordinates of the upper-left pixel of the specified tile.

TileXYToQuadKey ( int tileX, int tileY, int levelOfDetail ) : string

Converts tile XY coordinates into a QuadKey at a specified level of detail.

ToQuadKey ( this position ) : string

비공개 메소드들

메소드 설명
Clip ( double n, double minValue, double maxValue ) : double

Clips a number to the specified minimum and maximum values.

DegreesToRadians ( double deg ) : double

메소드 상세

Add() 공개 정적인 메소드

public static Add ( this position, double dx, double dy ) : Position
position this
dx double
dy double
리턴 OrleansGeo.GrainInterfaces.Position

DistanceTo() 공개 정적인 메소드

public static DistanceTo ( this position1, Position position2 ) : double
position1 this
position2 OrleansGeo.GrainInterfaces.Position
리턴 double

GetAllParents() 공개 정적인 메소드

public static GetAllParents ( this quadKey ) : IEnumerable
quadKey this
리턴 IEnumerable

GetDelta() 공개 정적인 메소드

public static GetDelta ( string from, string to ) : IEnumerable
from string
to string
리턴 IEnumerable

GetDelta() 공개 정적인 메소드

public static GetDelta ( this from, Position to ) : IEnumerable
from this
to OrleansGeo.GrainInterfaces.Position
리턴 IEnumerable

GetQuadKeysInRadius() 공개 정적인 메소드

public static GetQuadKeysInRadius ( this position, double radius ) : IEnumerable
position this
radius double
리턴 IEnumerable

GroundResolution() 공개 정적인 메소드

Determines the ground resolution (in meters per pixel) at a specified latitude and level of detail.
public static GroundResolution ( double latitude, int levelOfDetail ) : double
latitude double Latitude (in degrees) at which to measure the /// ground resolution.
levelOfDetail int Level of detail, from 1 (lowest detail) /// to 23 (highest detail).
리턴 double

LatLongToPixelXY() 공개 정적인 메소드

Converts a point from latitude/longitude WGS-84 coordinates (in degrees) into pixel XY coordinates at a specified level of detail.
public static LatLongToPixelXY ( double latitude, double longitude, int levelOfDetail, int &pixelX, int &pixelY ) : void
latitude double Latitude of the point, in degrees.
longitude double Longitude of the point, in degrees.
levelOfDetail int Level of detail, from 1 (lowest detail) /// to 23 (highest detail).
pixelX int Output parameter receiving the X coordinate in pixels.
pixelY int Output parameter receiving the Y coordinate in pixels.
리턴 void

MapScale() 공개 정적인 메소드

Determines the map scale at a specified latitude, level of detail, and screen resolution.
public static MapScale ( double latitude, int levelOfDetail, int screenDpi ) : double
latitude double Latitude (in degrees) at which to measure the /// map scale.
levelOfDetail int Level of detail, from 1 (lowest detail) /// to 23 (highest detail).
screenDpi int Resolution of the screen, in dots per inch.
리턴 double

MapSize() 공개 정적인 메소드

Determines the map width and height (in pixels) at a specified level of detail.
public static MapSize ( int levelOfDetail ) : uint
levelOfDetail int Level of detail, from 1 (lowest detail) /// to 23 (highest detail).
리턴 uint

PixelXYToLatLong() 공개 정적인 메소드

Converts a pixel from pixel XY coordinates at a specified level of detail into latitude/longitude WGS-84 coordinates (in degrees).
public static PixelXYToLatLong ( int pixelX, int pixelY, int levelOfDetail, double &latitude, double &longitude ) : void
pixelX int X coordinate of the point, in pixels.
pixelY int Y coordinates of the point, in pixels.
levelOfDetail int Level of detail, from 1 (lowest detail) /// to 23 (highest detail).
latitude double Output parameter receiving the latitude in degrees.
longitude double Output parameter receiving the longitude in degrees.
리턴 void

PixelXYToTileXY() 공개 정적인 메소드

Converts pixel XY coordinates into tile XY coordinates of the tile containing the specified pixel.
public static PixelXYToTileXY ( int pixelX, int pixelY, int &tileX, int &tileY ) : void
pixelX int Pixel X coordinate.
pixelY int Pixel Y coordinate.
tileX int Output parameter receiving the tile X coordinate.
tileY int Output parameter receiving the tile Y coordinate.
리턴 void

QuadKeyToTileXY() 공개 정적인 메소드

Converts a QuadKey into tile XY coordinates.
public static QuadKeyToTileXY ( string quadKey, int &tileX, int &tileY, int &levelOfDetail ) : void
quadKey string QuadKey of the tile.
tileX int Output parameter receiving the tile X coordinate.
tileY int Output parameter receiving the tile Y coordinate.
levelOfDetail int Output parameter receiving the level of detail.
리턴 void

TileXYToPixelXY() 공개 정적인 메소드

Converts tile XY coordinates into pixel XY coordinates of the upper-left pixel of the specified tile.
public static TileXYToPixelXY ( int tileX, int tileY, int &pixelX, int &pixelY ) : void
tileX int Tile X coordinate.
tileY int Tile Y coordinate.
pixelX int Output parameter receiving the pixel X coordinate.
pixelY int Output parameter receiving the pixel Y coordinate.
리턴 void

TileXYToQuadKey() 공개 정적인 메소드

Converts tile XY coordinates into a QuadKey at a specified level of detail.
public static TileXYToQuadKey ( int tileX, int tileY, int levelOfDetail ) : string
tileX int Tile X coordinate.
tileY int Tile Y coordinate.
levelOfDetail int Level of detail, from 1 (lowest detail) /// to 23 (highest detail).
리턴 string

ToQuadKey() 공개 정적인 메소드

public static ToQuadKey ( this position ) : string
position this
리턴 string