geotypes
0.0.2, released 3 years ago by scalabs.de
Lightweight library providing GeoJSON data types for Dart and Flutter
What it does
It defines classes for all GeoJSON geometry and feature types and offers parsing from JSON. The library is fully RFC 7946 compliant and supports Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, GeometryCollection, FeatureCollection, and Feature.
AI-written summary of version 0.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to model GeoJSON data in a Dart/Flutter project
- You want a small dependency that covers all standard GeoJSON geometry types
- You require RFC 7946 compliance without extra tooling
Skip it when
- You need advanced geospatial analysis or spatial queries
- You require support for nested GeometryCollections
- You need separate serialization logic or extensive documentation
Strengths
- Lightweight and focused
- Full RFC 7946 compliance
- Supports all standard geometry and feature types
Weaknesses
- No advanced geospatial features
- Limited documentation
- Nested GeometryCollections not yet supported
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 1
import 'package:geotypes/geotypes.dart';
final point = Point([0.0, 0.0]);
final feature = Feature(point, properties: {'name': 'origin'});Alternatives
Packages that do the same job and could replace geotypes.
- csv_plus
Fast, zero-dependency CSV parser, encoder, streamer, and query engine for Dart.
82Compare - conduit_codable
A library for encoding and decoding dynamic structured data like JSON and YAML into Dart objects.
66Compare - events_emitter
An intuitive event-based system inspired by NodeJS's Event Emitter with type safety.
55Compare - convert
Encoders and decoders for converting between different data representations.
50Compare
Works with
Packages commonly used together with geotypes: ones it builds on, ones built on it, and its own family.