Skip to content

Commit

Permalink
rev: handle FeatureCollection shared_ptr creation
Browse files Browse the repository at this point in the history
changes per #522 (comment).
  • Loading branch information
program-- authored and mattw-nws committed Jul 18, 2023
1 parent ca7bc83 commit 65b181d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/geopackage/read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ std::shared_ptr<geojson::FeatureCollection> 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<geojson::FeatureCollection>(fc);
return std::make_shared<geojson::FeatureCollection>(
std::move(features),
std::vector<double>({min_x, min_y, max_x, max_y})
);
}

0 comments on commit 65b181d

Please sign in to comment.