diff --git a/src/geopackage/read.cpp b/src/geopackage/read.cpp index 218d817761..7302a7d3b1 100644 --- a/src/geopackage/read.cpp +++ b/src/geopackage/read.cpp @@ -104,6 +104,8 @@ std::shared_ptr geopackage::read( max_y = bbox[3] > max_y ? bbox[3] : max_y; } - const auto fc = geojson::FeatureCollection(std::move(features), {min_x, min_y, max_x, max_y}); - return std::make_shared(fc); + return std::make_shared( + std::move(features), + std::vector({min_x, min_y, max_x, max_y}) + ); }