QuantizedMeshTerrainProviderLongitudeToXTileCoordinate Method |
Gets the X tile coordinate for a given longitude.
Namespace:
AGI.Foundation.Terrain
Assembly:
AGI.Foundation.TerrainReaders (in AGI.Foundation.TerrainReaders.dll) Version: 25.2.423.0 (25.2.423.0)
Syntaxpublic static int LongitudeToXTileCoordinate(
int level,
double longitude
)
Public Shared Function LongitudeToXTileCoordinate (
level As Integer,
longitude As Double
) As Integer
public:
static int LongitudeToXTileCoordinate(
int level,
double longitude
)
static member LongitudeToXTileCoordinate :
level : int *
longitude : float -> int
Parameters
- level
- Type: SystemInt32
The zoom level. - longitude
- Type: SystemDouble
The longitude.
Return Value
Type:
Int32The X tile coordinate of the tile that contains that longitude.
Exceptions| Exception | Condition |
|---|
| ArgumentOutOfRangeException |
Thrown when longitude is outside the range -π to π.
|
Remarks
The X coordinate increases from west to east.
That is, the origin is in the south-west.
See Also