dart_jts
0.3.0+1, released 3 years ago by hydrologis.com
A port of the Java Topology Suite for spatial data processing in Dart.
WASM-ready
What it does
Provides geometry types, spatial predicates, buffers, distance operations, spatial indexing, and geometry readers/writers. It allows mobile, desktop, and web applications to perform computational geometry operations.
AI-written summary of version 0.3.0+1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to perform spatial analysis or geometry operations in a Dart application.
- You are working with geographic data formats like WKB or Spatialite geometries.
- You need spatial indexing like quadtrees in Dart.
Skip it when
- You only need simple map rendering and visualization without spatial analysis.
- You require high-level map widgets rather than raw geometry processing utilities.
Strengths
- Comprehensive port of the Java Topology Suite (JTS).
- Supports all geometry types, predicates, buffers, and distance operations.
- Works across mobile, desktop, and web environments.
Weaknesses
- Limited documentation specific to Dart beyond the original Java concepts.
- Niche use case outside of GIS-heavy applications.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Add dart_jts to pubspec.yaml and import it.
import 'package:dart_jts/dart_jts.dart';Works with
Packages commonly used together with dart_jts: ones it builds on, ones built on it, and its own family.