Skip to content

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

License

Notifications You must be signed in to change notification settings

badger3512/dart_crs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published