Skip to main content

mapstyler_gdal_adapter 0.1.1 copy "mapstyler_gdal_adapter: ^0.1.1" to clipboard
mapstyler_gdal_adapter: ^0.1.1 copied to clipboard

GDAL/OGR-based geodata adapter — loads vector features from Shapefiles, GeoJSON, GeoPackage and 100+ other formats into StyledFeatureCollection.

example/mapstyler_gdal_adapter_example.dart

import 'package:mapstyler_gdal_adapter/mapstyler_gdal_adapter.dart';

Future<void> main(List<String> args) async {
  if (args.isEmpty) {
    print('Usage: dart run example/mapstyler_gdal_adapter_example.dart <path>');
    return;
  }

  final result = await loadVectorFile(args.first, simplifyToleranceMeters: 5);

  print('Loaded ${result.features.features.length} features.');
  for (final warning in result.warnings) {
    print('Warning: $warning');
  }
}
0
likes
160
points
10
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

GDAL/OGR-based geodata adapter — loads vector features from Shapefiles, GeoJSON, GeoPackage and 100+ other formats into StyledFeatureCollection.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

gdal_dart, mapstyler_style

More

Packages that depend on mapstyler_gdal_adapter