RasterTransform
Description
- Derived from
-
SerializableBase abstract
IRasterTransform - Extended by
-
RasterTransformMatrix sealed
Abstract base class for IRasterTransform implementations.
Public / Constructors
Barycentric
Creates a new instance of IRasterTransform that ties a triangle in map space to a triangle in rectangular raster space using barycentric coordinates.
Cube
Creates a new instance of RasterTransform that interprets input raster coordinates as cubemap coordinates and converts them to output map coordinates as geographic coordinates in the given unit.
Rectangle
Creates a new instance of RasterTransform that maps the given raster rectangle to map bounds.
- See also
TiepointScale
Creates a new instance of IRasterTransform that ties the given map point to the specified rectangular raster point.
The following formulas describe the transformation between map coordinates and raster coordinates:
a.X = (b.X - raster.X) * scale.X + map.X a.Y = (b.Y - raster.Y) * scale.Y + map.Y b.X = (a.X - map.X) / scale.X + raster.X b.Y = (a.Y - map.Y) / scale.Y + raster.Y
where a
represents the map coordinates of a point and b
represents its raster coordinates.
Transform
Creates a new instance of IRasterTransform that uses an affine transformation from rectangular raster space to map space.
The following matrix will be used to transform raster space to map space:
/ \ / \ / \ | E | | a b 0 d | | X | | N | = | e f 0 h | | Y | | 0 | | 0 0 1 0 | | 0 | | 1 | | 0 0 0 1 | | 1 | \ / \ / \ / X := Raster X-coordinate Y := Raster Y-coordinate E := Map easting coordinate N := Map northing coordinate
The given matrix must be invertible, so a*f - e*b
must not be zero.