Projection class abstract
This class provides the calculation from Lat/Lon to pixelY/pixelX and vice versa
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
boundingBoxOfTile(
Tile tile) → BoundingBox -
boundingBoxOfTiles(
Tile upperLeft, Tile lowerRight) → BoundingBox -
latitudeToTileY(
double latitude) → int - Converts a latitude coordinate (in degrees) to a tile Y number at a certain zoom level.
-
longitudeToTileX(
double longitude) → int - Converts a longitude coordinate (in degrees) to the tile X number at a certain zoom level.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
tileXToLongitude(
int tileX) → double - Converts a tile X number at a certain zoom level to a longitude coordinate.
-
tileYToLatitude(
int tileY) → double - ////////////////////////////////////////////////////////////////////////// Converts a tile Y number at a certain zoom level to a latitude coordinate.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- EARTH_CIRCUMFERENCE → double
-
The circumference of the earth at the equator in meters.
final
- EQUATORIAL_RADIUS → double
-
The equatorial radius as defined by the WGS84
ellipsoid. WGS84 is the reference coordinate system used by the Global Positioning System.
final
- INVERSE_FLATTENING → double
-
The flattening factor of the earth's ellipsoid is required for distance computation.
final
- LATITUDE_MAX → double
-
Maximum possible latitude coordinate of the map.
final
- LATITUDE_MIN → double
-
Minimum possible latitude coordinate of the map.
final
- LONGITUDE_MAX → double
-
Polar radius in meter (WGS84 ellipsoid)
final
- LONGITUDE_MIN → double
-
final
- POLAR_RADIUS → double
-
Polar radius of earth is required for distance computation.
final
Static Methods
-
degToRadian(
double deg) → double - Converts degree to radian
-
destinationPoint(
ILatLong start, double distance, double bearing) → ILatLong - Returns the destination point from this point having travelled the given distance on the given initial bearing (bearing normally varies around path followed).
-
distance(
ILatLong p1, ILatLong p2) → double - Calculates distance with Haversine algorithm.
-
latitudeDistance(
int meters) → double - Calculates the amount of degrees of latitude for a given distance in meters.
-
longitudeDistance(
int meters, double latitude) → double - Calculates the amount of degrees of longitude for a given distance in meters.
-
offset(
ILatLong from, double distanceInMeter, double bearing) → ILatLong -
Returns a destination point based on the given distance and
bearing
-
radianToDeg(
double rad) → double - Radian to degree
-
startBearing(
ILatLong p1, ILatLong p2) → double -
calculates the startbearing in degrees of the distance from
p1
top2
see https://www.movable-type.co.uk/scripts/latlong.html -
vincentyDistance(
ILatLong latLong1, ILatLong latLong2) → double - Calculates geodetic distance between two LatLongs using Vincenty inverse formula for ellipsoids. This is very accurate but consumes more resources and time than the sphericalDistance method.