MapProjection

Description

abstract class Tinman.Terrain.Mapping.MapProjection

Derived from

MapProjectionBase abstract

Base class for map projections that work with latitude and longitude angles.

Protected / Constructors

Map​Projection


protected constructor MapProjection → (5)

factory in : IMapProjectionFactory

[not-null]
The owning map projection factory.

source in : MapInfo

The source raster.

target in : MapInfo

The target raster.

reverse in : bool

The reverse flag that need to be passed to IMapProjectionFactory.CreateMapProjection during IMapProjection.Reverse.

clip in : bool

Clip bad geographic coordinates (see ICoordinateTransform.GeographicClip)?

Creates a new instance of MapProjection.

Protected / Methods

Transform​Internal

2 overloads


protected abstract method TransformInternal1 → (3)

in : float64

Source raster X-coordinate.

in : float64

Source raster Y-coordinate.

in : float64

Source raster Z-coordinate.

returns → Vec3D

Target raster coordinates.

Transforms the given raster coordinates.

Wrapping for rectangular rasters (see MapWrap) will have been applied to the given raster coordinates before this method is called.


protected virtual method TransformInternal2 → (4)

in : float64

Source raster X-coordinate.

in : float64

Source raster Y-coordinate.

in : float64

Source raster Z-coordinate.

in : float64

Source raster height.

returns → Vec4D

Target raster coordinates and height (stored in Vec4D.W).

Transforms the given raster coordinates.

Wrapping for rectangular rasters (see MapWrap) will have been applied to the given raster coordinates before this method is called.

The given raster height is passed through by the default implementation.

Protected / Attributes

clip


protected readonly attribute clip → (bool)

Clip bad geographic coordinates?

source​Wrap​X


protected attribute sourceWrapX → (MapWrap)

X-axis wrapping for rectangular source raster. Defaults to MapWrap.Void.

source​Wrap​Y


protected attribute sourceWrapY → (MapWrap)

Y-axis wrapping for rectangular source raster. Defaults to MapWrap.Void.

target​Wrap​X


protected attribute targetWrapX → (MapWrap)

X-axis wrapping for rectangular target raster. Defaults to MapWrap.Void.

target​Wrap​Y


protected attribute targetWrapY → (MapWrap)

Y-axis wrapping for rectangular target raster. Defaults to MapWrap.Void.