OsmMapping

References
public abstract class OsmMapping
Basic class for coordinate mapping.

Methods

CreateNullMapping

#
public static OsmMapping CreateNullMapping(double elevationFactor)
Create a direct lon-lat to World XY mapping.
elevationFactor (double)Elevation factor.
Straight mapping.

CreatePlanarMapping

#
public static OsmMapping CreatePlanarMapping(double longitude, double latitude, double elevationFactor)
Create a mapping onto a sphere.
longitude (double)Central longitude.
latitude (double)Central latitude.
elevationFactor (double)Elevation multiplier.
Mapping instance.

CreateRectangleMapping

#
public static OsmMapping CreateRectangleMapping(Interval longitudeDegrees, Interval latitudeDegrees, Rectangle3d targetBox, double elevationFactor)
Create a mapping onto a rectangle.
longitudeDegrees (Interval)Longitude range.
latitudeDegrees (Interval)Latitude range.
targetBox (Rectangle3d)Destination rectangle.
elevationFactor (double)Elevation multiplier.
Mapping instance.

CreateSphericalMapping

#
public static OsmMapping CreateSphericalMapping(Sphere sphere, double elevationFactor)
Create a mapping onto a sphere.
sphere (Sphere)Target sphere.
elevationFactor (double)Elevation multiplier.
Mapping instance.

CreateSurfaceMapping

#
public static OsmMapping CreateSurfaceMapping(Interval longitudeDegrees, Interval latitudeDegrees, Surface targetSurface, double elevationFactor)
Create a mapping onto a surface.
longitudeDegrees (Interval)Longitude range.
latitudeDegrees (Interval)Latitude range.
targetSurface (Surface)Destination surface.
elevationFactor (double)Elevation multiplier.
Mapping instance.

Map

#
public abstract Point3d Map(double longitude, double latitude, double elevation)
Transform a mapping coordinate.
longitude (double)Longitude (in degrees).
latitude (double)Latitude (in degrees).
elevation (double)Elevation (in meters).