utm 0.1.2 copy "utm: ^0.1.2" to clipboard
utm: ^0.1.2 copied to clipboard

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

example/utm_example.dart

import 'package:utm/utm.dart';

main() {
  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}');

  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,
  );
}
9
likes
40
pub points
78%
popularity

Publisher

unverified uploader

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

License

BSD-3-Clause (LICENSE)

Dependencies

angles, meta

More

Packages that depend on utm