utm 0.1.3-nullsafety.1 copy "utm: ^0.1.3-nullsafety.1" to clipboard
utm: ^0.1.3-nullsafety.1 copied to clipboard

This is a Lat Lon and UTM bidirectional converter. Translate from Python UTM library. 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]:

9
likes
140
pub points
78%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

angles

More

Packages that depend on utm