Click or drag to resize

RasterTerrainProviderCartographicExtentToIndexExtent Method

Gets the post indices corresponding to a given cartographic extent.

Namespace:  AGI.Foundation.Terrain
Assembly:  AGI.Foundation.TerrainReaders (in AGI.Foundation.TerrainReaders.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public RasterTerrainIndexExtent CartographicExtentToIndexExtent(
	double westLongitude,
	double southLatitude,
	double eastLongitude,
	double northLatitude
)

Parameters

westLongitude
Type: SystemDouble
The western boundary of the extent, in the provider's native units.
southLatitude
Type: SystemDouble
The southern boundary of the extent, in the provider's native units.
eastLongitude
Type: SystemDouble
The eastern boundary of the extent, in the provider's native units.
northLatitude
Type: SystemDouble
The northern boundary of the extent, in the provider's native units.

Return Value

Type: RasterTerrainIndexExtent
The indices of the posts that bound the requested extent. This method always returns an extent that includes at least two posts in each direction. If the two longitudes or two latitudes are identical, the indices of the posts to either side are returned. If the two longitudes and two latitudes are both identical and fall exactly on a post, the returned extent will include three posts in that direction. However, if the identical values that fall on a post happen to be on the edge of the entire terrain region, only two posts will be returned in that direction. If the coordinates indicate indices outside the extent of the terrain, the indices will be clamped to the terrain edges.
See Also