0 purchases
dart crs
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.
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'
copied to clipboard
Usage #
Create a coordinate reference system:
CoordinateReferenceSystem crsLatLong = await CRSFactory.createCRS('EPSG:4326');
copied to clipboard
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!);
copied to clipboard
Extract a WKT definition:
String wkt1 = await WKTReader().fetchWkt('EPSG:4326');
copied to clipboard
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.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.