mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 16:35:40 +02:00
An empty tileset has empty bounds at null island
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{ "type": "FeatureCollection", "properties": {
|
||||
"antimeridian_adjusted_bounds": "2147483647.000000,2147483647.000000,-2147483648.000000,-2147483648.000000",
|
||||
"bounds": "2147483647.000000,2147483647.000000,-2147483648.000000,-2147483648.000000",
|
||||
"antimeridian_adjusted_bounds": "0.000000,0.000000,0.000000,0.000000",
|
||||
"bounds": "0.000000,0.000000,0.000000,0.000000",
|
||||
"center": "0.000000,0.000000,0",
|
||||
"description": "tests/feature-filter/out/all.mbtiles",
|
||||
"format": "pbf",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ "type": "FeatureCollection", "properties": {
|
||||
"antimeridian_adjusted_bounds": "2147483647.000000,2147483647.000000,-2147483648.000000,-2147483648.000000",
|
||||
"bounds": "2147483647.000000,2147483647.000000,-2147483648.000000,-2147483648.000000",
|
||||
"antimeridian_adjusted_bounds": "0.000000,0.000000,0.000000,0.000000",
|
||||
"bounds": "0.000000,0.000000,0.000000,0.000000",
|
||||
"center": "-122.104097,37.695438,0",
|
||||
"description": "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
||||
"format": "pbf",
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user