GeoFileImport extension

Reads filePath and inserts features into an existing spatial table.

on

Methods

exportGeoJsonFile({required String filePath, required String table, required String geometryColumn, Iterable<String>? propertyColumns}) → Future<void>

Available on GeoSession, provided by the GeoFileImport extension

Writes one FeatureCollection. The file is replaced.
importGeoJson({required String filePath, required String table, String geometryColumn = 'geometry', int batchSize = 1000, bool skipInvalid = false, GeoParseOptions options = const GeoParseOptions(), void onProgress(GeoImportProgress progress)?}) → Future<GeoImportProgress>

Available on GeoSession, provided by the GeoFileImport extension

geometryColumn defaults to geometry. batchSize rows share one transaction. A cancelled import keeps the batches already committed.