geoxml
2.6.2, released 2 years ago by sunjiao.net
Load, manipulate, and save GPS data in GPX and KML format in Dart.
WASM-ready
What it does
Provides tools to parse, manipulate, and generate GPS data structures using GPX and KML XML formats. Supports reading from strings and streams as well as writing objects back to XML strings.
AI-written summary of version 2.6.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to parse or generate GPX files for waypoints, tracks, and routes
- You need to import or export KML geographic data for earth browsers like Google Earth
Skip it when
- You require full bidirectional fidelity converting between GPX and KML (conversion is lossy)
- You need GPX 1.0 support or schema declaration validation
Strengths
- Supports both GPX and KML read/write operations
- Allows parsing from streams for memory efficiency
- Cross-platform support including mobile, web, and desktop
Weaknesses
- No support for GPX 1.0
- Does not validate schema declarations
- Some Kml elements and attributes are unimplemented
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
import 'package:geoxml/geoxml.dart';
main() async {
var xmlGpx = await GeoXml.fromGpxString('<?xml version="1.0" encoding="UTF-8"?>'
'<gpx version="1.1" creator="dart-gpx library">'
'<wpt lat="-25.7996" lon="-62.8666"><ele>10.0</ele><name>Monte Quemado</name><desc>Argentina</desc></wpt>'
'</gpx>');
print(xmlGpx.wpts);
}Alternatives
Packages that do the same job and could replace geoxml.
Works with
Packages commonly used together with geoxml: ones it builds on, ones built on it, and its own family.
- xmlgeoxml depends on itFull-featured XML and XPath library for DOM parsing, SAX streaming, and fluent building.
- quivergeoxml depends on itA set of utility libraries for Dart containing collections, async tools, and testing helpers.
- geoengineBuilt on geoxmlDart library for geospatial analysis, distance calculations, coordinate conversions and astronomy.