Skip to content

Commit

Permalink
feat!: save modified layer as GeoPackage instead of Shapefile
Browse files Browse the repository at this point in the history
  • Loading branch information
LandscapeLab Office committed Sep 5, 2024
1 parent 08f0b35 commit d97ef55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vector-extractor/NativeLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void NativeLayer::save_override() {
}

void NativeLayer::save_modified_layer(std::string path) {
GDALDriver *out_driver = (GDALDriver *)GDALGetDriverByName("ESRI Shapefile");
GDALDriver *out_driver = (GDALDriver *)GDALGetDriverByName("GPKG");
GDALDataset *out_dataset = out_driver->Create(path.c_str(), 0, 0, 0, GDT_Unknown, nullptr);
OGRLayer *out_layer = out_dataset->CopyLayer(layer, layer->GetName());

Expand Down

0 comments on commit d97ef55

Please sign in to comment.