dart_crs 1.0.3 copy "dart_crs: ^1.0.3" to clipboard
dart_crs: ^1.0.3 copied to clipboard

This package extends proj4dart by embedding the EPSG Geodetic Parameter Dataset maintained by the Geodesy Subcommittee of the IOGP Geomatics Committee.

dart_crs #

This package extends proj4dart by embedding the EPSG Geodetic Parameter Dataset maintained by the Geodesy Subcommittee of the IOGP Geomatics Committee. epsg.org.

pub.dev stars likes Open Issues

Features #

  • Retrieve the WKT for an EPSG coordinate reference system definition.
  • Transform coordinates between two EPSG coordinate reference systems
  • Create a named proj4dart Projection using any of the EPSG defined codes.

Getting started #

To use this plugin, add dart_crs as a dependency in your pubspec.yaml file. For example:

dependencies:
  dart_crs: '^1.0.2'

Usage #

Create a coordinate reference system:

CoordinateReferenceSystem crsLatLong = await CRSFactory.createCRS('EPSG:4326');

Transform a point between two coordinate reference systems.

CoordinateTransform transform = 
    await CRSFactory.createCoordinateTransformFromCodes('EPSG:4326','EPSG:3183');
Point geoPoint = Point(-45.2395,60.1425);
Point? gr96Point = transform!.transform(geoPoint);
Point? inversePoint = transform!.inverse(gr96Point!);

Extract a WKT definition:

String wkt1 = await WKTReader().fetchWkt('EPSG:4326');

Additional information #

Credit to Geomatic Solutions for maintaining the EPSG dataset. The EPSG dataset version for this release is v11.001. The EPSG dataset is based on the ISO 19111:2019 international standard for referencing by coordinates, sometimes referred to as WKT2. Before embedding into this library, the data are converted to the ISO 19111:2007 international standard for enhanced compatibility with proj4dart.

1
likes
160
points
34
downloads

Publisher

verified publisherredfishresearch.com

Weekly Downloads

This package extends proj4dart by embedding the EPSG Geodetic Parameter Dataset maintained by the Geodesy Subcommittee of the IOGP Geomatics Committee.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, path, proj4dart, sqflite

More

Packages that depend on dart_crs