An empty tileset has empty bounds at null island

This commit is contained in:
Erica Fischer
2024-12-19 16:24:01 -08:00
parent acffe23b97
commit 7338c4b6b0
3 changed files with 8 additions and 4 deletions
+4
View File
@@ -1711,6 +1711,10 @@ int main(int argc, char **argv) {
}
}
if (st.maxlon < st.minlon) {
st.maxlon = st.minlon = st.maxlat = st.minlat = st.minlon2 = st.maxlon2 = st.minlat2 = st.maxlat2 = 0;
}
if (st.maxlon - st.minlon <= st.maxlon2 - st.minlon2) {
st.minlon2 = st.minlon;
st.maxlon2 = st.maxlon;