flutter_geokit is a Flutter package that provides tools to handle various geospatial data formats such as GeoJSON, Shapefiles, and GeoPackage. It also supports integration with Flutter's flutter_map for map visualization.
- GeoJSON Support: Read, parse, and convert GeoJSON data.
- Shapefile Support: Read, parse, and convert Shapefiles (.shp, .dbf).
- GeoPackage Support: Read, parse, and convert GeoPackage (.gpkg) files.
- Data Conversion: Convert between GeoJSON, Shapefile, and GeoPackage formats.
- Map Visualization: Integrate with
flutter_mapto visualize geospatial data.
To use this package, add flutter_geokit as a dependency in your pubspec.yaml:
dependencies:
flutter_geokit:
git:
url: https://github.com/algamesh/flutter_geokit.git
ref: mainimport 'package:flutter_geokit/flutter_geokit.dart';
void main() {
final geoJsonHandler = GeoJSONHandler();
geoJsonHandler.parseGeoJSONFile('path/to/geojson/file');
// Visualize on flutter_map
}- Add
flutter_geokitto yourpubspec.yamldependencies. - Run
flutter pub getto install the package.
For full documentation, please visit the GitHub repository.
This project is licensed under the MIT License - see the LICENSE file for details.