Mgrs class Null safety

Constructors

Mgrs()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

A int
final
ALPHABET List<String>
final
I int
final
NUM_100K_SETS int
UTM zones are grouped, and assigned to one of a group of 6 sets.
final
O int
final
SET_ORIGIN_COLUMN_LETTERS String
final
SET_ORIGIN_ROW_LETTERS String
final
V int
final
Z int
final

Static Methods

decode(String mgrsString) UTM
Decode the UTM parameters from a MGRS string.
degToRad(double deg) double
Conversion from degrees to radians.
encode(UTM utm, int accuracy) String
Encodes a UTM location as MGRS string.
forward(List<double> ll, int? accuracy) String
Convert lat/lon to MGRS.
get100kID(double easting, double northing, int zoneNumber) String
Get the two letter 100k designator for a given UTM easting, northing and zone number value. @private @param {number} easting @param {number} northing @param {number} zoneNumber @return {string} the two letter 100k designator for the given UTM location.
get100kSetForZone(int i) int
Given a UTM zone number, figure out the MGRS 100K set it is in.
getEastingFromChar(String e, int set) int
Given the first letter from a two-letter MGRS 100k zone, and given the MGRS table set for the zone number, figure out the easting value that should be added to the other, secondary easting value.
getLetter100kID(int column, int row, int parm) String
Get the two-letter MGRS 100k designator given information translated from the UTM northing, easting and zone number.
getLetterDesignator(double latitude) String
Calculates the MGRS letter designator for the given latitude.
getMinNorthing(String zoneLetter) int
The function getMinNorthing returns the minimum northing value of a MGRS zone.
getNorthingFromChar(String n, int set) int
Given the second letter from a two-letter MGRS 100k zone, and given the MGRS table set for the zone number, figure out the northing value that should be added to the other, secondary northing value. You have to remember that Northings are determined from the equator, and the vertical cycle of letters mean a 2000000 additional northing meters. This happens approx. every 18 degrees of latitude. This method does NOT count any additional northings. You have to figure out how many 2000000 meters need to be added for the zone letter of the MGRS coordinate.
inverse(String mgrs) List<double>
Convert MGRS to lat/lon bounding box.
LLtoUTM(double lat, double lon) UTM
Converts a set of Longitude and Latitude co-ordinates to UTM using the WGS84 ellipsoid.
radToDeg(double rad) double
Conversion from radians to degrees.
toPoint(String mgrs) List<double>
Convert MGRS to lat/lon.
UTMtoLL(UTM utm) → dynamic
Converts UTM coords to lat/long, using the WGS84 ellipsoid. This is a convenience class where the Zone can be specified as a single string eg."60N" which is then broken down into the ZoneNumber and ZoneLetter.