From e024acc9ed9ab7633cf13bac72b66f2ce5353e99 Mon Sep 17 00:00:00 2001 From: Michael Reichert Date: Thu, 9 Nov 2023 11:54:51 +0100 Subject: [PATCH] Bugfix: respect flipped Y axis for tile indexes --- src/mbtiles_vector_featureset.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mbtiles_vector_featureset.cpp b/src/mbtiles_vector_featureset.cpp index 21df659..04a6e81 100644 --- a/src/mbtiles_vector_featureset.cpp +++ b/src/mbtiles_vector_featureset.cpp @@ -23,8 +23,8 @@ mbtiles_vector_featureset::mbtiles_vector_featureset(std::shared_ptr((extent_.minx() + width / 2) * (tile_count / width)); xmax_ = static_cast((extent_.maxx() + width / 2) * (tile_count / width)); - ymin_ = static_cast(((width / 2) - extent_.miny()) * (tile_count / width)); - ymax_ = static_cast(((width / 2) - extent_.maxy()) * (tile_count / width)); + ymin_ = static_cast(((width / 2) - extent_.maxy()) * (tile_count / width)); + ymax_ = static_cast(((width / 2) - extent_.miny()) * (tile_count / width)); x_ = xmin_; y_ = ymin_; open_tile();