proj4dart
3.0.0, released a year ago by an unverified publisher
Transform point coordinates between different coordinate systems and datums.
WASM-readySingle maintainer
What it does
Proj4dart transforms geographic point coordinates from one coordinate system to another. It supports predefined projections, Proj4 definition strings, OGC and ESRI WKT definitions, and datum transformations.
AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to convert GPS coordinates between different EPSG codes or coordinate reference systems.
- You are working with custom map projections or datum shifts in Dart and Flutter.
Skip it when
- You only need simple distance calculations on a flat plane without coordinate system conversions.
Strengths
- Extensive support for Proj4, OGC WKT, and ESRI WKT definitions.
- Includes grid-based datum adjustments (NTv2 .gsb files).
- Thoroughly tested against thousands of standard projection definitions.
Weaknesses
- Limited to point coordinate transformations rather than full vector geometry rendering.
- Grid files for datum shifts must be loaded manually into memory.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
import 'package:proj4dart/proj4dart.dart';
void main() {
var pointSrc = Point(x: 17.888058560281515, y: 46.89226406700879);
var projSrc = Projection.get('EPSG:4326')!;
var projDst = Projection.get('EPSG:23700') ??
Projection.add(
'EPSG:23700',
'+proj=somerc +lat_0=47.14439372222222 +lon_0=19.04857177777778 +k_0=0.99993 +x_0=650000 +y_0=200000 +ellps=GRS67 +towgs84=52.17,-71.82,-14.9,0,0,0,0 +units=m +no_defs',
);
var pointForward = projSrc.transform(projDst, pointSrc);
}Alternatives
Packages that do the same job and could replace proj4dart.
- h3_flutter
Flutter version of Uber's H3 core hexagon-based geographic grid system.
83Compare
Works with
Packages commonly used together with proj4dart: ones it builds on, ones built on it, and its own family.
- mgrs_dartproj4dart depends on itUtility for converting between WGS84 lat/lng and MGRS coordinates.
- flutter_mapBuilt on proj4dartPure‑Flutter map client with tile loading, markers, and gestures
- geobaseBuilt on proj4dartGeospatial data structures, geometry calculations, geodesy, projections, and vector formats in Dart.
- coordinate_converterBuilt on proj4dartConvert between UTM, DMS, and DD geographic coordinates using the WGS84 model.