From 65b181db7a340c1b79d6864e7d66d72696c2255a Mon Sep 17 00:00:00 2001 From: program-- Date: Tue, 11 Jul 2023 09:06:14 -0700 Subject: [PATCH] rev: handle FeatureCollection `shared_ptr` creation changes per https://github.com/NOAA-OWP/ngen/pull/522#discussion_r1258985474. --- src/geopackage/read.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}) + ); }