utm

Creator: coderz1093

Last updated:

Add to Cart

Description:

utm

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

copied to clipboard
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,
);
copied to clipboard
Features and bugs #
Please file feature requests and bugs at the [issue tracker][tracker].
[tracker]:

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.