mirror of
https://github.com/felt/tippecanoe.git
synced 2026-12-05 06:41:41 +01:00
With -pn, union spindle strips in the same pass that cleans each polygon
With consistent snapping, each polygon was cleaned with the layer's hot pixels, but then its spindle strips (if it had any) were unioned with it in a separate pass, which snapped the whole polygon to tile coordinates a second time. Snapping already-snapped geometry doesn't necessarily leave it the same, and the neighbors it shares borders with weren't snapped again to match. In Dane County tile 12/1027/1502, a narrow water channel's strips were added where it crossed the edge of the tile's buffer, and that second pass bent its border with the block next to it, far from the strips, through the hot pixel at (11, 249), so their edges crossed and overlapped. So include the rounded strips of every polygon in the layer's hot pixels, and union each polygon with its strips (with the non-zero fill rule, as before) in the same wagyu pass that cleans it, so that every polygon is snapped exactly once, consistently with its neighbors, including where strips meet other polygons. For Dane County Census blocks at -D8 -d8 -pt -pn -zg, this reduces the number of polygons whose overlaps have to be removed afterwards from 2732 to 2482, and the number that are still changing after 4 rounds of overlap removal from 156 to 14, with still no points covered by more than one polygon at z8 to z12. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CQ6vQUJtmGZnqz7RmVYQaJ
This commit is contained in:
+9
-3
@@ -59,9 +59,15 @@
|
||||
overlapping area is removed at a higher resolution than the tile, so that
|
||||
the polygon isn't snapped to tile coordinates a second time, which could
|
||||
collapse parts of it that the first snapping had left, and leave holes.
|
||||
Where spindle strips made two polygons' edges cross, removing the overlap
|
||||
has to snap the crossing to tile coordinates, which can leave a smaller
|
||||
overlap, so this is repeated until no overlaps are left (at most 4 times). For Dane County Census blocks at -D8 -d8 -pt -pn, this
|
||||
Where two polygons' edges still cross, removing the overlap has to snap
|
||||
the crossing to tile coordinates, which can leave a smaller overlap, so
|
||||
this is repeated until no overlaps are left (at most 4 times).
|
||||
* In this mode, the spindle strips are unioned with each polygon in the same
|
||||
pass that cleans it, and their hot pixels are included in the layer's, so
|
||||
every polygon is snapped only once. Unioning the strips afterwards snapped
|
||||
the whole polygon a second time, which could bend its borders differently
|
||||
from those of the neighbors it shares them with, which weren't snapped
|
||||
again, so that their edges crossed. For Dane County Census blocks at -D8 -d8 -pt -pn, this
|
||||
reduces the gaps between blocks at z9 and z10 from 55 and 155 pixels to 13
|
||||
and 23, and the overlaps from 113 and 175 to 56 and 59, and takes about 7%
|
||||
longer for Natural Earth countries at -z8 -pn.
|
||||
|
||||
+2
-2
@@ -664,9 +664,9 @@ hot_pixel_list layer_hot_pixels(std::vector<drawvec const *> const &geoms) {
|
||||
return out;
|
||||
}
|
||||
|
||||
drawvec clean_polygon_with_hot_pixels(drawvec const &geom, hot_pixel_list const &hot, bool *ok) {
|
||||
drawvec clean_polygon_with_hot_pixels(drawvec const &geom, drawvec const &strips, hot_pixel_list const &hot, bool *ok) {
|
||||
drawvec out;
|
||||
*ok = wagyu_union(geom, NULL, 1, out, false, &hot);
|
||||
*ok = wagyu_union(geom, strips.size() > 0 ? &strips : NULL, 1, out, false, &hot);
|
||||
return out;
|
||||
}
|
||||
|
||||
|
||||
+5
-2
@@ -54,8 +54,11 @@ drawvec union_polygon_strips(drawvec const &geom, drawvec const &strips, hot_pix
|
||||
hot_pixel_list layer_hot_pixels(std::vector<drawvec const *> const &geoms);
|
||||
|
||||
// Clean a polygon (in tile coordinates), snapping its edges to the hot pixels
|
||||
// from layer_hot_pixels() as well as its own. Sets *ok to false if that fails.
|
||||
drawvec clean_polygon_with_hot_pixels(drawvec const &geom, hot_pixel_list const &hot, bool *ok);
|
||||
// from layer_hot_pixels() as well as its own, and union it with its spindle
|
||||
// strips (from thin_polygon_strips(), which may be empty) in the same pass,
|
||||
// so that it is only snapped once. The strips should have been included in
|
||||
// layer_hot_pixels(). Sets *ok to false if that fails.
|
||||
drawvec clean_polygon_with_hot_pixels(drawvec const &geom, drawvec const &strips, hot_pixel_list const &hot, bool *ok);
|
||||
|
||||
// Polygons (in tile coordinates, in order of priority) that have been cleaned
|
||||
// with consistent snapping should tile without crossing, but where rounding
|
||||
|
||||
+31
-31
File diff suppressed because one or more lines are too long
@@ -15,13 +15,13 @@
|
||||
}, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 0, "x": 0, "y": 0 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "in", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "name": "D" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.316406, 39.909736 ], [ -99.316406, 39.842286 ], [ -100.019531, 39.842286 ], [ -100.019531, 39.909736 ], [ -99.316406, 39.909736 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "name": "D" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.316406, 39.909736 ], [ -99.316406, 39.842286 ], [ -100.019531, 39.842286 ], [ -100.019531, 39.909736 ], [ -99.492188, 39.909736 ], [ -99.316406, 39.909736 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "R" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -100.019531, 39.842286 ], [ -99.492188, 39.774769 ], [ -99.316406, 39.774769 ], [ -99.316406, 39.707187 ], [ -100.019531, 39.707187 ], [ -100.019531, 39.774769 ], [ -100.019531, 39.842286 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "name": "R" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -100.019531, 39.842286 ], [ -99.492188, 39.774769 ], [ -99.316406, 39.774769 ], [ -99.316406, 39.707187 ], [ -99.492188, 39.707187 ], [ -100.019531, 39.707187 ], [ -100.019531, 39.774769 ], [ -100.019531, 39.842286 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "A" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.492188, 39.977120 ], [ -100.019531, 39.977120 ], [ -100.019531, 40.044438 ], [ -99.931641, 40.044438 ], [ -99.755859, 40.044438 ], [ -99.492188, 39.977120 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "name": "A" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.492188, 39.977120 ], [ -99.931641, 39.977120 ], [ -100.019531, 39.977120 ], [ -100.019531, 40.044438 ], [ -99.931641, 40.044438 ], [ -99.755859, 40.044438 ], [ -99.492188, 39.977120 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "B" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -100.019531, 39.977120 ], [ -99.492188, 39.977120 ], [ -99.316406, 39.977120 ], [ -99.316406, 39.909736 ], [ -100.019531, 39.909736 ], [ -100.019531, 39.977120 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "name": "B" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.492188, 39.977120 ], [ -99.316406, 39.977120 ], [ -99.316406, 39.909736 ], [ -100.019531, 39.909736 ], [ -100.019531, 39.977120 ], [ -99.931641, 39.977120 ], [ -99.492188, 39.977120 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -45,7 +45,7 @@
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "D" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.294434, 39.892880 ], [ -99.294434, 39.808536 ], [ -99.382324, 39.842286 ], [ -99.558105, 39.808536 ], [ -99.645996, 39.842286 ], [ -99.821777, 39.808536 ], [ -99.997559, 39.825413 ], [ -99.997559, 39.892880 ], [ -99.294434, 39.892880 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "R" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.448242, 39.757880 ], [ -99.294434, 39.724089 ], [ -99.294434, 39.690281 ], [ -99.448242, 39.724089 ], [ -99.558105, 39.690281 ], [ -99.711914, 39.724089 ], [ -99.887695, 39.690281 ], [ -99.997559, 39.724089 ], [ -99.997559, 39.757880 ], [ -99.887695, 39.724089 ], [ -99.711914, 39.757880 ], [ -99.558105, 39.724089 ], [ -99.448242, 39.757880 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "name": "R" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.448242, 39.757880 ], [ -99.294434, 39.724089 ], [ -99.294434, 39.707187 ], [ -99.294434, 39.690281 ], [ -99.448242, 39.724089 ], [ -99.558105, 39.690281 ], [ -99.711914, 39.724089 ], [ -99.887695, 39.690281 ], [ -99.997559, 39.724089 ], [ -99.997559, 39.740986 ], [ -99.997559, 39.757880 ], [ -99.887695, 39.724089 ], [ -99.711914, 39.757880 ], [ -99.558105, 39.724089 ], [ -99.448242, 39.757880 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "A" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.294434, 40.078071 ], [ -99.294434, 40.010787 ], [ -99.492188, 39.977120 ], [ -99.645996, 40.010787 ], [ -99.755859, 39.977120 ], [ -99.821777, 39.993956 ], [ -99.865723, 39.993956 ], [ -99.909668, 40.010787 ], [ -99.931641, 40.010787 ], [ -99.997559, 39.993956 ], [ -99.997559, 40.078071 ], [ -99.294434, 40.078071 ] ] ] } }
|
||||
,
|
||||
@@ -55,11 +55,11 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 3, "x": 1, "y": 3 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "in", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "name": "C" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -99.656982, 39.833850 ], [ -99.547119, 39.800096 ], [ -99.382324, 39.833850 ], [ -99.294434, 39.816975 ], [ -99.294434, 39.808536 ], [ -99.382324, 39.825413 ], [ -99.547119, 39.791655 ], [ -99.656982, 39.825413 ], [ -99.722900, 39.825413 ], [ -99.821777, 39.791655 ], [ -99.821777, 39.800096 ], [ -99.722900, 39.833850 ], [ -99.656982, 39.833850 ] ] ], [ [ [ -99.920654, 39.833850 ], [ -99.821777, 39.800096 ], [ -99.920654, 39.825413 ], [ -99.997559, 39.833850 ], [ -99.920654, 39.833850 ] ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "name": "C" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -99.382324, 39.833850 ], [ -99.294434, 39.816975 ], [ -99.294434, 39.808536 ], [ -99.382324, 39.825413 ], [ -99.547119, 39.791655 ], [ -99.656982, 39.825413 ], [ -99.722900, 39.825413 ], [ -99.821777, 39.791655 ], [ -99.821777, 39.800096 ], [ -99.722900, 39.833850 ], [ -99.656982, 39.833850 ], [ -99.547119, 39.800096 ], [ -99.382324, 39.833850 ] ] ], [ [ [ -99.920654, 39.833850 ], [ -99.821777, 39.800096 ], [ -99.920654, 39.825413 ], [ -99.997559, 39.833850 ], [ -99.920654, 39.833850 ] ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "D" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.294434, 39.892880 ], [ -99.294434, 39.816975 ], [ -99.382324, 39.833850 ], [ -99.547119, 39.800096 ], [ -99.656982, 39.833850 ], [ -99.722900, 39.833850 ], [ -99.821777, 39.800096 ], [ -99.920654, 39.833850 ], [ -99.997559, 39.833850 ], [ -99.997559, 39.892880 ], [ -99.294434, 39.892880 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "R" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.448242, 39.757880 ], [ -99.294434, 39.724089 ], [ -99.294434, 39.707187 ], [ -99.448242, 39.740986 ], [ -99.558105, 39.707187 ], [ -99.624023, 39.707187 ], [ -99.722900, 39.740986 ], [ -99.887695, 39.707187 ], [ -99.997559, 39.732538 ], [ -99.997559, 39.749434 ], [ -99.887695, 39.724089 ], [ -99.722900, 39.757880 ], [ -99.624023, 39.724089 ], [ -99.558105, 39.724089 ], [ -99.448242, 39.757880 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "name": "R" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.448242, 39.757880 ], [ -99.294434, 39.724089 ], [ -99.294434, 39.715638 ], [ -99.294434, 39.707187 ], [ -99.448242, 39.740986 ], [ -99.558105, 39.707187 ], [ -99.624023, 39.707187 ], [ -99.722900, 39.740986 ], [ -99.887695, 39.707187 ], [ -99.997559, 39.732538 ], [ -99.997559, 39.740986 ], [ -99.997559, 39.749434 ], [ -99.887695, 39.724089 ], [ -99.722900, 39.757880 ], [ -99.624023, 39.724089 ], [ -99.558105, 39.724089 ], [ -99.448242, 39.757880 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "A" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.294434, 40.069665 ], [ -99.294434, 40.002372 ], [ -99.316406, 40.019201 ], [ -99.382324, 40.010787 ], [ -99.481201, 39.985538 ], [ -99.645996, 40.019201 ], [ -99.744873, 39.985538 ], [ -99.755859, 39.985538 ], [ -99.810791, 39.985538 ], [ -99.821777, 39.985538 ], [ -99.920654, 40.019201 ], [ -99.997559, 40.002372 ], [ -99.997559, 40.069665 ], [ -99.294434, 40.069665 ] ] ] } }
|
||||
,
|
||||
@@ -73,7 +73,7 @@
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "D" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.294434, 39.892880 ], [ -99.294434, 39.812756 ], [ -99.321899, 39.825413 ], [ -99.354858, 39.825413 ], [ -99.382324, 39.838068 ], [ -99.420776, 39.825413 ], [ -99.453735, 39.825413 ], [ -99.486694, 39.808536 ], [ -99.519653, 39.812756 ], [ -99.547119, 39.804316 ], [ -99.585571, 39.816975 ], [ -99.618530, 39.821194 ], [ -99.651489, 39.838068 ], [ -99.684448, 39.829632 ], [ -99.717407, 39.833850 ], [ -99.755859, 39.816975 ], [ -99.783325, 39.816975 ], [ -99.816284, 39.804316 ], [ -99.854736, 39.812756 ], [ -99.882202, 39.812756 ], [ -99.920654, 39.829632 ], [ -99.948120, 39.829632 ], [ -99.981079, 39.838068 ], [ -99.997559, 39.833850 ], [ -99.997559, 39.892880 ], [ -99.294434, 39.892880 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "R" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.717407, 39.753657 ], [ -99.684448, 39.740986 ], [ -99.651489, 39.740986 ], [ -99.618530, 39.719863 ], [ -99.585571, 39.724089 ], [ -99.552612, 39.719863 ], [ -99.519653, 39.732538 ], [ -99.492188, 39.736762 ], [ -99.448242, 39.749434 ], [ -99.420776, 39.745210 ], [ -99.382324, 39.745210 ], [ -99.354858, 39.728313 ], [ -99.321899, 39.728313 ], [ -99.294434, 39.719863 ], [ -99.294434, 39.711413 ], [ -99.321899, 39.719863 ], [ -99.354858, 39.719863 ], [ -99.382324, 39.736762 ], [ -99.420776, 39.736762 ], [ -99.448242, 39.740986 ], [ -99.492188, 39.728313 ], [ -99.519653, 39.728313 ], [ -99.552612, 39.711413 ], [ -99.585571, 39.715638 ], [ -99.618530, 39.715638 ], [ -99.651489, 39.732538 ], [ -99.684448, 39.732538 ], [ -99.717407, 39.745210 ], [ -99.755859, 39.732538 ], [ -99.783325, 39.736762 ], [ -99.816284, 39.715638 ], [ -99.854736, 39.719863 ], [ -99.882202, 39.707187 ], [ -99.920654, 39.724089 ], [ -99.953613, 39.724089 ], [ -99.981079, 39.740986 ], [ -99.997559, 39.736762 ], [ -99.997559, 39.745210 ], [ -99.981079, 39.749434 ], [ -99.953613, 39.732538 ], [ -99.920654, 39.732538 ], [ -99.882202, 39.715638 ], [ -99.854736, 39.724089 ], [ -99.816284, 39.724089 ], [ -99.783325, 39.745210 ], [ -99.755859, 39.740986 ], [ -99.717407, 39.753657 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "name": "R" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.717407, 39.745210 ], [ -99.755859, 39.732538 ], [ -99.783325, 39.736762 ], [ -99.816284, 39.715638 ], [ -99.854736, 39.719863 ], [ -99.882202, 39.707187 ], [ -99.920654, 39.724089 ], [ -99.953613, 39.724089 ], [ -99.981079, 39.740986 ], [ -99.997559, 39.736762 ], [ -99.997559, 39.740986 ], [ -99.997559, 39.745210 ], [ -99.981079, 39.749434 ], [ -99.953613, 39.732538 ], [ -99.920654, 39.732538 ], [ -99.882202, 39.715638 ], [ -99.854736, 39.724089 ], [ -99.816284, 39.724089 ], [ -99.783325, 39.745210 ], [ -99.755859, 39.740986 ], [ -99.717407, 39.753657 ], [ -99.684448, 39.740986 ], [ -99.651489, 39.740986 ], [ -99.618530, 39.719863 ], [ -99.585571, 39.724089 ], [ -99.552612, 39.719863 ], [ -99.519653, 39.732538 ], [ -99.492188, 39.736762 ], [ -99.448242, 39.749434 ], [ -99.420776, 39.745210 ], [ -99.382324, 39.745210 ], [ -99.354858, 39.728313 ], [ -99.321899, 39.728313 ], [ -99.294434, 39.719863 ], [ -99.294434, 39.715638 ], [ -99.294434, 39.711413 ], [ -99.321899, 39.719863 ], [ -99.354858, 39.719863 ], [ -99.382324, 39.736762 ], [ -99.420776, 39.736762 ], [ -99.448242, 39.740986 ], [ -99.492188, 39.728313 ], [ -99.519653, 39.728313 ], [ -99.552612, 39.711413 ], [ -99.585571, 39.715638 ], [ -99.618530, 39.715638 ], [ -99.651489, 39.732538 ], [ -99.684448, 39.732538 ], [ -99.717407, 39.745210 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "P" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -99.750366, 39.985538 ], [ -99.717407, 40.002372 ], [ -99.684448, 40.002372 ], [ -99.717407, 39.998164 ], [ -99.750366, 39.985538 ] ] ], [ [ [ -99.926147, 40.014994 ], [ -99.920654, 40.019201 ], [ -99.882202, 40.002372 ], [ -99.926147, 40.014994 ] ] ] ] } }
|
||||
,
|
||||
@@ -89,7 +89,7 @@
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "D" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.297180, 39.892880 ], [ -99.297180, 39.814865 ], [ -99.319153, 39.827522 ], [ -99.354858, 39.827522 ], [ -99.385071, 39.838068 ], [ -99.420776, 39.825413 ], [ -99.453735, 39.825413 ], [ -99.483948, 39.808536 ], [ -99.519653, 39.810646 ], [ -99.549866, 39.804316 ], [ -99.560852, 39.806426 ], [ -99.582825, 39.819085 ], [ -99.618530, 39.821194 ], [ -99.654236, 39.835959 ], [ -99.684448, 39.829632 ], [ -99.717407, 39.833850 ], [ -99.753113, 39.816975 ], [ -99.783325, 39.816975 ], [ -99.819031, 39.802206 ], [ -99.854736, 39.812756 ], [ -99.882202, 39.812756 ], [ -99.917908, 39.829632 ], [ -99.948120, 39.827522 ], [ -99.981079, 39.838068 ], [ -100.000305, 39.831741 ], [ -100.000305, 39.892880 ], [ -99.297180, 39.892880 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "R" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.448242, 39.749434 ], [ -99.420776, 39.740986 ], [ -99.385071, 39.743098 ], [ -99.354858, 39.728313 ], [ -99.319153, 39.726201 ], [ -99.297180, 39.717751 ], [ -99.297180, 39.713525 ], [ -99.319153, 39.721976 ], [ -99.354858, 39.724089 ], [ -99.385071, 39.738874 ], [ -99.420776, 39.736762 ], [ -99.448242, 39.745210 ], [ -99.489441, 39.728313 ], [ -99.519653, 39.728313 ], [ -99.555359, 39.713525 ], [ -99.582825, 39.719863 ], [ -99.618530, 39.715638 ], [ -99.654236, 39.732538 ], [ -99.684448, 39.732538 ], [ -99.717407, 39.745210 ], [ -99.753113, 39.734650 ], [ -99.783325, 39.736762 ], [ -99.819031, 39.719863 ], [ -99.854736, 39.719863 ], [ -99.882202, 39.711413 ], [ -99.917908, 39.724089 ], [ -99.953613, 39.726201 ], [ -99.981079, 39.740986 ], [ -100.000305, 39.740986 ], [ -100.000305, 39.745210 ], [ -99.981079, 39.745210 ], [ -99.953613, 39.730426 ], [ -99.917908, 39.728313 ], [ -99.882202, 39.715638 ], [ -99.854736, 39.724089 ], [ -99.819031, 39.724089 ], [ -99.783325, 39.740986 ], [ -99.753113, 39.738874 ], [ -99.717407, 39.749434 ], [ -99.684448, 39.736762 ], [ -99.654236, 39.736762 ], [ -99.618530, 39.719863 ], [ -99.582825, 39.724089 ], [ -99.555359, 39.717751 ], [ -99.519653, 39.732538 ], [ -99.489441, 39.732538 ], [ -99.448242, 39.749434 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "name": "R" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.448242, 39.749434 ], [ -99.420776, 39.740986 ], [ -99.385071, 39.743098 ], [ -99.354858, 39.728313 ], [ -99.319153, 39.726201 ], [ -99.297180, 39.717751 ], [ -99.297180, 39.715638 ], [ -99.297180, 39.713525 ], [ -99.319153, 39.721976 ], [ -99.354858, 39.724089 ], [ -99.385071, 39.738874 ], [ -99.420776, 39.736762 ], [ -99.448242, 39.745210 ], [ -99.489441, 39.728313 ], [ -99.519653, 39.728313 ], [ -99.555359, 39.713525 ], [ -99.582825, 39.719863 ], [ -99.618530, 39.715638 ], [ -99.654236, 39.732538 ], [ -99.684448, 39.732538 ], [ -99.717407, 39.745210 ], [ -99.753113, 39.734650 ], [ -99.783325, 39.736762 ], [ -99.819031, 39.719863 ], [ -99.854736, 39.719863 ], [ -99.882202, 39.711413 ], [ -99.917908, 39.724089 ], [ -99.953613, 39.726201 ], [ -99.981079, 39.740986 ], [ -100.000305, 39.740986 ], [ -100.000305, 39.743098 ], [ -100.000305, 39.745210 ], [ -99.981079, 39.745210 ], [ -99.953613, 39.730426 ], [ -99.917908, 39.728313 ], [ -99.882202, 39.715638 ], [ -99.854736, 39.724089 ], [ -99.819031, 39.724089 ], [ -99.783325, 39.740986 ], [ -99.753113, 39.738874 ], [ -99.717407, 39.749434 ], [ -99.684448, 39.736762 ], [ -99.654236, 39.736762 ], [ -99.618530, 39.719863 ], [ -99.582825, 39.724089 ], [ -99.555359, 39.717751 ], [ -99.519653, 39.732538 ], [ -99.489441, 39.732538 ], [ -99.448242, 39.749434 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "P" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -99.717407, 40.000268 ], [ -99.747620, 39.985538 ], [ -99.753113, 39.985538 ], [ -99.717407, 40.000268 ] ] ], [ [ [ -99.783325, 39.989747 ], [ -99.813538, 39.985538 ], [ -99.819031, 39.987643 ], [ -99.783325, 39.989747 ] ] ], [ [ [ -99.851990, 40.002372 ], [ -99.846497, 40.002372 ], [ -99.824524, 39.989747 ], [ -99.851990, 40.002372 ] ] ], [ [ [ -99.582825, 40.010787 ], [ -99.555359, 39.996060 ], [ -99.519653, 39.993956 ], [ -99.555359, 39.993956 ], [ -99.582825, 40.010787 ] ] ] ] } }
|
||||
,
|
||||
@@ -105,7 +105,7 @@
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "D" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.295807, 39.891826 ], [ -99.295807, 39.813811 ], [ -99.320526, 39.827522 ], [ -99.326019, 39.828577 ], [ -99.354858, 39.827522 ], [ -99.383698, 39.838068 ], [ -99.396057, 39.835959 ], [ -99.419403, 39.826468 ], [ -99.442749, 39.826468 ], [ -99.455109, 39.825413 ], [ -99.483948, 39.809591 ], [ -99.496307, 39.808536 ], [ -99.519653, 39.811701 ], [ -99.548492, 39.804316 ], [ -99.560852, 39.806426 ], [ -99.584198, 39.819085 ], [ -99.618530, 39.820139 ], [ -99.641876, 39.832796 ], [ -99.654236, 39.835959 ], [ -99.683075, 39.829632 ], [ -99.706421, 39.833850 ], [ -99.718781, 39.833850 ], [ -99.753113, 39.815920 ], [ -99.783325, 39.815920 ], [ -99.806671, 39.806426 ], [ -99.817657, 39.803261 ], [ -99.853363, 39.812756 ], [ -99.882202, 39.811701 ], [ -99.917908, 39.829632 ], [ -99.923401, 39.830686 ], [ -99.946747, 39.828577 ], [ -99.982452, 39.838068 ], [ -100.000305, 39.831741 ], [ -100.000305, 39.891826 ], [ -99.295807, 39.891826 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "R" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.718781, 39.748378 ], [ -99.706421, 39.746266 ], [ -99.683075, 39.735706 ], [ -99.654236, 39.735706 ], [ -99.618530, 39.718807 ], [ -99.607544, 39.718807 ], [ -99.584198, 39.721976 ], [ -99.553986, 39.715638 ], [ -99.542999, 39.718807 ], [ -99.519653, 39.731482 ], [ -99.489441, 39.731482 ], [ -99.478455, 39.735706 ], [ -99.460602, 39.745210 ], [ -99.448242, 39.747322 ], [ -99.419403, 39.740986 ], [ -99.396057, 39.744154 ], [ -99.383698, 39.743098 ], [ -99.354858, 39.727257 ], [ -99.343872, 39.725145 ], [ -99.320526, 39.726201 ], [ -99.295807, 39.715638 ], [ -99.295807, 39.713525 ], [ -99.320526, 39.724089 ], [ -99.343872, 39.723032 ], [ -99.354858, 39.725145 ], [ -99.383698, 39.740986 ], [ -99.396057, 39.742042 ], [ -99.419403, 39.738874 ], [ -99.448242, 39.746266 ], [ -99.460602, 39.743098 ], [ -99.478455, 39.733594 ], [ -99.489441, 39.729370 ], [ -99.519653, 39.729370 ], [ -99.542999, 39.717751 ], [ -99.553986, 39.713525 ], [ -99.584198, 39.719863 ], [ -99.607544, 39.716694 ], [ -99.618530, 39.716694 ], [ -99.654236, 39.734650 ], [ -99.683075, 39.733594 ], [ -99.706421, 39.744154 ], [ -99.718781, 39.747322 ], [ -99.724274, 39.746266 ], [ -99.753113, 39.736762 ], [ -99.783325, 39.737818 ], [ -99.817657, 39.719863 ], [ -99.853363, 39.720920 ], [ -99.876709, 39.712469 ], [ -99.882202, 39.712469 ], [ -99.894562, 39.715638 ], [ -99.917908, 39.726201 ], [ -99.941254, 39.725145 ], [ -99.953613, 39.727257 ], [ -99.982452, 39.743098 ], [ -99.986572, 39.744154 ], [ -99.990692, 39.743098 ], [ -100.000305, 39.742042 ], [ -100.000305, 39.743098 ], [ -100.000305, 39.744154 ], [ -99.990692, 39.744154 ], [ -99.987946, 39.745210 ], [ -99.982452, 39.745210 ], [ -99.953613, 39.729370 ], [ -99.941254, 39.727257 ], [ -99.917908, 39.727257 ], [ -99.894562, 39.716694 ], [ -99.882202, 39.714582 ], [ -99.876709, 39.714582 ], [ -99.853363, 39.723032 ], [ -99.817657, 39.721976 ], [ -99.783325, 39.739930 ], [ -99.753113, 39.738874 ], [ -99.724274, 39.748378 ], [ -99.718781, 39.748378 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "name": "R" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -99.724274, 39.748378 ], [ -99.718781, 39.748378 ], [ -99.706421, 39.746266 ], [ -99.683075, 39.735706 ], [ -99.654236, 39.735706 ], [ -99.618530, 39.718807 ], [ -99.607544, 39.718807 ], [ -99.584198, 39.721976 ], [ -99.553986, 39.715638 ], [ -99.542999, 39.718807 ], [ -99.519653, 39.731482 ], [ -99.489441, 39.731482 ], [ -99.478455, 39.735706 ], [ -99.460602, 39.745210 ], [ -99.448242, 39.747322 ], [ -99.419403, 39.740986 ], [ -99.396057, 39.744154 ], [ -99.383698, 39.743098 ], [ -99.354858, 39.727257 ], [ -99.343872, 39.725145 ], [ -99.320526, 39.726201 ], [ -99.295807, 39.715638 ], [ -99.295807, 39.714582 ], [ -99.295807, 39.713525 ], [ -99.320526, 39.724089 ], [ -99.343872, 39.723032 ], [ -99.354858, 39.725145 ], [ -99.383698, 39.740986 ], [ -99.396057, 39.742042 ], [ -99.419403, 39.738874 ], [ -99.448242, 39.746266 ], [ -99.460602, 39.743098 ], [ -99.478455, 39.733594 ], [ -99.489441, 39.729370 ], [ -99.519653, 39.729370 ], [ -99.542999, 39.717751 ], [ -99.553986, 39.713525 ], [ -99.584198, 39.719863 ], [ -99.607544, 39.716694 ], [ -99.618530, 39.716694 ], [ -99.654236, 39.734650 ], [ -99.683075, 39.733594 ], [ -99.706421, 39.744154 ], [ -99.718781, 39.747322 ], [ -99.724274, 39.746266 ], [ -99.753113, 39.736762 ], [ -99.783325, 39.737818 ], [ -99.817657, 39.719863 ], [ -99.853363, 39.720920 ], [ -99.876709, 39.712469 ], [ -99.882202, 39.712469 ], [ -99.894562, 39.715638 ], [ -99.917908, 39.726201 ], [ -99.941254, 39.725145 ], [ -99.953613, 39.727257 ], [ -99.982452, 39.743098 ], [ -99.986572, 39.744154 ], [ -99.987946, 39.744154 ], [ -99.990692, 39.744154 ], [ -99.990692, 39.745210 ], [ -99.987946, 39.745210 ], [ -99.986572, 39.745210 ], [ -99.982452, 39.745210 ], [ -99.953613, 39.729370 ], [ -99.941254, 39.727257 ], [ -99.917908, 39.727257 ], [ -99.894562, 39.716694 ], [ -99.882202, 39.714582 ], [ -99.876709, 39.714582 ], [ -99.853363, 39.723032 ], [ -99.817657, 39.721976 ], [ -99.783325, 39.739930 ], [ -99.753113, 39.738874 ], [ -99.724274, 39.748378 ] ] ], [ [ [ -99.990692, 39.744154 ], [ -100.000305, 39.742042 ], [ -100.000305, 39.743098 ], [ -100.000305, 39.744154 ], [ -99.990692, 39.744154 ] ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "P" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -99.783325, 39.990799 ], [ -99.754486, 39.984486 ], [ -99.759979, 39.984486 ], [ -99.783325, 39.990799 ] ] ], [ [ [ -99.396057, 40.006580 ], [ -99.419403, 39.992904 ], [ -99.455109, 39.992904 ], [ -99.419403, 39.993956 ], [ -99.396057, 40.006580 ] ] ], [ [ [ -99.842377, 39.999216 ], [ -99.820404, 39.987643 ], [ -99.824524, 39.988695 ], [ -99.842377, 39.999216 ] ] ], [ [ [ -99.905548, 40.013943 ], [ -99.882202, 40.004476 ], [ -99.858856, 40.004476 ], [ -99.882202, 40.003424 ], [ -99.905548, 40.013943 ] ] ], [ [ [ -99.648743, 40.017098 ], [ -99.618530, 40.008683 ], [ -99.648743, 40.016046 ], [ -99.659729, 40.013943 ], [ -99.648743, 40.017098 ] ] ], [ [ [ -99.308167, 40.012891 ], [ -99.320526, 40.016046 ], [ -99.331512, 40.014994 ], [ -99.320526, 40.017098 ], [ -99.308167, 40.012891 ] ] ], [ [ [ -99.308167, 40.012891 ], [ -99.295807, 40.006580 ], [ -99.295807, 40.005528 ], [ -99.308167, 40.012891 ] ] ] ] } }
|
||||
,
|
||||
@@ -117,11 +117,11 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 28, "y": 48 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "in", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "name": "C" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -99.384384, 39.838068 ], [ -99.378204, 39.837014 ], [ -99.354858, 39.827522 ], [ -99.349365, 39.826468 ], [ -99.326019, 39.828577 ], [ -99.319839, 39.827522 ], [ -99.313660, 39.824886 ], [ -99.296494, 39.813811 ], [ -99.296494, 39.813283 ], [ -99.313660, 39.824358 ], [ -99.319839, 39.826995 ], [ -99.326019, 39.828050 ], [ -99.349365, 39.825940 ], [ -99.354858, 39.826995 ], [ -99.378204, 39.836486 ], [ -99.384384, 39.837541 ], [ -99.389877, 39.837014 ], [ -99.396057, 39.835432 ], [ -99.413910, 39.827522 ], [ -99.419403, 39.825413 ], [ -99.425583, 39.824886 ], [ -99.442749, 39.826468 ], [ -99.448929, 39.825940 ], [ -99.454422, 39.824886 ], [ -99.460602, 39.822249 ], [ -99.478455, 39.811173 ], [ -99.483948, 39.808536 ], [ -99.490128, 39.807481 ], [ -99.495621, 39.807481 ], [ -99.513474, 39.810646 ], [ -99.518967, 39.811173 ], [ -99.525146, 39.810118 ], [ -99.542999, 39.804316 ], [ -99.548492, 39.803789 ], [ -99.554672, 39.804316 ], [ -99.560165, 39.805899 ], [ -99.583511, 39.818030 ], [ -99.589691, 39.819612 ], [ -99.613037, 39.818557 ], [ -99.619217, 39.820139 ], [ -99.624710, 39.822249 ], [ -99.642563, 39.832268 ], [ -99.648056, 39.834377 ], [ -99.654236, 39.835432 ], [ -99.659729, 39.835432 ], [ -99.683075, 39.829104 ], [ -99.689255, 39.829104 ], [ -99.707108, 39.832796 ], [ -99.712601, 39.833323 ], [ -99.718781, 39.832796 ], [ -99.724274, 39.830686 ], [ -99.747620, 39.817502 ], [ -99.753799, 39.815393 ], [ -99.759293, 39.814865 ], [ -99.777145, 39.816448 ], [ -99.783325, 39.815920 ], [ -99.788818, 39.814338 ], [ -99.806671, 39.805371 ], [ -99.812164, 39.803261 ], [ -99.818344, 39.802734 ], [ -99.823837, 39.803261 ], [ -99.841690, 39.810118 ], [ -99.853363, 39.812756 ], [ -99.876709, 39.810646 ], [ -99.882889, 39.811173 ], [ -99.888382, 39.813283 ], [ -99.906235, 39.823831 ], [ -99.917908, 39.829104 ], [ -99.924088, 39.829632 ], [ -99.947433, 39.827522 ], [ -99.959106, 39.830159 ], [ -99.976273, 39.836486 ], [ -99.982452, 39.837014 ], [ -99.982452, 39.837541 ], [ -99.976273, 39.837014 ], [ -99.959106, 39.830686 ], [ -99.947433, 39.828050 ], [ -99.924088, 39.830159 ], [ -99.917908, 39.829632 ], [ -99.906235, 39.824358 ], [ -99.888382, 39.813811 ], [ -99.882889, 39.811701 ], [ -99.876709, 39.811173 ], [ -99.853363, 39.813283 ], [ -99.841690, 39.810646 ], [ -99.823837, 39.803789 ], [ -99.818344, 39.803261 ], [ -99.812164, 39.803789 ], [ -99.806671, 39.805899 ], [ -99.788818, 39.814865 ], [ -99.783325, 39.816448 ], [ -99.777145, 39.816975 ], [ -99.759293, 39.815393 ], [ -99.753799, 39.815920 ], [ -99.747620, 39.818030 ], [ -99.724274, 39.831214 ], [ -99.718781, 39.833323 ], [ -99.712601, 39.833850 ], [ -99.707108, 39.833323 ], [ -99.689255, 39.829632 ], [ -99.683075, 39.829632 ], [ -99.659729, 39.835959 ], [ -99.654236, 39.835959 ], [ -99.648056, 39.834905 ], [ -99.642563, 39.832796 ], [ -99.624710, 39.822776 ], [ -99.619217, 39.820667 ], [ -99.613037, 39.819085 ], [ -99.589691, 39.820139 ], [ -99.583511, 39.818557 ], [ -99.560165, 39.806426 ], [ -99.554672, 39.804844 ], [ -99.548492, 39.804316 ], [ -99.542999, 39.804844 ], [ -99.525146, 39.810646 ], [ -99.518967, 39.811701 ], [ -99.513474, 39.811173 ], [ -99.495621, 39.808009 ], [ -99.490128, 39.808009 ], [ -99.483948, 39.809064 ], [ -99.478455, 39.811701 ], [ -99.460602, 39.822776 ], [ -99.454422, 39.825413 ], [ -99.448929, 39.826468 ], [ -99.442749, 39.826995 ], [ -99.425583, 39.825413 ], [ -99.419403, 39.825940 ], [ -99.413910, 39.828050 ], [ -99.396057, 39.835959 ], [ -99.389877, 39.837541 ], [ -99.384384, 39.838068 ] ] ], [ [ [ -99.982452, 39.837541 ], [ -99.987946, 39.836486 ], [ -100.000305, 39.831741 ], [ -99.987946, 39.837014 ], [ -99.982452, 39.837541 ] ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "name": "C" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -99.976273, 39.836486 ], [ -99.982452, 39.837014 ], [ -99.982452, 39.837541 ], [ -99.976273, 39.837014 ], [ -99.959106, 39.830686 ], [ -99.947433, 39.828050 ], [ -99.924088, 39.830159 ], [ -99.917908, 39.829632 ], [ -99.906235, 39.824358 ], [ -99.888382, 39.813811 ], [ -99.882889, 39.811701 ], [ -99.876709, 39.811173 ], [ -99.853363, 39.813283 ], [ -99.841690, 39.810646 ], [ -99.823837, 39.803789 ], [ -99.818344, 39.803261 ], [ -99.812164, 39.803789 ], [ -99.806671, 39.805899 ], [ -99.788818, 39.814865 ], [ -99.783325, 39.816448 ], [ -99.777145, 39.816975 ], [ -99.759293, 39.815393 ], [ -99.753799, 39.815920 ], [ -99.747620, 39.818030 ], [ -99.724274, 39.831214 ], [ -99.718781, 39.833323 ], [ -99.712601, 39.833850 ], [ -99.707108, 39.833323 ], [ -99.689255, 39.829632 ], [ -99.683075, 39.829632 ], [ -99.659729, 39.835959 ], [ -99.654236, 39.835959 ], [ -99.648056, 39.834905 ], [ -99.642563, 39.832796 ], [ -99.624710, 39.822776 ], [ -99.619217, 39.820667 ], [ -99.613037, 39.819085 ], [ -99.589691, 39.820139 ], [ -99.583511, 39.818557 ], [ -99.560165, 39.806426 ], [ -99.554672, 39.804844 ], [ -99.548492, 39.804316 ], [ -99.542999, 39.804844 ], [ -99.525146, 39.810646 ], [ -99.518967, 39.811701 ], [ -99.513474, 39.811173 ], [ -99.495621, 39.808009 ], [ -99.490128, 39.808009 ], [ -99.483948, 39.809064 ], [ -99.478455, 39.811701 ], [ -99.460602, 39.822776 ], [ -99.454422, 39.825413 ], [ -99.448929, 39.826468 ], [ -99.442749, 39.826995 ], [ -99.425583, 39.825413 ], [ -99.419403, 39.825940 ], [ -99.413910, 39.828050 ], [ -99.396057, 39.835959 ], [ -99.389877, 39.837541 ], [ -99.384384, 39.838068 ], [ -99.378204, 39.837014 ], [ -99.354858, 39.827522 ], [ -99.349365, 39.826468 ], [ -99.326019, 39.828577 ], [ -99.319839, 39.827522 ], [ -99.313660, 39.824886 ], [ -99.296494, 39.813811 ], [ -99.296494, 39.813283 ], [ -99.313660, 39.824358 ], [ -99.319839, 39.826995 ], [ -99.326019, 39.828050 ], [ -99.349365, 39.825940 ], [ -99.354858, 39.826995 ], [ -99.378204, 39.836486 ], [ -99.384384, 39.837541 ], [ -99.389877, 39.837014 ], [ -99.396057, 39.835432 ], [ -99.413910, 39.827522 ], [ -99.419403, 39.825413 ], [ -99.425583, 39.824886 ], [ -99.442749, 39.826468 ], [ -99.448929, 39.825940 ], [ -99.454422, 39.824886 ], [ -99.460602, 39.822249 ], [ -99.478455, 39.811173 ], [ -99.483948, 39.808536 ], [ -99.490128, 39.807481 ], [ -99.495621, 39.807481 ], [ -99.513474, 39.810646 ], [ -99.518967, 39.811173 ], [ -99.525146, 39.810118 ], [ -99.542999, 39.804316 ], [ -99.548492, 39.803789 ], [ -99.554672, 39.804316 ], [ -99.560165, 39.805899 ], [ -99.583511, 39.818030 ], [ -99.589691, 39.819612 ], [ -99.613037, 39.818557 ], [ -99.619217, 39.820139 ], [ -99.624710, 39.822249 ], [ -99.642563, 39.832268 ], [ -99.648056, 39.834377 ], [ -99.654236, 39.835432 ], [ -99.659729, 39.835432 ], [ -99.683075, 39.829104 ], [ -99.689255, 39.829104 ], [ -99.707108, 39.832796 ], [ -99.712601, 39.833323 ], [ -99.718781, 39.832796 ], [ -99.724274, 39.830686 ], [ -99.747620, 39.817502 ], [ -99.753799, 39.815393 ], [ -99.759293, 39.814865 ], [ -99.777145, 39.816448 ], [ -99.783325, 39.815920 ], [ -99.788818, 39.814338 ], [ -99.806671, 39.805371 ], [ -99.812164, 39.803261 ], [ -99.818344, 39.802734 ], [ -99.823837, 39.803261 ], [ -99.841690, 39.810118 ], [ -99.853363, 39.812756 ], [ -99.876709, 39.810646 ], [ -99.882889, 39.811173 ], [ -99.888382, 39.813283 ], [ -99.906235, 39.823831 ], [ -99.917908, 39.829104 ], [ -99.924088, 39.829632 ], [ -99.947433, 39.827522 ], [ -99.959106, 39.830159 ], [ -99.976273, 39.836486 ] ] ], [ [ [ -99.982452, 39.837541 ], [ -99.987946, 39.836486 ], [ -100.000305, 39.831741 ], [ -99.987946, 39.837014 ], [ -99.982452, 39.837541 ] ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "D" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.296494, 39.892353 ], [ -99.296494, 39.813811 ], [ -99.313660, 39.824886 ], [ -99.319839, 39.827522 ], [ -99.326019, 39.828577 ], [ -99.349365, 39.826468 ], [ -99.354858, 39.827522 ], [ -99.378204, 39.837014 ], [ -99.384384, 39.838068 ], [ -99.389877, 39.837541 ], [ -99.396057, 39.835959 ], [ -99.413910, 39.828050 ], [ -99.419403, 39.825940 ], [ -99.425583, 39.825413 ], [ -99.442749, 39.826995 ], [ -99.448929, 39.826468 ], [ -99.454422, 39.825413 ], [ -99.460602, 39.822776 ], [ -99.478455, 39.811701 ], [ -99.483948, 39.809064 ], [ -99.490128, 39.808009 ], [ -99.495621, 39.808009 ], [ -99.513474, 39.811173 ], [ -99.518967, 39.811701 ], [ -99.525146, 39.810646 ], [ -99.542999, 39.804844 ], [ -99.548492, 39.804316 ], [ -99.554672, 39.804844 ], [ -99.560165, 39.806426 ], [ -99.583511, 39.818557 ], [ -99.589691, 39.820139 ], [ -99.613037, 39.819085 ], [ -99.619217, 39.820667 ], [ -99.624710, 39.822776 ], [ -99.642563, 39.832796 ], [ -99.648056, 39.834905 ], [ -99.654236, 39.835959 ], [ -99.659729, 39.835959 ], [ -99.683075, 39.829632 ], [ -99.689255, 39.829632 ], [ -99.707108, 39.833323 ], [ -99.712601, 39.833850 ], [ -99.718781, 39.833323 ], [ -99.724274, 39.831214 ], [ -99.747620, 39.818030 ], [ -99.753799, 39.815920 ], [ -99.759293, 39.815393 ], [ -99.777145, 39.816975 ], [ -99.783325, 39.816448 ], [ -99.788818, 39.814865 ], [ -99.806671, 39.805899 ], [ -99.812164, 39.803789 ], [ -99.818344, 39.803261 ], [ -99.823837, 39.803789 ], [ -99.841690, 39.810646 ], [ -99.853363, 39.813283 ], [ -99.876709, 39.811173 ], [ -99.882889, 39.811701 ], [ -99.888382, 39.813811 ], [ -99.906235, 39.824358 ], [ -99.917908, 39.829632 ], [ -99.924088, 39.830159 ], [ -99.947433, 39.828050 ], [ -99.959106, 39.830686 ], [ -99.976273, 39.837014 ], [ -99.982452, 39.837541 ], [ -99.987946, 39.837014 ], [ -100.000305, 39.831741 ], [ -100.000305, 39.892353 ], [ -99.296494, 39.892353 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "R" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.718781, 39.748378 ], [ -99.712601, 39.747322 ], [ -99.707108, 39.745210 ], [ -99.689255, 39.736762 ], [ -99.683075, 39.735178 ], [ -99.677582, 39.734650 ], [ -99.659729, 39.736234 ], [ -99.654236, 39.735706 ], [ -99.648056, 39.733594 ], [ -99.624710, 39.720392 ], [ -99.619217, 39.718279 ], [ -99.613037, 39.717751 ], [ -99.606857, 39.718279 ], [ -99.595184, 39.720920 ], [ -99.583511, 39.721448 ], [ -99.560165, 39.715638 ], [ -99.554672, 39.715110 ], [ -99.548492, 39.716166 ], [ -99.542999, 39.718807 ], [ -99.525146, 39.728841 ], [ -99.518967, 39.730954 ], [ -99.513474, 39.732010 ], [ -99.490128, 39.730954 ], [ -99.478455, 39.735178 ], [ -99.460602, 39.744682 ], [ -99.454422, 39.746794 ], [ -99.448929, 39.747322 ], [ -99.442749, 39.746266 ], [ -99.425583, 39.740986 ], [ -99.419403, 39.739930 ], [ -99.413910, 39.739930 ], [ -99.396057, 39.743626 ], [ -99.389877, 39.743626 ], [ -99.384384, 39.742042 ], [ -99.378204, 39.739930 ], [ -99.361038, 39.728841 ], [ -99.354858, 39.726201 ], [ -99.349365, 39.725145 ], [ -99.343185, 39.724617 ], [ -99.326019, 39.726201 ], [ -99.319839, 39.725145 ], [ -99.313660, 39.723560 ], [ -99.296494, 39.715110 ], [ -99.296494, 39.714054 ], [ -99.313660, 39.722504 ], [ -99.319839, 39.724617 ], [ -99.326019, 39.725145 ], [ -99.343185, 39.724089 ], [ -99.349365, 39.724089 ], [ -99.354858, 39.725673 ], [ -99.361038, 39.728313 ], [ -99.378204, 39.738874 ], [ -99.384384, 39.741514 ], [ -99.389877, 39.742570 ], [ -99.396057, 39.742570 ], [ -99.413910, 39.739402 ], [ -99.419403, 39.739402 ], [ -99.425583, 39.739930 ], [ -99.442749, 39.745738 ], [ -99.448929, 39.746266 ], [ -99.454422, 39.745738 ], [ -99.460602, 39.744154 ], [ -99.478455, 39.734122 ], [ -99.490128, 39.730426 ], [ -99.513474, 39.730954 ], [ -99.518967, 39.729898 ], [ -99.525146, 39.727785 ], [ -99.542999, 39.717751 ], [ -99.548492, 39.715638 ], [ -99.554672, 39.714582 ], [ -99.560165, 39.714582 ], [ -99.583511, 39.720920 ], [ -99.595184, 39.719863 ], [ -99.606857, 39.717223 ], [ -99.613037, 39.716694 ], [ -99.619217, 39.717223 ], [ -99.624710, 39.719335 ], [ -99.648056, 39.733066 ], [ -99.654236, 39.734650 ], [ -99.659729, 39.735178 ], [ -99.677582, 39.734122 ], [ -99.683075, 39.734650 ], [ -99.689255, 39.736234 ], [ -99.707108, 39.744682 ], [ -99.712601, 39.746794 ], [ -99.718781, 39.747322 ], [ -99.724274, 39.746794 ], [ -99.747620, 39.738346 ], [ -99.753799, 39.737290 ], [ -99.777145, 39.739402 ], [ -99.783325, 39.738874 ], [ -99.788818, 39.736762 ], [ -99.812164, 39.723032 ], [ -99.818344, 39.720920 ], [ -99.823837, 39.719863 ], [ -99.841690, 39.721976 ], [ -99.853363, 39.721448 ], [ -99.876709, 39.713525 ], [ -99.882889, 39.712997 ], [ -99.888382, 39.713525 ], [ -99.894562, 39.715638 ], [ -99.911728, 39.724617 ], [ -99.917908, 39.726201 ], [ -99.924088, 39.727257 ], [ -99.941254, 39.726201 ], [ -99.947433, 39.726201 ], [ -99.952927, 39.728313 ], [ -99.976273, 39.741514 ], [ -99.982452, 39.743626 ], [ -99.987946, 39.744154 ], [ -100.000305, 39.742570 ], [ -100.000305, 39.743626 ], [ -99.987946, 39.745210 ], [ -99.982452, 39.744154 ], [ -99.976273, 39.742042 ], [ -99.952927, 39.728841 ], [ -99.947433, 39.727257 ], [ -99.941254, 39.726729 ], [ -99.924088, 39.727785 ], [ -99.917908, 39.727257 ], [ -99.911728, 39.725673 ], [ -99.894562, 39.716694 ], [ -99.888382, 39.714582 ], [ -99.882889, 39.713525 ], [ -99.876709, 39.714054 ], [ -99.853363, 39.722504 ], [ -99.841690, 39.723032 ], [ -99.823837, 39.720920 ], [ -99.818344, 39.721448 ], [ -99.812164, 39.723560 ], [ -99.788818, 39.737290 ], [ -99.783325, 39.739402 ], [ -99.777145, 39.739930 ], [ -99.753799, 39.737818 ], [ -99.747620, 39.738874 ], [ -99.724274, 39.747850 ], [ -99.718781, 39.748378 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "name": "R" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.718781, 39.748378 ], [ -99.712601, 39.747322 ], [ -99.707108, 39.745210 ], [ -99.689255, 39.736762 ], [ -99.683075, 39.735178 ], [ -99.677582, 39.734650 ], [ -99.659729, 39.736234 ], [ -99.654236, 39.735706 ], [ -99.648056, 39.733594 ], [ -99.624710, 39.720392 ], [ -99.619217, 39.718279 ], [ -99.613037, 39.717751 ], [ -99.606857, 39.718279 ], [ -99.595184, 39.720920 ], [ -99.583511, 39.721448 ], [ -99.560165, 39.715638 ], [ -99.554672, 39.715110 ], [ -99.548492, 39.716166 ], [ -99.542999, 39.718807 ], [ -99.525146, 39.728841 ], [ -99.518967, 39.730954 ], [ -99.513474, 39.732010 ], [ -99.490128, 39.730954 ], [ -99.478455, 39.735178 ], [ -99.460602, 39.744682 ], [ -99.454422, 39.746794 ], [ -99.448929, 39.747322 ], [ -99.442749, 39.746266 ], [ -99.425583, 39.740986 ], [ -99.419403, 39.739930 ], [ -99.413910, 39.739930 ], [ -99.396057, 39.743626 ], [ -99.389877, 39.743626 ], [ -99.384384, 39.742042 ], [ -99.378204, 39.739930 ], [ -99.361038, 39.728841 ], [ -99.354858, 39.726201 ], [ -99.349365, 39.725145 ], [ -99.343185, 39.724617 ], [ -99.326019, 39.726201 ], [ -99.319839, 39.725145 ], [ -99.313660, 39.723560 ], [ -99.296494, 39.715110 ], [ -99.296494, 39.714582 ], [ -99.296494, 39.714054 ], [ -99.313660, 39.722504 ], [ -99.319839, 39.724617 ], [ -99.326019, 39.725145 ], [ -99.343185, 39.724089 ], [ -99.349365, 39.724089 ], [ -99.354858, 39.725673 ], [ -99.361038, 39.728313 ], [ -99.378204, 39.738874 ], [ -99.384384, 39.741514 ], [ -99.389877, 39.742570 ], [ -99.396057, 39.742570 ], [ -99.413910, 39.739402 ], [ -99.419403, 39.739402 ], [ -99.425583, 39.739930 ], [ -99.442749, 39.745738 ], [ -99.448929, 39.746266 ], [ -99.454422, 39.745738 ], [ -99.460602, 39.744154 ], [ -99.478455, 39.734122 ], [ -99.490128, 39.730426 ], [ -99.513474, 39.730954 ], [ -99.518967, 39.729898 ], [ -99.525146, 39.727785 ], [ -99.542999, 39.717751 ], [ -99.548492, 39.715638 ], [ -99.554672, 39.714582 ], [ -99.560165, 39.714582 ], [ -99.583511, 39.720920 ], [ -99.595184, 39.719863 ], [ -99.606857, 39.717223 ], [ -99.613037, 39.716694 ], [ -99.619217, 39.717223 ], [ -99.624710, 39.719335 ], [ -99.648056, 39.733066 ], [ -99.654236, 39.734650 ], [ -99.659729, 39.735178 ], [ -99.677582, 39.734122 ], [ -99.683075, 39.734650 ], [ -99.689255, 39.736234 ], [ -99.707108, 39.744682 ], [ -99.712601, 39.746794 ], [ -99.718781, 39.747322 ], [ -99.724274, 39.746794 ], [ -99.747620, 39.738346 ], [ -99.753799, 39.737290 ], [ -99.777145, 39.739402 ], [ -99.783325, 39.738874 ], [ -99.788818, 39.736762 ], [ -99.812164, 39.723032 ], [ -99.818344, 39.720920 ], [ -99.823837, 39.719863 ], [ -99.841690, 39.721976 ], [ -99.853363, 39.721448 ], [ -99.876709, 39.713525 ], [ -99.882889, 39.712997 ], [ -99.888382, 39.713525 ], [ -99.894562, 39.715638 ], [ -99.911728, 39.724617 ], [ -99.917908, 39.726201 ], [ -99.924088, 39.727257 ], [ -99.941254, 39.726201 ], [ -99.947433, 39.726201 ], [ -99.952927, 39.728313 ], [ -99.976273, 39.741514 ], [ -99.982452, 39.743626 ], [ -99.987946, 39.744154 ], [ -100.000305, 39.742570 ], [ -100.000305, 39.743098 ], [ -100.000305, 39.743626 ], [ -99.987946, 39.745210 ], [ -99.982452, 39.744154 ], [ -99.976273, 39.742042 ], [ -99.952927, 39.728841 ], [ -99.947433, 39.727257 ], [ -99.941254, 39.726729 ], [ -99.924088, 39.727785 ], [ -99.917908, 39.727257 ], [ -99.911728, 39.725673 ], [ -99.894562, 39.716694 ], [ -99.888382, 39.714582 ], [ -99.882889, 39.713525 ], [ -99.876709, 39.714054 ], [ -99.853363, 39.722504 ], [ -99.841690, 39.723032 ], [ -99.823837, 39.720920 ], [ -99.818344, 39.721448 ], [ -99.812164, 39.723560 ], [ -99.788818, 39.737290 ], [ -99.783325, 39.739402 ], [ -99.777145, 39.739930 ], [ -99.753799, 39.737818 ], [ -99.747620, 39.738874 ], [ -99.724274, 39.747850 ], [ -99.718781, 39.748378 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "P" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -99.642563, 40.015520 ], [ -99.624710, 40.010261 ], [ -99.619217, 40.009209 ], [ -99.613037, 40.009209 ], [ -99.595184, 40.012365 ], [ -99.589691, 40.012365 ], [ -99.583511, 40.011313 ], [ -99.578018, 40.008683 ], [ -99.583511, 40.010787 ], [ -99.589691, 40.011839 ], [ -99.595184, 40.011839 ], [ -99.613037, 40.008683 ], [ -99.619217, 40.008683 ], [ -99.624710, 40.009735 ], [ -99.642563, 40.015520 ] ] ], [ [ [ -99.718781, 40.000268 ], [ -99.724274, 39.997638 ], [ -99.742126, 39.987643 ], [ -99.747620, 39.985538 ], [ -99.742126, 39.988169 ], [ -99.724274, 39.998164 ], [ -99.718781, 40.000268 ] ] ], [ [ [ -99.917908, 40.017624 ], [ -99.911728, 40.016572 ], [ -99.906235, 40.014468 ], [ -99.888382, 40.006054 ], [ -99.882889, 40.003950 ], [ -99.888382, 40.005528 ], [ -99.911728, 40.016046 ], [ -99.917908, 40.017098 ], [ -99.924088, 40.016572 ], [ -99.941254, 40.009735 ], [ -99.952927, 40.007106 ], [ -99.976273, 40.009735 ], [ -99.952927, 40.007632 ], [ -99.941254, 40.010261 ], [ -99.924088, 40.017098 ], [ -99.917908, 40.017624 ] ] ], [ [ [ -99.490128, 39.982908 ], [ -99.483948, 39.982908 ], [ -99.478455, 39.983960 ], [ -99.454422, 39.993430 ], [ -99.442749, 39.993956 ], [ -99.425583, 39.992378 ], [ -99.442749, 39.993430 ], [ -99.454422, 39.992904 ], [ -99.478455, 39.983434 ], [ -99.483948, 39.982382 ], [ -99.490128, 39.982908 ] ] ], [ [ [ -99.806671, 39.987117 ], [ -99.788818, 39.990799 ], [ -99.783325, 39.990799 ], [ -99.759293, 39.985012 ], [ -99.753799, 39.984486 ], [ -99.759293, 39.984486 ], [ -99.783325, 39.990273 ], [ -99.788818, 39.990273 ], [ -99.806671, 39.987117 ] ] ], [ [ [ -99.378204, 40.011313 ], [ -99.384384, 40.010787 ], [ -99.389877, 40.009209 ], [ -99.396057, 40.006580 ], [ -99.389877, 40.009735 ], [ -99.384384, 40.011313 ], [ -99.378204, 40.011313 ] ] ], [ [ [ -99.976273, 40.009735 ], [ -99.982452, 40.008683 ], [ -99.987946, 40.006580 ], [ -100.000305, 39.999742 ], [ -100.000305, 40.000268 ], [ -99.987946, 40.007106 ], [ -99.982452, 40.009209 ], [ -99.976273, 40.009735 ] ] ], [ [ [ -99.859543, 40.005002 ], [ -99.853363, 40.004476 ], [ -99.847870, 40.002372 ], [ -99.843063, 39.999742 ], [ -99.853363, 40.003950 ], [ -99.859543, 40.004476 ], [ -99.876709, 40.003424 ], [ -99.859543, 40.005002 ] ] ], [ [ [ -99.548492, 39.993430 ], [ -99.542999, 39.993430 ], [ -99.525146, 39.995008 ], [ -99.518967, 39.994482 ], [ -99.513474, 39.992378 ], [ -99.518967, 39.993956 ], [ -99.525146, 39.994482 ], [ -99.542999, 39.992904 ], [ -99.548492, 39.993430 ] ] ], [ [ [ -99.806671, 39.987117 ], [ -99.812164, 39.986065 ], [ -99.818344, 39.986591 ], [ -99.823837, 39.988695 ], [ -99.836197, 39.996060 ], [ -99.823837, 39.989221 ], [ -99.818344, 39.987117 ], [ -99.812164, 39.986591 ], [ -99.806671, 39.987117 ] ] ], [ [ [ -99.659729, 40.013943 ], [ -99.683075, 40.001846 ], [ -99.689255, 40.000794 ], [ -99.683075, 40.002372 ], [ -99.659729, 40.013943 ] ] ], [ [ [ -99.319839, 40.016572 ], [ -99.313660, 40.015520 ], [ -99.308167, 40.012891 ], [ -99.296494, 40.006054 ], [ -99.308167, 40.012365 ], [ -99.313660, 40.014994 ], [ -99.319839, 40.016572 ] ] ], [ [ [ -99.396057, 40.006580 ], [ -99.413910, 39.995534 ], [ -99.419403, 39.993430 ], [ -99.413910, 39.996060 ], [ -99.396057, 40.006580 ] ] ], [ [ [ -99.349365, 40.009209 ], [ -99.331512, 40.015520 ], [ -99.326019, 40.016572 ], [ -99.331512, 40.014994 ], [ -99.349365, 40.009209 ] ] ], [ [ [ -99.642563, 40.015520 ], [ -99.648056, 40.016046 ], [ -99.654236, 40.015520 ], [ -99.659729, 40.013943 ], [ -99.654236, 40.016046 ], [ -99.648056, 40.016572 ], [ -99.642563, 40.015520 ] ] ], [ [ [ -99.349365, 40.009209 ], [ -99.354858, 40.008158 ], [ -99.361038, 40.008683 ], [ -99.354858, 40.008683 ], [ -99.349365, 40.009209 ] ] ] ] } }
|
||||
,
|
||||
|
||||
@@ -741,9 +741,14 @@ static void *simplification_worker(void *v) {
|
||||
}
|
||||
}
|
||||
|
||||
// With the layer's hot pixels, clean the polygon and union it with its
|
||||
// spindle strips in the same pass, so that it is only snapped once.
|
||||
// (Snapping it again would not necessarily leave it the same,
|
||||
// and the other polygons it shares borders with would not be
|
||||
// snapped again to match.)
|
||||
bool cleaned = false;
|
||||
if (hot != NULL && geom.size() < 100000) {
|
||||
geom = clean_polygon_with_hot_pixels(before, *hot, &cleaned);
|
||||
geom = clean_polygon_with_hot_pixels(before, sf.strips, *hot, &cleaned);
|
||||
if (!cleaned) {
|
||||
geom = before;
|
||||
}
|
||||
@@ -751,8 +756,8 @@ static void *simplification_worker(void *v) {
|
||||
if (!cleaned) {
|
||||
// we can try scaling up because this is now tile scale
|
||||
coalesce_polygon(geom, true);
|
||||
geom = union_polygon_strips(geom, sf.strips, hot);
|
||||
}
|
||||
geom = union_polygon_strips(geom, sf.strips, hot);
|
||||
if (additional[A_DEBUG_POLYGON]) {
|
||||
check_polygon(geom);
|
||||
}
|
||||
@@ -2578,10 +2583,16 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
|
||||
|
||||
for (int snap_pass = consistent_snapping ? 1 : 0; snap_pass <= (consistent_snapping ? 2 : 0); snap_pass++) {
|
||||
if (snap_pass == 2) {
|
||||
// The hot pixels include those of the spindle strips, which are
|
||||
// unioned with the polygons as they are cleaned, so that where the
|
||||
// strips meet other polygons, they are snapped consistently too.
|
||||
std::map<long long, std::vector<drawvec const *>> layer_polygons;
|
||||
for (auto const &f : features) {
|
||||
if (f->t == VT_POLYGON) {
|
||||
layer_polygons[f->layer].push_back(&f->geometry);
|
||||
for (size_t i = 0; i < features.size(); i++) {
|
||||
if (features[i]->t == VT_POLYGON) {
|
||||
layer_polygons[features[i]->layer].push_back(&features[i]->geometry);
|
||||
if (simplified[i].strips.size() > 0) {
|
||||
layer_polygons[features[i]->layer].push_back(&simplified[i].strips);
|
||||
}
|
||||
}
|
||||
}
|
||||
for (auto const &lp : layer_polygons) {
|
||||
|
||||
@@ -749,8 +749,8 @@ TEST_CASE("Snapping to a layer's hot pixels keeps shared borders consistent", "[
|
||||
|
||||
hot_pixel_list hot = layer_hot_pixels({&sliver, &block});
|
||||
bool ok1, ok2;
|
||||
drawvec s2 = clean_polygon_with_hot_pixels(sliver, hot, &ok1);
|
||||
drawvec b2 = clean_polygon_with_hot_pixels(block, hot, &ok2);
|
||||
drawvec s2 = clean_polygon_with_hot_pixels(sliver, drawvec(), hot, &ok1);
|
||||
drawvec b2 = clean_polygon_with_hot_pixels(block, drawvec(), hot, &ok2);
|
||||
REQUIRE(ok1);
|
||||
REQUIRE(ok2);
|
||||
shards(s2, b2, &gaps, &overlaps);
|
||||
@@ -797,7 +797,7 @@ TEST_CASE("Consistent snapping doesn't make neighboring polygons' edges cross",
|
||||
std::vector<drawvec> out;
|
||||
for (auto const &g : in) {
|
||||
bool ok;
|
||||
out.push_back(clean_polygon_with_hot_pixels(g, hot, &ok));
|
||||
out.push_back(clean_polygon_with_hot_pixels(g, drawvec(), hot, &ok));
|
||||
REQUIRE(ok);
|
||||
}
|
||||
|
||||
@@ -853,9 +853,9 @@ TEST_CASE("Overlaps between polygons go to the earlier polygon", "[wagyu]") {
|
||||
// each square's edges where the other's corners touch them
|
||||
hot_pixel_list hot = layer_hot_pixels({&first, &second, &third});
|
||||
bool ok;
|
||||
first = clean_polygon_with_hot_pixels(first, hot, &ok);
|
||||
second = clean_polygon_with_hot_pixels(second, hot, &ok);
|
||||
third = clean_polygon_with_hot_pixels(third, hot, &ok);
|
||||
first = clean_polygon_with_hot_pixels(first, drawvec(), hot, &ok);
|
||||
second = clean_polygon_with_hot_pixels(second, drawvec(), hot, &ok);
|
||||
third = clean_polygon_with_hot_pixels(third, drawvec(), hot, &ok);
|
||||
std::vector<drawvec *> geoms = {&first, &second, &third};
|
||||
|
||||
REQUIRE(remove_overlaps(geoms, &hot) == 2);
|
||||
@@ -939,7 +939,7 @@ TEST_CASE("Removing overlaps doesn't snap the polygons again", "[wagyu]") {
|
||||
std::vector<drawvec> out;
|
||||
for (auto const &g : in) {
|
||||
bool ok;
|
||||
out.push_back(clean_polygon_with_hot_pixels(g, hot, &ok));
|
||||
out.push_back(clean_polygon_with_hot_pixels(g, drawvec(), hot, &ok));
|
||||
}
|
||||
std::vector<drawvec *> geoms;
|
||||
for (auto &g : out) {
|
||||
|
||||
Reference in New Issue
Block a user