utm 0.1.2

Dart native js
Flutter Android iOS web

This is a Lat Lon and UTM bidirectional converter. Translate from Python UTM libarary. Support 3 Geodetic System, WGS84, GRS80 and Bessel

UTM dart #

Lat Lon and UTM bidirectional converter.
translate from Python UTM library

Support Geodetic System

  • WGS84 (default)
  • GRS80
  • Bessel

The UTM coordinate system is explained on this Wikipedia page.

Usage #

Simple usage.
Default geodetic system is WGS84

import 'package:utm/utm.dart';

final utm = UTM.fromLatLon(lat: -30, lon: -150);
print('zone: ${utm.zone}');
print('N: ${utm.northing}');
print('E: ${utm.easting}');
print('lat: ${utm.lat}');
print('lat: ${utm.lon}');

final latlon = UTM.fromUtm(
  easting: utm.easting,
  northing: utm.northing,
  zoneNumber: utm.zoneNumber,
  zoneLetter: utm.zoneLetter,
);
print('lat: ${latlon.lat}');
print('lon: ${latlon.lon}');

Use specific geodetic system

UTM.fromLatLon(lat: -30, lon: -150, type: GeodeticSystemType.bessel);
UTM.fromUtm(
  easting: utm.easting,
  northing: utm.northing,
  zoneNumber: utm.zoneNumber,
  zoneLetter: utm.zoneLetter,
  type: GeodeticSystemType.grs80,
);

Features and bugs #

Please file feature requests and bugs at the [issue tracker][tracker].

[tracker]:

3
likes
100
pub points
62%
popularity

This is a Lat Lon and UTM bidirectional converter. Translate from Python UTM libarary. Support 3 Geodetic System, WGS84, GRS80 and Bessel

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

mushimushikera@gmail.com

License

BSD (LICENSE)

Dependencies

angles, meta

More

Packages that depend on utm