Mercator

class Mercator : Projection

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Determine the Mercator scale factor for a given latitude. At the equator the scale factor will be 1, which increases at higher latitudes. https://en.wikipedia.org/wiki/Mercator_projection#Scale_factor

Link copied to clipboard
open override fun pixelsPerMeter(lat: Double, worldSize: Double): Double

Returns the number of pixels per meter at a given latitude.

Link copied to clipboard
open override fun project(coord: Coordinate, altitude: Double): PlotCoordinate

Projects a geographical coordinate to a plot coordinate.

Link copied to clipboard
fun projectTilePoint(x: Double, y: Double): PlotCoordinate
Link copied to clipboard
open override fun unproject(point: PlotCoordinate): Coordinate

Projects a geographical coordinate to a plot coordinate.

Link copied to clipboard
fun upVector(coord: TileCoord): Vector3
Link copied to clipboard
fun upVectorScale(coord: TileCoord, lat: Double, worldSize: Double): ElevationScale