mirror of
https://github.com/felt/tippecanoe.git
synced 2026-11-24 17:31:19 +01:00
Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ecd71fde10 | ||
|
|
93d77d32e7 | ||
|
|
87b83d8012 | ||
|
|
e8236aa4d1 | ||
|
|
09388d43b3 | ||
|
|
368af49e2b | ||
|
|
6778aeac52 | ||
|
|
f294e2af8a |
@@ -1,3 +1,8 @@
|
||||
# 2.30.0
|
||||
|
||||
* Add --extend-zooms-if-still-dropping-maximum option
|
||||
* Add --overzoom option to tile-join
|
||||
|
||||
# 2.29.0
|
||||
|
||||
* Add tippecanoe-overzoom tool
|
||||
|
||||
@@ -67,7 +67,7 @@ tippecanoe-enumerate: enumerate.o
|
||||
tippecanoe-decode: decode.o projection.o mvt.o write_json.o text.o jsonpull/jsonpull.o dirtiles.o pmtiles_file.o
|
||||
$(CXX) $(PG) $(LIBS) $(FINAL_FLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) -lm -lz -lsqlite3
|
||||
|
||||
tile-join: tile-join.o projection.o mbtiles.o mvt.o memfile.o dirtiles.o jsonpull/jsonpull.o text.o evaluator.o csv.o write_json.o pmtiles_file.o
|
||||
tile-join: tile-join.o projection.o mbtiles.o mvt.o memfile.o dirtiles.o jsonpull/jsonpull.o text.o evaluator.o csv.o write_json.o pmtiles_file.o clip.o
|
||||
$(CXX) $(PG) $(LIBS) $(FINAL_FLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) -lm -lz -lsqlite3 -lpthread
|
||||
|
||||
tippecanoe-json-tool: jsontool.o jsonpull/jsonpull.o csv.o text.o geojson-loop.o
|
||||
@@ -404,8 +404,16 @@ join-test: tile-join
|
||||
./tippecanoe-decode -x generator -x generator_options -x name -x description tests/join-population/empty.dirtiles > tests/join-population/empty.out.json.check
|
||||
cmp tests/join-population/empty.out.json.check tests/join-population/empty.out.json
|
||||
rm -rf tests/join-population/empty.dirtiles tests/join-population/empty.out.dirtiles tests/join-population/empty.out.json.check
|
||||
|
||||
|
||||
#
|
||||
# Test overzooming of tilesets with different maxzooms
|
||||
#
|
||||
mkdir -p tests/ne_110m_ocean/join
|
||||
./tippecanoe -q -z2 -f -o tests/ne_110m_ocean/join/ocean.mbtiles tests/ne_110m_ocean/in.json
|
||||
./tippecanoe -q -z4 -d8 -y name -f -o tests/ne_110m_ocean/join/countries.mbtiles tests/ne_110m_admin_0_countries/in.json.gz
|
||||
./tile-join --overzoom -f -o tests/ne_110m_ocean/join/joined.mbtiles tests/ne_110m_ocean/join/ocean.mbtiles tests/ne_110m_ocean/join/countries.mbtiles
|
||||
./tippecanoe-decode -x generator tests/ne_110m_ocean/join/joined.mbtiles > tests/ne_110m_ocean/join/joined.mbtiles.json.check
|
||||
cmp tests/ne_110m_ocean/join/joined.mbtiles.json.check tests/ne_110m_ocean/join/joined.mbtiles.json
|
||||
rm -f tests/ne_110m_ocean/join/ocean.mbtiles tests/ne_110m_ocean/join/countries.mbtiles tests/ne_110m_ocean/join/joined.mbtiles tests/ne_110m_ocean/join/joined.mbtiles.json.check
|
||||
|
||||
join-filter-test:
|
||||
# Comes out different from the direct tippecanoe run because null attributes are lost
|
||||
|
||||
@@ -345,6 +345,8 @@ Parallel processing will also be automatic if the input file is in FlatGeobuf fo
|
||||
* `-ae` or `--extend-zooms-if-still-dropping`: Increase the maxzoom if features are still being dropped at that zoom level.
|
||||
The detail and simplification options that ordinarily apply only to the maximum zoom level will apply both to the originally
|
||||
specified maximum zoom and to any levels added beyond that.
|
||||
* `--extend-zooms-if-still-dropping-maximum=`_count_: Increase the maxzoom if features are still being dropped at that zoom level
|
||||
by up to _count_ zoom levels.
|
||||
* `-R` _zoom_`/`_x_`/`_y_ or `--one-tile=`_zoom_`/`_x_`/`_y_: Set the minzoom and maxzoom to _zoom_ and produce only
|
||||
the single specified tile at that zoom level.
|
||||
|
||||
@@ -769,6 +771,11 @@ The options are:
|
||||
* `-f` or `--force`: Remove *out.mbtiles* if it already exists.
|
||||
* `-r` or `--read-from`: list of input mbtiles to read from.
|
||||
|
||||
### Overzooming
|
||||
|
||||
* `--overzoom`: If one of the source tilesets has a larger maxzoom than the others, scale up tiles from the tilesets with the lower maxzooms so they will all have the same maxzoom in the output tileset.
|
||||
* `--buffer=`_pixels_ or `-b` _pixels_: Set the size of the tile buffer in the overzoomed tiles.
|
||||
|
||||
### Tileset description and attribution
|
||||
|
||||
* `-A` *attribution* or `--attribution=`*attribution*: Set the attribution string.
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
#include <mapbox/geometry/snap_rounding.hpp>
|
||||
#include "geometry.hpp"
|
||||
#include "errors.hpp"
|
||||
#include "compression.hpp"
|
||||
#include "mvt.hpp"
|
||||
|
||||
drawvec simple_clip_poly(drawvec &geom, long long minx, long long miny, long long maxx, long long maxy) {
|
||||
drawvec out;
|
||||
@@ -565,3 +567,127 @@ drawvec close_poly(drawvec &geom) {
|
||||
|
||||
return out;
|
||||
}
|
||||
|
||||
std::string overzoom(std::string s, int oz, int ox, int oy, int nz, int nx, int ny,
|
||||
int detail, int buffer, std::set<std::string> const &keep) {
|
||||
mvt_tile tile, outtile;
|
||||
bool was_compressed;
|
||||
|
||||
try {
|
||||
if (!tile.decode(s, was_compressed)) {
|
||||
fprintf(stderr, "Couldn't parse tile %d/%u/%u\n", oz, ox, oy);
|
||||
exit(EXIT_MVT);
|
||||
}
|
||||
} catch (std::exception const &e) {
|
||||
fprintf(stderr, "PBF decoding error in tile %d/%u/%u\n", oz, ox, oy);
|
||||
exit(EXIT_PROTOBUF);
|
||||
}
|
||||
|
||||
for (auto const &layer : tile.layers) {
|
||||
mvt_layer outlayer = mvt_layer();
|
||||
|
||||
int det = detail;
|
||||
if (det <= 0) {
|
||||
det = std::round(log(layer.extent) / log(2));
|
||||
}
|
||||
|
||||
outlayer.name = layer.name;
|
||||
outlayer.version = layer.version;
|
||||
outlayer.extent = 1LL << det;
|
||||
|
||||
for (auto const &feature : layer.features) {
|
||||
mvt_feature outfeature;
|
||||
drawvec geom;
|
||||
int t = feature.type;
|
||||
|
||||
// Convert feature geometry to world coordinates
|
||||
|
||||
long long tilesize = 1LL << (32 - oz); // source tile size in world coordinates
|
||||
draw ring_closure(0, 0, 0);
|
||||
|
||||
for (auto const &g : feature.geometry) {
|
||||
if (g.op == mvt_closepath) {
|
||||
geom.push_back(ring_closure);
|
||||
} else {
|
||||
geom.emplace_back(g.op,
|
||||
g.x * tilesize / layer.extent + ox * tilesize,
|
||||
g.y * tilesize / layer.extent + oy * tilesize);
|
||||
|
||||
if (g.op == mvt_moveto) {
|
||||
ring_closure = geom.back();
|
||||
ring_closure.op = mvt_lineto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Now offset from world coordinates to output tile coordinates,
|
||||
// but retain world scale, because that is what tippecanoe clipping expects
|
||||
|
||||
long long outtilesize = 1LL << (32 - nz); // destination tile size in world coordinates
|
||||
for (auto &g : geom) {
|
||||
g.x -= nx * outtilesize;
|
||||
g.y -= ny * outtilesize;
|
||||
}
|
||||
|
||||
// Clip to output tile
|
||||
|
||||
if (t == VT_LINE) {
|
||||
geom = clip_lines(geom, nz, buffer);
|
||||
} else if (t == VT_POLYGON) {
|
||||
geom = simple_clip_poly(geom, nz, buffer);
|
||||
} else if (t == VT_POINT) {
|
||||
geom = clip_point(geom, nz, buffer);
|
||||
}
|
||||
|
||||
// Scale to output tile extent
|
||||
|
||||
to_tile_scale(geom, nz, det);
|
||||
|
||||
// Clean geometries
|
||||
|
||||
geom = remove_noop(geom, t, 0);
|
||||
if (t == VT_POLYGON) {
|
||||
geom = clean_or_clip_poly(geom, 0, 0, false);
|
||||
geom = close_poly(geom);
|
||||
}
|
||||
|
||||
// Add geometry to output feature
|
||||
|
||||
outfeature.type = t;
|
||||
for (auto const &g : geom) {
|
||||
outfeature.geometry.emplace_back(g.op, g.x, g.y);
|
||||
}
|
||||
|
||||
// ID and attributes, if it didn't get clipped away
|
||||
|
||||
if (outfeature.geometry.size() > 0) {
|
||||
if (feature.has_id) {
|
||||
outfeature.has_id = true;
|
||||
outfeature.id = feature.id;
|
||||
}
|
||||
|
||||
for (size_t i = 0; i + 1 < feature.tags.size(); i += 2) {
|
||||
if (keep.size() == 0 || keep.find(layer.keys[feature.tags[i]]) != keep.end()) {
|
||||
outlayer.tag(outfeature, layer.keys[feature.tags[i]], layer.values[feature.tags[i + 1]]);
|
||||
}
|
||||
}
|
||||
|
||||
outlayer.features.push_back(outfeature);
|
||||
}
|
||||
}
|
||||
|
||||
if (outlayer.features.size() > 0) {
|
||||
outtile.layers.push_back(outlayer);
|
||||
}
|
||||
}
|
||||
|
||||
if (outtile.layers.size() > 0) {
|
||||
std::string pbf = outtile.encode();
|
||||
std::string compressed;
|
||||
compress(pbf, compressed, true);
|
||||
|
||||
return compressed;
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
+29
-5
@@ -186,7 +186,7 @@ void check_polygon(drawvec &geom) {
|
||||
}
|
||||
}
|
||||
|
||||
drawvec reduce_tiny_poly(drawvec &geom, int z, int detail, bool *reduced, double *accum_area, serial_feature *this_feature, serial_feature *tiny_feature) {
|
||||
drawvec reduce_tiny_poly(drawvec &geom, int z, int detail, bool *reduced, double *accum_area, double *accum_hole, serial_feature *this_feature, serial_feature *tiny_feature) {
|
||||
drawvec out;
|
||||
const double pixel = (1LL << (32 - detail - z)) * (double) tiny_polygon_size;
|
||||
bool includes_real = false;
|
||||
@@ -221,7 +221,9 @@ drawvec reduce_tiny_poly(drawvec &geom, int z, int detail, bool *reduced, double
|
||||
// in a tiny polygon rather than letting it represent itself,
|
||||
// OR it is an inner ring and we haven't output an outer ring for it to be
|
||||
// cut out of, so we are just subtracting its area from the tiny polygon
|
||||
// rather than trying to deal with it geometrically
|
||||
// rather than trying to deal with it geometrically (even if it is too big
|
||||
// to really be considered a tiny polygon, which shouldn't happen because
|
||||
// it should be smaller than its outer ring, which was considered tiny).
|
||||
if ((area > 0 && area <= pixel * pixel) || (area < 0 && !included_last_outer)) {
|
||||
// printf("area is only %f vs %lld so using square\n", area, pixel * pixel);
|
||||
|
||||
@@ -243,10 +245,32 @@ drawvec reduce_tiny_poly(drawvec &geom, int z, int detail, bool *reduced, double
|
||||
included_last_outer = false;
|
||||
}
|
||||
}
|
||||
|
||||
// this is a tiny hole, and we have a real outer ring that we can cut it out of,
|
||||
// so accumulate some hole, and if we have enough to be worth cutting, cut it out.
|
||||
//
|
||||
// these hole areas are accumulated separately rather than just decrementing
|
||||
// the accumulated area, because otherwise it is possible to accumulate enough
|
||||
// negative area to lose entire outer rings in the process of getting back up to 0.
|
||||
else if (area < 0 && -area <= pixel * pixel && included_last_outer) {
|
||||
*accum_hole -= area;
|
||||
if (*accum_hole > pixel * pixel) {
|
||||
// XXX use centroid;
|
||||
|
||||
// winding is backward from above because this is a hole
|
||||
out.push_back(draw(VT_MOVETO, geom[i].x - pixel / 2, geom[i].y - pixel / 2));
|
||||
out.push_back(draw(VT_LINETO, geom[i].x - pixel / 2, geom[i].y - pixel / 2 + pixel));
|
||||
out.push_back(draw(VT_LINETO, geom[i].x - pixel / 2 + pixel, geom[i].y - pixel / 2 + pixel));
|
||||
out.push_back(draw(VT_LINETO, geom[i].x - pixel / 2 + pixel, geom[i].y - pixel / 2));
|
||||
out.push_back(draw(VT_LINETO, geom[i].x - pixel / 2, geom[i].y - pixel / 2));
|
||||
|
||||
includes_dust = true;
|
||||
|
||||
*accum_hole -= pixel * pixel;
|
||||
}
|
||||
}
|
||||
|
||||
// i.e., this ring is large enough that it gets to represent itself
|
||||
// or it is a tiny hole out of a real polygon, which we are still treating
|
||||
// as a real geometry because otherwise we can accumulate enough tiny holes
|
||||
// that we will drop the next several outer rings getting back up to 0.
|
||||
else {
|
||||
// printf("area is %f so keeping instead of %lld\n", area, pixel * pixel);
|
||||
|
||||
|
||||
+6
-1
@@ -3,6 +3,8 @@
|
||||
|
||||
#include <vector>
|
||||
#include <atomic>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <sqlite3.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -66,7 +68,7 @@ drawvec clip_point(drawvec &geom, int z, long long buffer);
|
||||
drawvec clean_or_clip_poly(drawvec &geom, int z, int buffer, bool clip);
|
||||
drawvec simple_clip_poly(drawvec &geom, int z, int buffer);
|
||||
drawvec close_poly(drawvec &geom);
|
||||
drawvec reduce_tiny_poly(drawvec &geom, int z, int detail, bool *reduced, double *accum_area, serial_feature *this_feature, serial_feature *tiny_feature);
|
||||
drawvec reduce_tiny_poly(drawvec &geom, int z, int detail, bool *reduced, double *accum_area, double *accum_hole, serial_feature *this_feature, serial_feature *tiny_feature);
|
||||
int clip(double *x0, double *y0, double *x1, double *y1, double xmin, double ymin, double xmax, double ymax);
|
||||
drawvec clip_lines(drawvec &geom, int z, long long buffer);
|
||||
drawvec stairstep(drawvec &geom, int z, int detail);
|
||||
@@ -88,4 +90,7 @@ drawvec clip_point(drawvec &geom, long long x1, long long y1, long long x2, long
|
||||
void visvalingam(drawvec &ls, size_t start, size_t end, double threshold, size_t retain);
|
||||
int pnpoly(const drawvec &vert, size_t start, size_t nvert, long long testx, long long testy);
|
||||
|
||||
std::string overzoom(std::string s, int oz, int ox, int oy, int nz, int nx, int ny,
|
||||
int detail, int buffer, std::set<std::string> const &keep);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -91,6 +91,7 @@ size_t limit_tile_feature_count_at_maxzoom = 0;
|
||||
unsigned int drop_denser = 0;
|
||||
std::map<std::string, serial_val> set_attributes;
|
||||
unsigned long long preserve_point_density_threshold = 0;
|
||||
long long extend_zooms_max = 0;
|
||||
|
||||
std::vector<order_field> order_by;
|
||||
bool order_reverse;
|
||||
@@ -2892,6 +2893,7 @@ int main(int argc, char **argv) {
|
||||
{"minimum-zoom", required_argument, 0, 'Z'},
|
||||
{"smallest-maximum-zoom-guess", required_argument, 0, '~'},
|
||||
{"extend-zooms-if-still-dropping", no_argument, &additional[A_EXTEND_ZOOMS], 1},
|
||||
{"extend-zooms-if-still-dropping-maximum", required_argument, 0, '~'},
|
||||
{"one-tile", required_argument, 0, 'R'},
|
||||
|
||||
{"Tile resolution", 0, 0, 0},
|
||||
@@ -3138,6 +3140,8 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
} else if (strcmp(opt, "preserve-point-density-threshold") == 0) {
|
||||
preserve_point_density_threshold = atoll_require(optarg, "Preserve point density threshold");
|
||||
} else if (strcmp(opt, "extend-zooms-if-still-dropping-maximum") == 0) {
|
||||
extend_zooms_max = atoll_require(optarg, "Maximum number by which to extend zooms");
|
||||
} else {
|
||||
fprintf(stderr, "%s: Unrecognized option --%s\n", argv[0], opt);
|
||||
exit(EXIT_ARGS);
|
||||
@@ -3585,7 +3589,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
}
|
||||
|
||||
if (extra_detail >= 0) {
|
||||
if (extra_detail >= 0 || additional[A_EXTEND_ZOOMS] || extend_zooms_max > 0) {
|
||||
geometry_scale = 0;
|
||||
} else {
|
||||
geometry_scale = 32 - (full_detail + maxzoom);
|
||||
|
||||
@@ -61,6 +61,7 @@ extern int tiny_polygon_size;
|
||||
extern size_t limit_tile_feature_count;
|
||||
extern size_t limit_tile_feature_count_at_maxzoom;
|
||||
extern std::map<std::string, serial_val> set_attributes;
|
||||
extern long long extend_zooms_max;
|
||||
|
||||
struct order_field {
|
||||
std::string name;
|
||||
|
||||
@@ -403,6 +403,9 @@ Parallel processing will also be automatic if the input file is in FlatGeobuf fo
|
||||
The detail and simplification options that ordinarily apply only to the maximum zoom level will apply both to the originally
|
||||
specified maximum zoom and to any levels added beyond that.
|
||||
.IP \(bu 2
|
||||
\fB\fC\-\-extend\-zooms\-if\-still\-dropping\-maximum=\fR\fIcount\fP: Increase the maxzoom if features are still being dropped at that zoom level
|
||||
by up to \fIcount\fP zoom levels.
|
||||
.IP \(bu 2
|
||||
\fB\fC\-R\fR \fIzoom\fP\fB\fC/\fR\fIx\fP\fB\fC/\fR\fIy\fP or \fB\fC\-\-one\-tile=\fR\fIzoom\fP\fB\fC/\fR\fIx\fP\fB\fC/\fR\fIy\fP: Set the minzoom and maxzoom to \fIzoom\fP and produce only
|
||||
the single specified tile at that zoom level.
|
||||
.RE
|
||||
@@ -965,6 +968,13 @@ The options are:
|
||||
.IP \(bu 2
|
||||
\fB\fC\-r\fR or \fB\fC\-\-read\-from\fR: list of input mbtiles to read from.
|
||||
.RE
|
||||
.SS Overzooming
|
||||
.RS
|
||||
.IP \(bu 2
|
||||
\fB\fC\-\-overzoom\fR: If one of the source tilesets has a larger maxzoom than the others, scale up tiles from the tilesets with the lower maxzooms so they will all have the same maxzoom in the output tileset.
|
||||
.IP \(bu 2
|
||||
\fB\fC\-\-buffer=\fR\fIpixels\fP or \fB\fC\-b\fR \fIpixels\fP: Set the size of the tile buffer in the overzoomed tiles.
|
||||
.RE
|
||||
.SS Tileset description and attribution
|
||||
.RS
|
||||
.IP \(bu 2
|
||||
|
||||
+2
-120
@@ -11,128 +11,10 @@ extern char *optarg;
|
||||
extern int optind;
|
||||
|
||||
int detail = 12; // tippecanoe-style: mvt extent == 1 << detail
|
||||
int buffer = 5; // tippecanoe-style: mvt buffer == extent * buffer / 256;
|
||||
int buffer = 5; // tippecanoe-style: mvt buffer == extent * buffer / 256;
|
||||
|
||||
std::set<std::string> keep;
|
||||
|
||||
std::string overzoom(std::string s, int oz, int ox, int oy, int nz, int nx, int ny) {
|
||||
mvt_tile tile, outtile;
|
||||
bool was_compressed;
|
||||
|
||||
try {
|
||||
if (!tile.decode(s, was_compressed)) {
|
||||
fprintf(stderr, "Couldn't parse tile %d/%u/%u\n", oz, ox, oy);
|
||||
exit(EXIT_MVT);
|
||||
}
|
||||
} catch (std::exception const &e) {
|
||||
fprintf(stderr, "PBF decoding error in tile %d/%u/%u\n", oz, ox, oy);
|
||||
exit(EXIT_PROTOBUF);
|
||||
}
|
||||
|
||||
for (auto const &layer : tile.layers) {
|
||||
mvt_layer outlayer = mvt_layer();
|
||||
|
||||
outlayer.name = layer.name;
|
||||
outlayer.version = layer.version;
|
||||
outlayer.extent = 1LL << detail;
|
||||
|
||||
for (auto const &feature : layer.features) {
|
||||
mvt_feature outfeature;
|
||||
drawvec geom;
|
||||
int t = feature.type;
|
||||
|
||||
// Convert feature geometry to world coordinates
|
||||
|
||||
long long tilesize = 1LL << (32 - oz); // source tile size in world coordinates
|
||||
draw ring_closure(0, 0, 0);
|
||||
|
||||
for (auto const &g : feature.geometry) {
|
||||
if (g.op == mvt_closepath) {
|
||||
geom.push_back(ring_closure);
|
||||
} else {
|
||||
geom.emplace_back(g.op,
|
||||
g.x * tilesize / layer.extent + ox * tilesize,
|
||||
g.y * tilesize / layer.extent + oy * tilesize);
|
||||
|
||||
if (g.op == mvt_moveto) {
|
||||
ring_closure = geom.back();
|
||||
ring_closure.op = mvt_lineto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Now offset from world coordinates to output tile coordinates,
|
||||
// but retain world scale, because that is what tippecanoe clipping expects
|
||||
|
||||
long long outtilesize = 1LL << (32 - nz); // destination tile size in world coordinates
|
||||
for (auto &g : geom) {
|
||||
g.x -= nx * outtilesize;
|
||||
g.y -= ny * outtilesize;
|
||||
}
|
||||
|
||||
// Clip to output tile
|
||||
|
||||
if (t == VT_LINE) {
|
||||
geom = clip_lines(geom, nz, buffer);
|
||||
} else if (t == VT_POLYGON) {
|
||||
geom = simple_clip_poly(geom, nz, buffer);
|
||||
} else if (t == VT_POINT) {
|
||||
geom = clip_point(geom, nz, buffer);
|
||||
}
|
||||
|
||||
// Scale to output tile extent
|
||||
|
||||
to_tile_scale(geom, nz, detail);
|
||||
|
||||
// Clean geometries
|
||||
|
||||
geom = remove_noop(geom, t, 0);
|
||||
if (t == VT_POLYGON) {
|
||||
geom = clean_or_clip_poly(geom, 0, 0, false);
|
||||
geom = close_poly(geom);
|
||||
}
|
||||
|
||||
// Add geometry to output feature
|
||||
|
||||
outfeature.type = t;
|
||||
for (auto const &g : geom) {
|
||||
outfeature.geometry.emplace_back(g.op, g.x, g.y);
|
||||
}
|
||||
|
||||
// ID and attributes, if it didn't get clipped away
|
||||
|
||||
if (outfeature.geometry.size() > 0) {
|
||||
if (feature.has_id) {
|
||||
outfeature.has_id = true;
|
||||
outfeature.id = feature.id;
|
||||
}
|
||||
|
||||
for (size_t i = 0; i + 1 < feature.tags.size(); i += 2) {
|
||||
if (keep.size() == 0 || keep.find(layer.keys[feature.tags[i]]) != keep.end()) {
|
||||
outlayer.tag(outfeature, layer.keys[feature.tags[i]], layer.values[feature.tags[i + 1]]);
|
||||
}
|
||||
}
|
||||
|
||||
outlayer.features.push_back(outfeature);
|
||||
}
|
||||
}
|
||||
|
||||
if (outlayer.features.size() > 0) {
|
||||
outtile.layers.push_back(outlayer);
|
||||
}
|
||||
}
|
||||
|
||||
if (outtile.layers.size() > 0) {
|
||||
std::string pbf = outtile.encode();
|
||||
std::string compressed;
|
||||
compress(pbf, compressed, true);
|
||||
|
||||
return compressed;
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
void usage(char **argv) {
|
||||
fprintf(stderr, "Usage: %s -o newtile.pbf.gz tile.pbf.gz oz/ox/oy nz/nx/ny\n", argv[0]);
|
||||
fprintf(stderr, "to create tile nz/nx/ny from tile oz/ox/oy\n");
|
||||
@@ -209,7 +91,7 @@ int main(int argc, char **argv) {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
std::string out = overzoom(tile, oz, ox, oy, nz, nx, ny);
|
||||
std::string out = overzoom(tile, oz, ox, oy, nz, nx, ny, detail, buffer, keep);
|
||||
fwrite(out.c_str(), sizeof(char), out.size(), f);
|
||||
fclose(f);
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
,
|
||||
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 3, "sovereignt": "Mozambique", "sov_a3": "MOZ", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Mozambique", "adm0_a3": "MOZ", "geou_dif": 0, "geounit": "Mozambique", "gu_a3": "MOZ", "su_dif": 0, "subunit": "Mozambique", "su_a3": "MOZ", "brk_diff": 0, "name": "Mozambique", "name_long": "Mozambique", "brk_a3": "MOZ", "brk_name": "Mozambique", "abbrev": "Moz.", "postal": "MZ", "formal_en": "Republic of Mozambique", "name_sort": "Mozambique", "mapcolor7": 4, "mapcolor8": 2, "mapcolor9": 1, "mapcolor13": 4, "pop_est": 21669278, "gdp_md_est": 18940, "pop_year": -99, "lastcensus": 2007, "gdp_year": -99, "economy": "7. Least developed region", "income_grp": "5. Low income", "wikipedia": -99, "iso_a2": "MZ", "iso_a3": "MOZ", "iso_n3": "508", "un_a3": "508", "wb_a2": "MZ", "wb_a3": "MOZ", "woe_id": -99, "adm0_a3_is": "MOZ", "adm0_a3_us": "MOZ", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Eastern Africa", "region_wb": "Sub-Saharan Africa", "name_len": 10, "long_len": 10, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 44.736328, -5.965754 ], [ 44.736328, -14.604847 ], [ 35.947266, -14.604847 ], [ 35.947266, -5.965754 ], [ 44.736328, -5.965754 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 2, "sovereignt": "South Africa", "sov_a3": "ZAF", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "South Africa", "adm0_a3": "ZAF", "geou_dif": 0, "geounit": "South Africa", "gu_a3": "ZAF", "su_dif": 0, "subunit": "South Africa", "su_a3": "ZAF", "brk_diff": 0, "name": "South Africa", "name_long": "South Africa", "brk_a3": "ZAF", "brk_name": "South Africa", "abbrev": "S.Af.", "postal": "ZA", "formal_en": "Republic of South Africa", "name_sort": "South Africa", "mapcolor7": 2, "mapcolor8": 3, "mapcolor9": 4, "mapcolor13": 2, "pop_est": 49052489, "gdp_md_est": 491000, "pop_year": -99, "lastcensus": 2001, "gdp_year": -99, "economy": "5. Emerging region: G20", "income_grp": "3. Upper middle income", "wikipedia": -99, "iso_a2": "ZA", "iso_a3": "ZAF", "iso_n3": "710", "un_a3": "710", "wb_a2": "ZA", "wb_a3": "ZAF", "woe_id": -99, "adm0_a3_is": "ZAF", "adm0_a3_us": "ZAF", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Southern Africa", "region_wb": "Sub-Saharan Africa", "name_len": 12, "long_len": 12, "abbrev_len": 5, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 29.443359, -22.105999 ], [ 31.201172, -22.268764 ], [ 31.904297, -24.367114 ], [ 31.728516, -25.482951 ], [ 31.816406, -25.878994 ], [ 31.376953, -25.641526 ], [ 31.025391, -25.720735 ], [ 30.673828, -26.431228 ], [ 30.673828, -26.745610 ], [ 31.289062, -27.293689 ], [ 31.904297, -27.215556 ], [ 32.080078, -26.745610 ], [ 32.871094, -26.745610 ], [ 32.431641, -28.304381 ], [ 32.167969, -28.767659 ], [ 31.289062, -29.382175 ], [ 30.058594, -31.128199 ], [ 28.916016, -32.175612 ], [ 28.212891, -32.768800 ], [ 26.455078, -33.651208 ], [ 25.927734, -33.651208 ], [ 25.751953, -33.943360 ], [ 25.136719, -33.797409 ], [ 24.697266, -34.016242 ], [ 23.554688, -33.797409 ], [ 23.027344, -33.943360 ], [ 22.587891, -33.870416 ], [ 20.654297, -34.452218 ], [ 20.039062, -34.813803 ], [ 19.599609, -34.813803 ], [ 19.160156, -34.452218 ], [ 18.896484, -34.452218 ], [ 18.457031, -34.016242 ], [ 18.369141, -34.161818 ], [ 18.281250, -33.284620 ], [ 17.929688, -32.620870 ], [ 18.281250, -32.398516 ], [ 18.193359, -31.653381 ], [ 16.347656, -28.613459 ], [ 16.787109, -28.071980 ], [ 17.226562, -28.381735 ], [ 17.402344, -28.767659 ], [ 18.457031, -29.075375 ], [ 18.984375, -28.998532 ], [ 19.863281, -28.459033 ], [ 19.863281, -24.766785 ], [ 20.126953, -24.926295 ], [ 20.742188, -25.878994 ], [ 20.654297, -26.509905 ], [ 20.917969, -26.824071 ], [ 21.621094, -26.745610 ], [ 22.587891, -25.958045 ], [ 22.851562, -25.482951 ], [ 23.291016, -25.244696 ], [ 24.169922, -25.641526 ], [ 25.048828, -25.720735 ], [ 25.664062, -25.482951 ], [ 25.927734, -24.686952 ], [ 26.455078, -24.607069 ], [ 27.158203, -23.563987 ], [ 28.037109, -22.836946 ], [ 29.443359, -22.105999 ] ], [ [ 28.564453, -28.613459 ], [ 27.509766, -29.228890 ], [ 26.982422, -29.840644 ], [ 27.773438, -30.675715 ], [ 28.125000, -30.524413 ], [ 28.300781, -30.221102 ], [ 28.828125, -30.069094 ], [ 29.355469, -29.228890 ], [ 28.564453, -28.613459 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 2, "sovereignt": "South Africa", "sov_a3": "ZAF", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "South Africa", "adm0_a3": "ZAF", "geou_dif": 0, "geounit": "South Africa", "gu_a3": "ZAF", "su_dif": 0, "subunit": "South Africa", "su_a3": "ZAF", "brk_diff": 0, "name": "South Africa", "name_long": "South Africa", "brk_a3": "ZAF", "brk_name": "South Africa", "abbrev": "S.Af.", "postal": "ZA", "formal_en": "Republic of South Africa", "name_sort": "South Africa", "mapcolor7": 2, "mapcolor8": 3, "mapcolor9": 4, "mapcolor13": 2, "pop_est": 49052489, "gdp_md_est": 491000, "pop_year": -99, "lastcensus": 2001, "gdp_year": -99, "economy": "5. Emerging region: G20", "income_grp": "3. Upper middle income", "wikipedia": -99, "iso_a2": "ZA", "iso_a3": "ZAF", "iso_n3": "710", "un_a3": "710", "wb_a2": "ZA", "wb_a3": "ZAF", "woe_id": -99, "adm0_a3_is": "ZAF", "adm0_a3_us": "ZAF", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Southern Africa", "region_wb": "Sub-Saharan Africa", "name_len": 12, "long_len": 12, "abbrev_len": 5, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 29.443359, -22.105999 ], [ 31.201172, -22.268764 ], [ 31.904297, -24.367114 ], [ 31.728516, -25.482951 ], [ 31.816406, -25.878994 ], [ 31.376953, -25.641526 ], [ 31.025391, -25.720735 ], [ 30.673828, -26.431228 ], [ 30.673828, -26.745610 ], [ 31.289062, -27.293689 ], [ 31.904297, -27.215556 ], [ 32.080078, -26.745610 ], [ 32.871094, -26.745610 ], [ 32.431641, -28.304381 ], [ 32.167969, -28.767659 ], [ 31.289062, -29.382175 ], [ 30.058594, -31.128199 ], [ 28.916016, -32.175612 ], [ 28.212891, -32.768800 ], [ 26.455078, -33.651208 ], [ 25.927734, -33.651208 ], [ 25.751953, -33.943360 ], [ 25.136719, -33.797409 ], [ 24.697266, -34.016242 ], [ 23.554688, -33.797409 ], [ 23.027344, -33.943360 ], [ 22.587891, -33.870416 ], [ 20.654297, -34.452218 ], [ 20.039062, -34.813803 ], [ 19.599609, -34.813803 ], [ 19.160156, -34.452218 ], [ 18.896484, -34.452218 ], [ 18.457031, -34.016242 ], [ 18.369141, -34.161818 ], [ 18.281250, -33.284620 ], [ 17.929688, -32.620870 ], [ 18.281250, -32.398516 ], [ 18.193359, -31.653381 ], [ 16.347656, -28.613459 ], [ 16.787109, -28.071980 ], [ 17.226562, -28.381735 ], [ 17.402344, -28.767659 ], [ 18.457031, -29.075375 ], [ 18.984375, -28.998532 ], [ 19.863281, -28.459033 ], [ 19.863281, -24.766785 ], [ 20.126953, -24.926295 ], [ 20.742188, -25.878994 ], [ 20.654297, -26.509905 ], [ 20.917969, -26.824071 ], [ 21.621094, -26.745610 ], [ 22.587891, -25.958045 ], [ 22.851562, -25.482951 ], [ 23.291016, -25.244696 ], [ 24.169922, -25.641526 ], [ 25.048828, -25.720735 ], [ 25.664062, -25.482951 ], [ 25.927734, -24.686952 ], [ 26.455078, -24.607069 ], [ 27.158203, -23.563987 ], [ 28.037109, -22.836946 ], [ 29.443359, -22.105999 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 3, "sovereignt": "Madagascar", "sov_a3": "MDG", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Madagascar", "adm0_a3": "MDG", "geou_dif": 0, "geounit": "Madagascar", "gu_a3": "MDG", "su_dif": 0, "subunit": "Madagascar", "su_a3": "MDG", "brk_diff": 0, "name": "Madagascar", "name_long": "Madagascar", "brk_a3": "MDG", "brk_name": "Madagascar", "abbrev": "Mad.", "postal": "MG", "formal_en": "Republic of Madagascar", "name_sort": "Madagascar", "mapcolor7": 6, "mapcolor8": 5, "mapcolor9": 2, "mapcolor13": 3, "pop_est": 20653556, "gdp_md_est": 20130, "pop_year": -99, "lastcensus": 1993, "gdp_year": -99, "economy": "7. Least developed region", "income_grp": "5. Low income", "wikipedia": -99, "iso_a2": "MG", "iso_a3": "MDG", "iso_n3": "450", "un_a3": "450", "wb_a2": "MG", "wb_a3": "MDG", "woe_id": -99, "adm0_a3_is": "MDG", "adm0_a3_us": "MDG", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Eastern Africa", "region_wb": "Sub-Saharan Africa", "name_len": 10, "long_len": 10, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 53.613281, -7.710992 ], [ 53.613281, -16.299051 ], [ 44.824219, -16.299051 ], [ 44.824219, -7.710992 ], [ 53.613281, -7.710992 ] ] ] } }
|
||||
,
|
||||
|
||||
+1
-1
@@ -61,7 +61,7 @@
|
||||
,
|
||||
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 2, "sovereignt": "Indonesia", "sov_a3": "IDN", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Indonesia", "adm0_a3": "IDN", "geou_dif": 0, "geounit": "Indonesia", "gu_a3": "IDN", "su_dif": 0, "subunit": "Indonesia", "su_a3": "IDN", "brk_diff": 0, "name": "Indonesia", "name_long": "Indonesia", "brk_a3": "IDN", "brk_name": "Indonesia", "abbrev": "Indo.", "postal": "INDO", "formal_en": "Republic of Indonesia", "name_sort": "Indonesia", "mapcolor7": 6, "mapcolor8": 6, "mapcolor9": 6, "mapcolor13": 11, "pop_est": 240271522, "gdp_md_est": 914600, "pop_year": -99, "lastcensus": 2010, "gdp_year": -99, "economy": "4. Emerging region: MIKT", "income_grp": "4. Lower middle income", "wikipedia": -99, "iso_a2": "ID", "iso_a3": "IDN", "iso_n3": "360", "un_a3": "360", "wb_a2": "ID", "wb_a3": "IDN", "woe_id": -99, "adm0_a3_is": "IDN", "adm0_a3_us": "IDN", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Asia", "region_un": "Asia", "subregion": "South-Eastern Asia", "region_wb": "East Asia & Pacific", "name_len": 9, "long_len": 9, "abbrev_len": 5, "tiny": -99, "homepart": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 132.363281, -0.351560 ], [ 133.945312, -0.790990 ], [ 134.121094, -1.142502 ], [ 134.384766, -2.811371 ], [ 135.439453, -3.337954 ], [ 136.318359, -2.284551 ], [ 137.460938, -1.669686 ], [ 138.339844, -1.669686 ], [ 139.921875, -2.372369 ], [ 140.976562, -2.635789 ], [ 141.064453, -9.102097 ], [ 140.185547, -8.320212 ], [ 139.130859, -8.059230 ], [ 138.867188, -8.407168 ], [ 137.636719, -8.407168 ], [ 138.076172, -7.623887 ], [ 138.691406, -7.362467 ], [ 138.427734, -6.227934 ], [ 137.900391, -5.353521 ], [ 135.966797, -4.565474 ], [ 135.175781, -4.477856 ], [ 133.681641, -3.513421 ], [ 133.330078, -4.039618 ], [ 132.978516, -4.127285 ], [ 132.714844, -3.776559 ], [ 132.714844, -3.337954 ], [ 132.011719, -2.811371 ], [ 133.066406, -2.460181 ], [ 133.769531, -2.460181 ], [ 133.681641, -2.196727 ], [ 132.275391, -2.196727 ], [ 131.835938, -1.581830 ], [ 130.957031, -1.406109 ], [ 130.517578, -0.966751 ], [ 131.835938, -0.703107 ], [ 132.363281, -0.351560 ] ] ], [ [ [ 103.183594, -4.653080 ], [ 102.568359, -4.214943 ], [ 101.425781, -2.811371 ], [ 100.107422, -0.615223 ], [ 99.228516, 0.175781 ], [ 98.613281, 1.845384 ], [ 97.734375, 2.460181 ], [ 97.207031, 3.337954 ], [ 96.416016, 3.864255 ], [ 95.361328, 5.003394 ], [ 95.273438, 5.441022 ], [ 97.470703, 5.266008 ], [ 100.634766, 2.108899 ], [ 101.689453, 2.108899 ], [ 102.480469, 1.406109 ], [ 103.095703, 0.527336 ], [ 103.798828, 0.087891 ], [ 103.447266, -0.703107 ], [ 103.974609, -1.054628 ], [ 104.326172, -1.054628 ], [ 104.501953, -1.757537 ], [ 104.853516, -2.372369 ], [ 105.644531, -2.460181 ], [ 106.083984, -3.074695 ], [ 105.820312, -4.302591 ], [ 105.820312, -4.653080 ], [ 107.578125, -4.653080 ], [ 107.578125, -9.015302 ], [ 103.183594, -9.015302 ], [ 103.183594, -4.653080 ] ] ], [ [ [ 116.982422, 4.302591 ], [ 117.861328, 4.127285 ], [ 117.333984, 3.250209 ], [ 118.037109, 2.284551 ], [ 117.861328, 1.845384 ], [ 119.003906, 0.878872 ], [ 117.773438, 0.790990 ], [ 117.509766, 0.087891 ], [ 117.509766, -0.790990 ], [ 116.542969, -1.493971 ], [ 116.542969, -2.460181 ], [ 116.191406, -4.039618 ], [ 116.015625, -3.688855 ], [ 114.873047, -4.127285 ], [ 114.433594, -3.513421 ], [ 113.730469, -3.425692 ], [ 113.291016, -3.162456 ], [ 112.060547, -3.513421 ], [ 111.708984, -2.986927 ], [ 111.005859, -3.074695 ], [ 110.214844, -2.899153 ], [ 110.039062, -1.581830 ], [ 109.599609, -1.318243 ], [ 109.072266, -0.439449 ], [ 109.072266, 1.318243 ], [ 109.687500, 2.021065 ], [ 109.863281, 1.318243 ], [ 110.478516, 0.790990 ], [ 111.181641, 0.966751 ], [ 111.796875, 0.878872 ], [ 112.412109, 1.406109 ], [ 112.851562, 1.493971 ], [ 113.818359, 1.230374 ], [ 114.609375, 1.406109 ], [ 115.136719, 2.811371 ], [ 115.488281, 3.162456 ], [ 115.839844, 4.302591 ], [ 116.982422, 4.302591 ] ] ], [ [ [ 121.992188, -3.513421 ], [ 121.992188, -7.885147 ], [ 117.597656, -7.885147 ], [ 117.597656, -3.513421 ], [ 121.992188, -3.513421 ] ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 2, "sovereignt": "South Africa", "sov_a3": "ZAF", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "South Africa", "adm0_a3": "ZAF", "geou_dif": 0, "geounit": "South Africa", "gu_a3": "ZAF", "su_dif": 0, "subunit": "South Africa", "su_a3": "ZAF", "brk_diff": 0, "name": "South Africa", "name_long": "South Africa", "brk_a3": "ZAF", "brk_name": "South Africa", "abbrev": "S.Af.", "postal": "ZA", "formal_en": "Republic of South Africa", "name_sort": "South Africa", "mapcolor7": 2, "mapcolor8": 3, "mapcolor9": 4, "mapcolor13": 2, "pop_est": 49052489, "gdp_md_est": 491000, "pop_year": -99, "lastcensus": 2001, "gdp_year": -99, "economy": "5. Emerging region: G20", "income_grp": "3. Upper middle income", "wikipedia": -99, "iso_a2": "ZA", "iso_a3": "ZAF", "iso_n3": "710", "un_a3": "710", "wb_a2": "ZA", "wb_a3": "ZAF", "woe_id": -99, "adm0_a3_is": "ZAF", "adm0_a3_us": "ZAF", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Southern Africa", "region_wb": "Sub-Saharan Africa", "name_len": 12, "long_len": 12, "abbrev_len": 5, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 29.443359, -22.105999 ], [ 31.201172, -22.268764 ], [ 31.904297, -24.367114 ], [ 31.728516, -25.482951 ], [ 31.816406, -25.878994 ], [ 31.376953, -25.641526 ], [ 31.025391, -25.720735 ], [ 30.673828, -26.431228 ], [ 30.673828, -26.745610 ], [ 31.289062, -27.293689 ], [ 31.904297, -27.215556 ], [ 32.080078, -26.745610 ], [ 32.871094, -26.745610 ], [ 32.431641, -28.304381 ], [ 32.167969, -28.767659 ], [ 31.289062, -29.382175 ], [ 30.058594, -31.128199 ], [ 28.916016, -32.175612 ], [ 28.212891, -32.768800 ], [ 26.455078, -33.651208 ], [ 25.927734, -33.651208 ], [ 25.751953, -33.943360 ], [ 25.136719, -33.797409 ], [ 24.697266, -34.016242 ], [ 23.554688, -33.797409 ], [ 23.027344, -33.943360 ], [ 22.587891, -33.870416 ], [ 20.654297, -34.452218 ], [ 20.039062, -34.813803 ], [ 19.599609, -34.813803 ], [ 19.160156, -34.452218 ], [ 18.896484, -34.452218 ], [ 18.457031, -34.016242 ], [ 18.369141, -34.161818 ], [ 18.281250, -33.284620 ], [ 17.929688, -32.620870 ], [ 18.281250, -32.398516 ], [ 18.193359, -31.653381 ], [ 16.347656, -28.613459 ], [ 16.787109, -28.071980 ], [ 17.226562, -28.381735 ], [ 17.402344, -28.767659 ], [ 18.457031, -29.075375 ], [ 18.984375, -28.998532 ], [ 19.863281, -28.459033 ], [ 19.863281, -24.766785 ], [ 20.126953, -24.926295 ], [ 20.742188, -25.878994 ], [ 20.654297, -26.509905 ], [ 20.917969, -26.824071 ], [ 21.621094, -26.745610 ], [ 22.587891, -25.958045 ], [ 22.851562, -25.482951 ], [ 23.291016, -25.244696 ], [ 24.169922, -25.641526 ], [ 25.048828, -25.720735 ], [ 25.664062, -25.482951 ], [ 25.927734, -24.686952 ], [ 26.455078, -24.607069 ], [ 27.158203, -23.563987 ], [ 28.037109, -22.836946 ], [ 29.443359, -22.105999 ] ], [ [ 28.564453, -28.613459 ], [ 27.509766, -29.228890 ], [ 26.982422, -29.840644 ], [ 27.773438, -30.675715 ], [ 28.125000, -30.524413 ], [ 28.300781, -30.221102 ], [ 28.828125, -30.069094 ], [ 29.355469, -29.228890 ], [ 28.564453, -28.613459 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 2, "sovereignt": "South Africa", "sov_a3": "ZAF", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "South Africa", "adm0_a3": "ZAF", "geou_dif": 0, "geounit": "South Africa", "gu_a3": "ZAF", "su_dif": 0, "subunit": "South Africa", "su_a3": "ZAF", "brk_diff": 0, "name": "South Africa", "name_long": "South Africa", "brk_a3": "ZAF", "brk_name": "South Africa", "abbrev": "S.Af.", "postal": "ZA", "formal_en": "Republic of South Africa", "name_sort": "South Africa", "mapcolor7": 2, "mapcolor8": 3, "mapcolor9": 4, "mapcolor13": 2, "pop_est": 49052489, "gdp_md_est": 491000, "pop_year": -99, "lastcensus": 2001, "gdp_year": -99, "economy": "5. Emerging region: G20", "income_grp": "3. Upper middle income", "wikipedia": -99, "iso_a2": "ZA", "iso_a3": "ZAF", "iso_n3": "710", "un_a3": "710", "wb_a2": "ZA", "wb_a3": "ZAF", "woe_id": -99, "adm0_a3_is": "ZAF", "adm0_a3_us": "ZAF", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Southern Africa", "region_wb": "Sub-Saharan Africa", "name_len": 12, "long_len": 12, "abbrev_len": 5, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 29.443359, -22.105999 ], [ 31.201172, -22.268764 ], [ 31.904297, -24.367114 ], [ 31.728516, -25.482951 ], [ 31.816406, -25.878994 ], [ 31.376953, -25.641526 ], [ 31.025391, -25.720735 ], [ 30.673828, -26.431228 ], [ 30.673828, -26.745610 ], [ 31.289062, -27.293689 ], [ 31.904297, -27.215556 ], [ 32.080078, -26.745610 ], [ 32.871094, -26.745610 ], [ 32.431641, -28.304381 ], [ 32.167969, -28.767659 ], [ 31.289062, -29.382175 ], [ 30.058594, -31.128199 ], [ 28.916016, -32.175612 ], [ 28.212891, -32.768800 ], [ 26.455078, -33.651208 ], [ 25.927734, -33.651208 ], [ 25.751953, -33.943360 ], [ 25.136719, -33.797409 ], [ 24.697266, -34.016242 ], [ 23.554688, -33.797409 ], [ 23.027344, -33.943360 ], [ 22.587891, -33.870416 ], [ 20.654297, -34.452218 ], [ 20.039062, -34.813803 ], [ 19.599609, -34.813803 ], [ 19.160156, -34.452218 ], [ 18.896484, -34.452218 ], [ 18.457031, -34.016242 ], [ 18.369141, -34.161818 ], [ 18.281250, -33.284620 ], [ 17.929688, -32.620870 ], [ 18.281250, -32.398516 ], [ 18.193359, -31.653381 ], [ 16.347656, -28.613459 ], [ 16.787109, -28.071980 ], [ 17.226562, -28.381735 ], [ 17.402344, -28.767659 ], [ 18.457031, -29.075375 ], [ 18.984375, -28.998532 ], [ 19.863281, -28.459033 ], [ 19.863281, -24.766785 ], [ 20.126953, -24.926295 ], [ 20.742188, -25.878994 ], [ 20.654297, -26.509905 ], [ 20.917969, -26.824071 ], [ 21.621094, -26.745610 ], [ 22.587891, -25.958045 ], [ 22.851562, -25.482951 ], [ 23.291016, -25.244696 ], [ 24.169922, -25.641526 ], [ 25.048828, -25.720735 ], [ 25.664062, -25.482951 ], [ 25.927734, -24.686952 ], [ 26.455078, -24.607069 ], [ 27.158203, -23.563987 ], [ 28.037109, -22.836946 ], [ 29.443359, -22.105999 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 2, "sovereignt": "Chile", "sov_a3": "CHL", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Chile", "adm0_a3": "CHL", "geou_dif": 0, "geounit": "Chile", "gu_a3": "CHL", "su_dif": 0, "subunit": "Chile", "su_a3": "CHL", "brk_diff": 0, "name": "Chile", "name_long": "Chile", "brk_a3": "CHL", "brk_name": "Chile", "abbrev": "Chile", "postal": "CL", "formal_en": "Republic of Chile", "name_sort": "Chile", "mapcolor7": 5, "mapcolor8": 1, "mapcolor9": 5, "mapcolor13": 9, "pop_est": 16601707, "gdp_md_est": 244500, "pop_year": -99, "lastcensus": 2002, "gdp_year": -99, "economy": "5. Emerging region: G20", "income_grp": "3. Upper middle income", "wikipedia": -99, "iso_a2": "CL", "iso_a3": "CHL", "iso_n3": "152", "un_a3": "152", "wb_a2": "CL", "wb_a3": "CHL", "woe_id": -99, "adm0_a3_is": "CHL", "adm0_a3_us": "CHL", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "South America", "region_un": "Americas", "subregion": "South America", "region_wb": "Latin America & Caribbean", "name_len": 5, "long_len": 5, "abbrev_len": 5, "tiny": -99, "homepart": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -65.126953, -54.007769 ], [ -65.126953, -56.511018 ], [ -69.521484, -56.511018 ], [ -69.521484, -54.007769 ], [ -65.126953, -54.007769 ] ] ], [ [ [ -69.609375, -17.560247 ], [ -69.082031, -18.229351 ], [ -68.994141, -18.979026 ], [ -68.466797, -19.394068 ], [ -68.730469, -20.385825 ], [ -68.203125, -21.534847 ], [ -67.851562, -22.836946 ], [ -67.148438, -22.755921 ], [ -66.972656, -22.998852 ], [ -67.324219, -24.046464 ], [ -68.378906, -24.527135 ], [ -68.378906, -26.194877 ], [ -68.554688, -26.509905 ], [ -68.291016, -26.902477 ], [ -68.994141, -27.527758 ], [ -69.697266, -28.459033 ], [ -70.048828, -29.382175 ], [ -69.960938, -30.372875 ], [ -70.576172, -31.353637 ], [ -70.048828, -33.063924 ], [ -69.785156, -33.284620 ], [ -69.785156, -34.161818 ], [ -70.400391, -35.173808 ], [ -70.400391, -36.031332 ], [ -71.103516, -36.668419 ], [ -71.103516, -37.579413 ], [ -70.839844, -38.548165 ], [ -71.455078, -38.891033 ], [ -71.894531, -40.847060 ], [ -71.718750, -42.032974 ], [ -72.158203, -42.228517 ], [ -71.894531, -43.389082 ], [ -71.455078, -43.771094 ], [ -71.806641, -44.213710 ], [ -71.367188, -44.402392 ], [ -71.191406, -44.777936 ], [ -71.630859, -44.964798 ], [ -71.542969, -45.583290 ], [ -71.894531, -46.860191 ], [ -72.421875, -47.754098 ], [ -72.333984, -48.224673 ], [ -72.685547, -48.864715 ], [ -73.388672, -49.325122 ], [ -73.300781, -50.401515 ], [ -72.949219, -50.736455 ], [ -72.333984, -50.680797 ], [ -72.333984, -51.399206 ], [ -71.894531, -51.998410 ], [ -69.521484, -52.160455 ], [ -68.554688, -52.321911 ], [ -69.433594, -52.268157 ], [ -70.839844, -52.908902 ], [ -71.015625, -53.852527 ], [ -71.455078, -53.852527 ], [ -72.597656, -53.540307 ], [ -73.740234, -52.855864 ], [ -74.970703, -52.268157 ], [ -75.234375, -51.618017 ], [ -74.970703, -51.069017 ], [ -75.498047, -50.401515 ], [ -75.585938, -48.690960 ], [ -75.146484, -47.694974 ], [ -74.091797, -46.920255 ], [ -75.673828, -46.619261 ], [ -74.707031, -45.767523 ], [ -74.355469, -44.087585 ], [ -73.212891, -44.465151 ], [ -72.685547, -42.358544 ], [ -73.388672, -42.098222 ], [ -73.740234, -43.389082 ], [ -74.355469, -43.197167 ], [ -73.652344, -39.909736 ], [ -73.212891, -39.232253 ], [ -73.476562, -38.272689 ], [ -73.564453, -37.160317 ], [ -73.125000, -37.090240 ], [ -71.894531, -33.943360 ], [ -71.455078, -32.398516 ], [ -71.630859, -30.902225 ], [ -71.367188, -30.069094 ], [ -71.455078, -28.844674 ], [ -70.927734, -27.605671 ], [ -70.751953, -25.720735 ], [ -70.048828, -21.371244 ], [ -70.136719, -19.725342 ], [ -70.400391, -18.312811 ], [ -69.873047, -18.062312 ], [ -69.609375, -17.560247 ] ] ] ] } }
|
||||
,
|
||||
|
||||
+1
-1
@@ -247,7 +247,7 @@
|
||||
,
|
||||
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 3, "sovereignt": "Mozambique", "sov_a3": "MOZ", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Mozambique", "adm0_a3": "MOZ", "geou_dif": 0, "geounit": "Mozambique", "gu_a3": "MOZ", "su_dif": 0, "subunit": "Mozambique", "su_a3": "MOZ", "brk_diff": 0, "name": "Mozambique", "name_long": "Mozambique", "brk_a3": "MOZ", "brk_name": "Mozambique", "abbrev": "Moz.", "postal": "MZ", "formal_en": "Republic of Mozambique", "name_sort": "Mozambique", "mapcolor7": 4, "mapcolor8": 2, "mapcolor9": 1, "mapcolor13": 4, "pop_est": 21669278, "gdp_md_est": 18940, "pop_year": -99, "lastcensus": 2007, "gdp_year": -99, "economy": "7. Least developed region", "income_grp": "5. Low income", "wikipedia": -99, "iso_a2": "MZ", "iso_a3": "MOZ", "iso_n3": "508", "un_a3": "508", "wb_a2": "MZ", "wb_a3": "MOZ", "woe_id": -99, "adm0_a3_is": "MOZ", "adm0_a3_us": "MOZ", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Eastern Africa", "region_wb": "Sub-Saharan Africa", "name_len": 10, "long_len": 10, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 40.341797, -10.314919 ], [ 32.080078, -26.745610 ], [ 30.146484, -14.774883 ], [ 40.341797, -10.314919 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 2, "sovereignt": "South Africa", "sov_a3": "ZAF", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "South Africa", "adm0_a3": "ZAF", "geou_dif": 0, "geounit": "South Africa", "gu_a3": "ZAF", "su_dif": 0, "subunit": "South Africa", "su_a3": "ZAF", "brk_diff": 0, "name": "South Africa", "name_long": "South Africa", "brk_a3": "ZAF", "brk_name": "South Africa", "abbrev": "S.Af.", "postal": "ZA", "formal_en": "Republic of South Africa", "name_sort": "South Africa", "mapcolor7": 2, "mapcolor8": 3, "mapcolor9": 4, "mapcolor13": 2, "pop_est": 49052489, "gdp_md_est": 491000, "pop_year": -99, "lastcensus": 2001, "gdp_year": -99, "economy": "5. Emerging region: G20", "income_grp": "3. Upper middle income", "wikipedia": -99, "iso_a2": "ZA", "iso_a3": "ZAF", "iso_n3": "710", "un_a3": "710", "wb_a2": "ZA", "wb_a3": "ZAF", "woe_id": -99, "adm0_a3_is": "ZAF", "adm0_a3_us": "ZAF", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Southern Africa", "region_wb": "Sub-Saharan Africa", "name_len": 12, "long_len": 12, "abbrev_len": 5, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 31.201172, -22.268764 ], [ 28.916016, -32.175612 ], [ 18.369141, -34.161818 ], [ 19.863281, -24.766785 ], [ 31.201172, -22.268764 ] ], [ [ 29.355469, -29.228890 ], [ 26.982422, -29.840644 ], [ 27.773438, -30.675715 ], [ 29.355469, -29.228890 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 2, "sovereignt": "South Africa", "sov_a3": "ZAF", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "South Africa", "adm0_a3": "ZAF", "geou_dif": 0, "geounit": "South Africa", "gu_a3": "ZAF", "su_dif": 0, "subunit": "South Africa", "su_a3": "ZAF", "brk_diff": 0, "name": "South Africa", "name_long": "South Africa", "brk_a3": "ZAF", "brk_name": "South Africa", "abbrev": "S.Af.", "postal": "ZA", "formal_en": "Republic of South Africa", "name_sort": "South Africa", "mapcolor7": 2, "mapcolor8": 3, "mapcolor9": 4, "mapcolor13": 2, "pop_est": 49052489, "gdp_md_est": 491000, "pop_year": -99, "lastcensus": 2001, "gdp_year": -99, "economy": "5. Emerging region: G20", "income_grp": "3. Upper middle income", "wikipedia": -99, "iso_a2": "ZA", "iso_a3": "ZAF", "iso_n3": "710", "un_a3": "710", "wb_a2": "ZA", "wb_a3": "ZAF", "woe_id": -99, "adm0_a3_is": "ZAF", "adm0_a3_us": "ZAF", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Southern Africa", "region_wb": "Sub-Saharan Africa", "name_len": 12, "long_len": 12, "abbrev_len": 5, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 31.201172, -22.268764 ], [ 28.916016, -32.175612 ], [ 18.369141, -34.161818 ], [ 19.863281, -24.766785 ], [ 31.201172, -22.268764 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 3, "sovereignt": "Madagascar", "sov_a3": "MDG", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Madagascar", "adm0_a3": "MDG", "geou_dif": 0, "geounit": "Madagascar", "gu_a3": "MDG", "su_dif": 0, "subunit": "Madagascar", "su_a3": "MDG", "brk_diff": 0, "name": "Madagascar", "name_long": "Madagascar", "brk_a3": "MDG", "brk_name": "Madagascar", "abbrev": "Mad.", "postal": "MG", "formal_en": "Republic of Madagascar", "name_sort": "Madagascar", "mapcolor7": 6, "mapcolor8": 5, "mapcolor9": 2, "mapcolor13": 3, "pop_est": 20653556, "gdp_md_est": 20130, "pop_year": -99, "lastcensus": 1993, "gdp_year": -99, "economy": "7. Least developed region", "income_grp": "5. Low income", "wikipedia": -99, "iso_a2": "MG", "iso_a3": "MDG", "iso_n3": "450", "un_a3": "450", "wb_a2": "MG", "wb_a3": "MDG", "woe_id": -99, "adm0_a3_is": "MDG", "adm0_a3_us": "MDG", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Eastern Africa", "region_wb": "Sub-Saharan Africa", "name_len": 10, "long_len": 10, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 49.218750, -12.039321 ], [ 45.439453, -25.562265 ], [ 43.945312, -17.392579 ], [ 49.218750, -12.039321 ] ] ] } }
|
||||
,
|
||||
|
||||
+46
-46
@@ -33,7 +33,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 3, "x": 1, "y": 3 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -111.049805, 41.508577 ], [ -111.049805, 41.029643 ], [ -109.050293, 41.004775 ] ], [ [ -91.153564, 33.008663 ], [ -91.087646, 32.953368 ], [ -91.175537, 32.805745 ], [ -91.032715, 32.602362 ], [ -91.076660, 32.481963 ], [ -90.944824, 32.305706 ], [ -91.076660, 32.203505 ], [ -91.131592, 32.017392 ], [ -91.318359, 31.858897 ], [ -91.505127, 31.409912 ], [ -91.625977, 31.297328 ], [ -91.582031, 31.043522 ], [ -90.703125, 31.015279 ], [ -89.758301, 31.015279 ], [ -89.791260, 30.845647 ], [ -89.857178, 30.685164 ], [ -89.791260, 30.552800 ], [ -89.659424, 30.439202 ], [ -89.604492, 30.173625 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -111.049805, 41.508577 ], [ -111.049805, 41.029643 ], [ -109.050293, 41.004775 ] ], [ [ -91.153564, 33.008663 ], [ -91.087646, 32.953368 ], [ -91.175537, 32.805745 ], [ -91.032715, 32.602362 ], [ -91.076660, 32.481963 ], [ -90.944824, 32.305706 ], [ -91.076660, 32.203505 ], [ -91.131592, 32.017392 ], [ -91.318359, 31.858897 ], [ -91.406250, 31.653381 ], [ -91.505127, 31.409912 ], [ -91.625977, 31.297328 ], [ -91.582031, 31.043522 ], [ -90.703125, 31.015279 ], [ -89.758301, 31.015279 ], [ -89.791260, 30.845647 ], [ -89.857178, 30.685164 ], [ -89.791260, 30.552800 ], [ -89.659424, 30.439202 ], [ -89.626465, 30.278044 ], [ -89.604492, 30.173625 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -45,7 +45,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 3, "x": 2, "y": 3 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -90.703125, 41.475660 ], [ -90.571289, 41.508577 ] ], [ [ -89.604492, 30.173625 ], [ -89.659424, 30.439202 ], [ -89.791260, 30.552800 ], [ -89.857178, 30.685164 ], [ -89.791260, 30.845647 ], [ -89.758301, 31.015279 ], [ -90.703125, 31.015279 ] ], [ [ -88.165283, 35.003003 ], [ -85.627441, 34.985003 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -90.703125, 41.475660 ], [ -90.692139, 41.475660 ], [ -90.571289, 41.508577 ] ], [ [ -89.604492, 30.173625 ], [ -89.626465, 30.278044 ], [ -89.659424, 30.439202 ], [ -89.791260, 30.552800 ], [ -89.857178, 30.685164 ], [ -89.791260, 30.845647 ], [ -89.758301, 31.015279 ], [ -90.703125, 31.015279 ] ], [ [ -88.165283, 35.003003 ], [ -86.912842, 35.003003 ], [ -85.627441, 34.985003 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -69,19 +69,19 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 4, "x": 3, "y": 6 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -111.055298, 41.244772 ], [ -111.055298, 41.029643 ], [ -109.050293, 41.000630 ] ], [ [ -109.044800, 36.998166 ], [ -103.002319, 36.993778 ] ], [ [ -91.153564, 33.008663 ], [ -91.082153, 32.953368 ], [ -91.175537, 32.810362 ], [ -91.032715, 32.602362 ], [ -91.071167, 32.477329 ], [ -90.944824, 32.305706 ], [ -91.082153, 32.203505 ], [ -91.126099, 32.017392 ], [ -91.318359, 31.858897 ], [ -91.499634, 31.409912 ], [ -91.625977, 31.297328 ], [ -91.582031, 31.048228 ], [ -90.703125, 31.015279 ], [ -89.758301, 31.015279 ], [ -89.785767, 30.845647 ], [ -89.851685, 30.685164 ], [ -89.791260, 30.557531 ], [ -89.659424, 30.439202 ], [ -89.648438, 30.391830 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -111.055298, 41.244772 ], [ -111.055298, 41.029643 ], [ -109.050293, 41.000630 ] ], [ [ -109.044800, 36.998166 ], [ -107.479248, 36.998166 ], [ -105.897217, 36.998166 ], [ -104.199829, 36.993778 ], [ -103.002319, 36.993778 ] ], [ [ -91.153564, 33.008663 ], [ -91.082153, 32.953368 ], [ -91.175537, 32.810362 ], [ -91.032715, 32.602362 ], [ -91.071167, 32.477329 ], [ -90.944824, 32.305706 ], [ -91.082153, 32.203505 ], [ -91.126099, 32.017392 ], [ -91.318359, 31.858897 ], [ -91.411743, 31.648705 ], [ -91.499634, 31.409912 ], [ -91.625977, 31.297328 ], [ -91.582031, 31.048228 ], [ -90.703125, 31.015279 ], [ -89.758301, 31.015279 ], [ -89.785767, 30.845647 ], [ -89.851685, 30.685164 ], [ -89.791260, 30.557531 ], [ -89.659424, 30.439202 ], [ -89.648438, 30.391830 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 4, "x": 3, "y": 5 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -111.049805, 42.000325 ], [ -112.851562, 41.996243 ] ], [ [ -104.024048, 45.954969 ], [ -100.068970, 45.966425 ], [ -98.442993, 45.962606 ], [ -96.536865, 46.016039 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -111.049805, 42.000325 ], [ -112.851562, 41.996243 ] ], [ [ -104.024048, 45.954969 ], [ -102.117920, 45.962606 ], [ -100.068970, 45.966425 ], [ -98.442993, 45.962606 ], [ -96.536865, 46.016039 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 4, "x": 4, "y": 6 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -89.664917, 36.022447 ], [ -90.313110, 36.022447 ], [ -90.252686, 36.120128 ], [ -90.027466, 36.337253 ], [ -90.109863, 36.461054 ], [ -90.351562, 36.474307 ] ], [ [ -89.604492, 30.178373 ], [ -89.659424, 30.439202 ], [ -89.791260, 30.557531 ], [ -89.851685, 30.685164 ], [ -89.785767, 30.845647 ], [ -89.758301, 31.015279 ], [ -90.351562, 31.015279 ] ], [ [ -88.165283, 34.998504 ], [ -85.627441, 34.985003 ] ], [ [ -87.528076, 30.273300 ], [ -87.456665, 30.410782 ], [ -87.407227, 30.609550 ], [ -87.632446, 30.850363 ], [ -87.615967, 30.925789 ], [ -87.044678, 30.982319 ], [ -85.006714, 30.991737 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -89.664917, 36.022447 ], [ -90.313110, 36.022447 ], [ -90.252686, 36.120128 ], [ -90.142822, 36.230981 ], [ -90.027466, 36.337253 ], [ -90.109863, 36.461054 ], [ -90.351562, 36.474307 ] ], [ [ -89.604492, 30.178373 ], [ -89.620972, 30.273300 ], [ -89.659424, 30.439202 ], [ -89.791260, 30.557531 ], [ -89.851685, 30.685164 ], [ -89.785767, 30.845647 ], [ -89.758301, 31.015279 ], [ -90.351562, 31.015279 ] ], [ [ -88.165283, 34.998504 ], [ -86.907349, 34.998504 ], [ -85.627441, 34.985003 ] ], [ [ -87.528076, 30.273300 ], [ -87.456665, 30.410782 ], [ -87.407227, 30.609550 ], [ -87.632446, 30.850363 ], [ -87.615967, 30.925789 ], [ -87.044678, 30.982319 ], [ -85.006714, 30.991737 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -123,13 +123,13 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 5, "x": 6, "y": 12 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -111.055298, 41.112469 ], [ -111.055298, 41.027571 ], [ -109.053040, 41.002703 ] ], [ [ -109.044800, 37.000359 ], [ -102.041016, 36.991585 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -111.055298, 41.112469 ], [ -111.055298, 41.027571 ], [ -109.053040, 41.002703 ] ], [ [ -109.044800, 37.000359 ], [ -107.479248, 37.000359 ], [ -105.899963, 36.995972 ], [ -104.199829, 36.995972 ], [ -103.002319, 36.995972 ], [ -102.041016, 36.991585 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 5, "x": 6, "y": 11 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -111.049805, 42.000325 ], [ -112.675781, 41.996243 ] ], [ [ -111.085510, 44.506300 ], [ -111.192627, 44.561120 ], [ -111.291504, 44.701850 ], [ -111.398621, 44.729174 ], [ -111.541443, 44.529801 ], [ -111.772156, 44.498464 ], [ -112.335205, 44.561120 ], [ -112.362671, 44.461231 ], [ -112.675781, 44.496505 ] ], [ [ -104.026794, 45.956878 ], [ -104.076233, 47.171044 ], [ -104.092712, 49.005447 ] ], [ [ -104.026794, 45.956878 ], [ -101.074219, 45.962606 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -111.049805, 42.000325 ], [ -112.675781, 41.996243 ] ], [ [ -111.085510, 44.506300 ], [ -111.192627, 44.561120 ], [ -111.291504, 44.701850 ], [ -111.398621, 44.729174 ], [ -111.541443, 44.529801 ], [ -111.772156, 44.498464 ], [ -112.335205, 44.561120 ], [ -112.362671, 44.461231 ], [ -112.675781, 44.496505 ] ], [ [ -104.026794, 45.956878 ], [ -104.076233, 47.171044 ], [ -104.092712, 49.005447 ] ], [ [ -104.026794, 45.956878 ], [ -102.115173, 45.960697 ], [ -101.074219, 45.962606 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -147,13 +147,13 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 5, "x": 7, "y": 12 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -95.795288, 40.582671 ], [ -95.861206, 40.763901 ], [ -95.833740, 40.942564 ], [ -95.855713, 41.112469 ] ], [ [ -95.795288, 40.582671 ], [ -94.001770, 40.584757 ], [ -92.850952, 40.593100 ], [ -91.757812, 40.613952 ], [ -91.568298, 40.451127 ], [ -91.430969, 40.367474 ] ], [ [ -91.156311, 33.008663 ], [ -91.084900, 32.953368 ], [ -91.175537, 32.808053 ], [ -91.029968, 32.602362 ], [ -91.071167, 32.477329 ], [ -90.942078, 32.305706 ], [ -91.082153, 32.203505 ], [ -91.128845, 32.015063 ], [ -91.321106, 31.858897 ], [ -91.345825, 31.802893 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -95.795288, 40.582671 ], [ -95.861206, 40.763901 ], [ -95.833740, 40.942564 ], [ -95.855713, 41.112469 ] ], [ [ -95.795288, 40.582671 ], [ -94.897156, 40.582671 ], [ -94.001770, 40.584757 ], [ -92.850952, 40.593100 ], [ -91.757812, 40.613952 ], [ -91.568298, 40.451127 ], [ -91.430969, 40.367474 ] ], [ [ -91.156311, 33.008663 ], [ -91.084900, 32.953368 ], [ -91.175537, 32.808053 ], [ -91.029968, 32.602362 ], [ -91.071167, 32.477329 ], [ -90.942078, 32.305706 ], [ -91.082153, 32.203505 ], [ -91.128845, 32.015063 ], [ -91.321106, 31.858897 ], [ -91.345825, 31.802893 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 5, "x": 7, "y": 11 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -96.539612, 46.017946 ], [ -96.539612, 46.198844 ], [ -96.600037, 46.350719 ], [ -96.685181, 46.513516 ], [ -96.734619, 46.715386 ], [ -96.745605, 46.944637 ], [ -96.778564, 46.998988 ], [ -96.819763, 47.292271 ], [ -96.825256, 47.426229 ], [ -96.844482, 47.546872 ], [ -96.893921, 47.748558 ], [ -97.130127, 48.136767 ], [ -97.149353, 48.317908 ], [ -97.160339, 48.514785 ], [ -97.127380, 48.641984 ], [ -97.119141, 48.757999 ], [ -97.212524, 48.902643 ], [ -97.229004, 49.001844 ] ], [ [ -96.539612, 46.017946 ], [ -98.440247, 45.962606 ], [ -101.425781, 45.962606 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -96.539612, 46.017946 ], [ -96.539612, 46.198844 ], [ -96.600037, 46.350719 ], [ -96.685181, 46.513516 ], [ -96.734619, 46.715386 ], [ -96.745605, 46.944637 ], [ -96.778564, 46.998988 ], [ -96.819763, 47.292271 ], [ -96.825256, 47.426229 ], [ -96.844482, 47.546872 ], [ -96.893921, 47.748558 ], [ -97.014771, 47.953145 ], [ -97.130127, 48.136767 ], [ -97.149353, 48.317908 ], [ -97.160339, 48.514785 ], [ -97.127380, 48.641984 ], [ -97.119141, 48.757999 ], [ -97.212524, 48.902643 ], [ -97.229004, 49.001844 ] ], [ [ -96.539612, 46.017946 ], [ -98.440247, 45.962606 ], [ -100.066223, 45.964515 ], [ -101.425781, 45.962606 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -165,13 +165,13 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 5, "x": 8, "y": 13 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -89.604492, 30.175999 ], [ -89.659424, 30.441570 ], [ -89.791260, 30.557531 ], [ -89.854431, 30.682802 ], [ -89.788513, 30.848005 ], [ -89.758301, 31.012925 ], [ -90.175781, 31.015279 ] ], [ [ -87.530823, 30.273300 ], [ -87.456665, 30.410782 ], [ -87.404480, 30.607186 ], [ -87.632446, 30.850363 ], [ -87.615967, 30.928145 ], [ -87.044678, 30.984673 ], [ -85.003967, 30.989383 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -89.604492, 30.175999 ], [ -89.623718, 30.275672 ], [ -89.659424, 30.441570 ], [ -89.791260, 30.557531 ], [ -89.854431, 30.682802 ], [ -89.788513, 30.848005 ], [ -89.758301, 31.012925 ], [ -90.175781, 31.015279 ] ], [ [ -87.530823, 30.273300 ], [ -87.456665, 30.410782 ], [ -87.404480, 30.607186 ], [ -87.632446, 30.850363 ], [ -87.615967, 30.928145 ], [ -87.044678, 30.984673 ], [ -85.003967, 30.989383 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 5, "x": 8, "y": 12 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -90.175781, 36.465472 ], [ -90.112610, 36.461054 ], [ -90.030212, 36.337253 ], [ -90.175781, 36.197742 ] ], [ [ -90.175781, 36.022447 ], [ -89.662170, 36.022447 ] ], [ [ -84.822693, 39.106620 ], [ -84.808960, 41.112469 ] ], [ [ -88.049927, 37.818463 ], [ -87.920837, 37.792422 ], [ -87.909851, 37.903032 ], [ -87.654419, 37.827141 ], [ -87.440186, 37.935533 ], [ -87.129822, 37.783740 ], [ -87.055664, 37.881357 ], [ -86.824951, 37.976680 ], [ -86.610718, 37.857507 ], [ -86.498108, 37.970185 ], [ -86.325073, 38.169114 ], [ -86.261902, 38.045928 ], [ -86.058655, 37.961523 ], [ -85.838928, 38.257593 ], [ -85.698853, 38.289937 ], [ -85.567017, 38.462192 ], [ -85.424194, 38.535276 ], [ -85.404968, 38.726233 ], [ -85.166016, 38.689798 ], [ -85.012207, 38.779781 ], [ -84.841919, 38.779781 ], [ -84.800720, 38.854681 ], [ -84.880371, 39.059716 ], [ -84.822693, 39.106620 ] ], [ [ -88.165283, 34.998504 ], [ -86.910095, 34.998504 ], [ -85.624695, 34.985003 ] ], [ [ -80.518799, 40.641051 ], [ -80.518799, 41.112469 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -90.175781, 36.465472 ], [ -90.112610, 36.461054 ], [ -90.030212, 36.337253 ], [ -90.142822, 36.230981 ], [ -90.175781, 36.197742 ] ], [ [ -90.175781, 36.022447 ], [ -89.662170, 36.022447 ] ], [ [ -84.822693, 39.106620 ], [ -84.817200, 39.800096 ], [ -84.808960, 40.772222 ], [ -84.808960, 41.112469 ] ], [ [ -88.049927, 37.818463 ], [ -87.920837, 37.792422 ], [ -87.909851, 37.903032 ], [ -87.654419, 37.827141 ], [ -87.440186, 37.935533 ], [ -87.129822, 37.783740 ], [ -87.055664, 37.881357 ], [ -86.824951, 37.976680 ], [ -86.610718, 37.857507 ], [ -86.498108, 37.970185 ], [ -86.325073, 38.169114 ], [ -86.261902, 38.045928 ], [ -86.058655, 37.961523 ], [ -85.838928, 38.257593 ], [ -85.698853, 38.289937 ], [ -85.567017, 38.462192 ], [ -85.424194, 38.535276 ], [ -85.404968, 38.726233 ], [ -85.166016, 38.689798 ], [ -85.012207, 38.779781 ], [ -84.841919, 38.779781 ], [ -84.800720, 38.854681 ], [ -84.880371, 39.059716 ], [ -84.822693, 39.106620 ] ], [ [ -88.165283, 34.998504 ], [ -86.910095, 34.998504 ], [ -85.624695, 34.985003 ] ], [ [ -80.518799, 40.641051 ], [ -80.518799, 41.112469 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -189,7 +189,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 5, "x": 9, "y": 11 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -74.679565, 41.356196 ], [ -75.009155, 41.496235 ], [ -75.075073, 41.640078 ], [ -75.047607, 41.750824 ], [ -75.385437, 41.998284 ], [ -78.925781, 42.000325 ] ], [ [ -73.281555, 42.742978 ], [ -72.457581, 42.726839 ] ], [ [ -71.801147, 42.012571 ], [ -71.792908, 41.465370 ], [ -71.853333, 41.319076 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -74.679565, 41.356196 ], [ -74.838867, 41.426253 ], [ -75.009155, 41.496235 ], [ -75.075073, 41.640078 ], [ -75.047607, 41.750824 ], [ -75.168457, 41.840920 ], [ -75.385437, 41.998284 ], [ -76.742249, 42.000325 ], [ -78.200684, 42.000325 ], [ -78.925781, 42.000325 ] ], [ [ -73.281555, 42.742978 ], [ -72.457581, 42.726839 ] ], [ [ -71.801147, 42.012571 ], [ -71.792908, 41.465370 ], [ -71.853333, 41.319076 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -267,7 +267,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 6, "x": 12, "y": 24 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -111.053925, 41.046217 ], [ -111.053925, 41.028607 ], [ -109.053040, 41.002703 ] ], [ [ -109.044800, 36.999262 ], [ -106.787109, 36.998166 ] ], [ [ -109.044800, 36.999262 ], [ -109.044800, 36.527295 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -111.053925, 41.046217 ], [ -111.053925, 41.028607 ], [ -109.053040, 41.002703 ] ], [ [ -109.044800, 36.999262 ], [ -107.479248, 36.999262 ], [ -106.787109, 36.998166 ] ], [ [ -109.044800, 36.999262 ], [ -109.044800, 36.527295 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -297,7 +297,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 6, "x": 13, "y": 24 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -104.044647, 41.046217 ], [ -104.044647, 41.004775 ] ], [ [ -103.002319, 36.994875 ], [ -106.962891, 36.999262 ] ], [ [ -102.049255, 40.000268 ], [ -101.162109, 40.000268 ] ], [ [ -103.002319, 36.994875 ], [ -102.041016, 36.991585 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -104.044647, 41.046217 ], [ -104.044647, 41.004775 ] ], [ [ -103.002319, 36.994875 ], [ -104.199829, 36.995972 ], [ -105.899963, 36.997069 ], [ -106.962891, 36.999262 ] ], [ [ -102.049255, 40.000268 ], [ -102.047882, 40.000268 ], [ -101.162109, 40.000268 ] ], [ [ -103.002319, 36.994875 ], [ -102.041016, 36.991585 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -309,7 +309,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 6, "x": 13, "y": 22 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -104.077606, 45.040537 ], [ -105.746155, 45.051210 ], [ -106.962891, 45.047330 ] ], [ [ -104.026794, 45.955924 ], [ -104.077606, 47.171044 ], [ -104.092712, 48.980217 ] ], [ [ -104.077606, 45.040537 ], [ -104.077606, 45.026950 ] ], [ [ -104.026794, 45.955924 ], [ -101.162109, 45.963561 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -104.077606, 45.040537 ], [ -105.746155, 45.051210 ], [ -106.962891, 45.047330 ] ], [ [ -104.026794, 45.955924 ], [ -104.077606, 47.171044 ], [ -104.092712, 48.980217 ] ], [ [ -104.077606, 45.040537 ], [ -104.077606, 45.026950 ] ], [ [ -104.026794, 45.955924 ], [ -102.116547, 45.960697 ], [ -101.162109, 45.963561 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -327,7 +327,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 6, "x": 14, "y": 24 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -95.796661, 40.583714 ], [ -95.861206, 40.764941 ], [ -95.833740, 40.943602 ], [ -95.846100, 41.046217 ] ], [ [ -95.537109, 40.001320 ], [ -101.337891, 40.000268 ] ], [ [ -95.796661, 40.583714 ], [ -95.776062, 40.501269 ], [ -95.607147, 40.343404 ], [ -95.537109, 40.284764 ] ], [ [ -95.796661, 40.583714 ], [ -95.537109, 40.583714 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -95.796661, 40.583714 ], [ -95.861206, 40.764941 ], [ -95.833740, 40.943602 ], [ -95.846100, 41.046217 ] ], [ [ -95.537109, 40.001320 ], [ -96.698914, 40.001320 ], [ -98.999176, 40.000268 ], [ -100.299683, 40.000268 ], [ -101.337891, 40.000268 ] ], [ [ -95.796661, 40.583714 ], [ -95.776062, 40.501269 ], [ -95.607147, 40.343404 ], [ -95.537109, 40.284764 ] ], [ [ -95.796661, 40.583714 ], [ -95.537109, 40.583714 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -357,13 +357,13 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 6, "x": 15, "y": 25 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -94.479675, 33.635203 ], [ -94.909515, 33.831638 ], [ -95.189667, 33.937663 ], [ -95.417633, 33.870416 ], [ -95.712891, 33.879537 ] ], [ [ -94.479675, 33.635203 ], [ -94.427490, 33.570005 ], [ -94.232483, 33.583735 ], [ -94.001770, 33.579159 ], [ -94.059448, 33.012118 ] ], [ [ -94.627991, 36.540536 ], [ -93.412628, 36.526191 ], [ -91.251068, 36.522881 ], [ -90.111237, 36.461054 ], [ -90.028839, 36.337253 ], [ -90.254059, 36.122346 ], [ -90.314484, 36.022447 ], [ -89.912109, 36.022447 ] ], [ [ -91.156311, 33.009815 ], [ -91.084900, 32.952216 ], [ -91.175537, 32.808053 ], [ -91.029968, 32.602362 ], [ -91.071167, 32.478488 ], [ -90.942078, 32.306867 ], [ -91.080780, 32.204667 ], [ -91.127472, 32.015063 ], [ -91.299133, 31.877558 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -94.479675, 33.635203 ], [ -94.909515, 33.831638 ], [ -95.189667, 33.937663 ], [ -95.417633, 33.870416 ], [ -95.712891, 33.879537 ] ], [ [ -94.479675, 33.635203 ], [ -94.427490, 33.570005 ], [ -94.232483, 33.583735 ], [ -94.001770, 33.579159 ], [ -94.059448, 33.012118 ] ], [ [ -94.627991, 36.540536 ], [ -93.412628, 36.526191 ], [ -92.307129, 36.522881 ], [ -91.251068, 36.522881 ], [ -90.111237, 36.461054 ], [ -90.028839, 36.337253 ], [ -90.141449, 36.229874 ], [ -90.254059, 36.122346 ], [ -90.314484, 36.022447 ], [ -89.912109, 36.022447 ] ], [ [ -91.156311, 33.009815 ], [ -91.084900, 32.952216 ], [ -91.175537, 32.808053 ], [ -91.029968, 32.602362 ], [ -91.071167, 32.478488 ], [ -90.942078, 32.306867 ], [ -91.080780, 32.204667 ], [ -91.127472, 32.015063 ], [ -91.299133, 31.877558 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 6, "x": 15, "y": 24 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -91.429596, 40.368520 ], [ -91.410370, 40.551374 ], [ -91.153564, 40.699381 ], [ -91.087646, 40.851216 ], [ -90.955811, 41.025499 ], [ -90.962677, 41.046217 ] ], [ [ -95.322876, 40.001320 ], [ -95.712891, 40.001320 ] ], [ [ -95.322876, 40.001320 ], [ -95.451965, 40.214538 ], [ -95.607147, 40.343404 ], [ -95.712891, 40.441721 ] ], [ [ -91.429596, 40.368520 ], [ -91.566925, 40.452172 ], [ -91.757812, 40.613952 ], [ -92.850952, 40.592057 ], [ -94.001770, 40.584757 ], [ -95.712891, 40.583714 ] ], [ [ -94.627991, 36.540536 ], [ -93.506012, 36.527295 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -91.429596, 40.368520 ], [ -91.410370, 40.551374 ], [ -91.153564, 40.699381 ], [ -91.087646, 40.851216 ], [ -90.955811, 41.025499 ], [ -90.962677, 41.046217 ] ], [ [ -95.322876, 40.001320 ], [ -95.712891, 40.001320 ] ], [ [ -95.322876, 40.001320 ], [ -95.451965, 40.214538 ], [ -95.607147, 40.343404 ], [ -95.712891, 40.441721 ] ], [ [ -91.429596, 40.368520 ], [ -91.566925, 40.452172 ], [ -91.757812, 40.613952 ], [ -92.850952, 40.592057 ], [ -94.001770, 40.584757 ], [ -94.898529, 40.582671 ], [ -95.712891, 40.583714 ] ], [ [ -94.627991, 36.540536 ], [ -93.506012, 36.527295 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -375,13 +375,13 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 6, "x": 15, "y": 22 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -92.011871, 46.711619 ], [ -92.274170, 46.656035 ], [ -92.264557, 46.095138 ], [ -92.296143, 46.096091 ], [ -92.756195, 45.890008 ], [ -92.899017, 45.705220 ], [ -92.688904, 45.517895 ], [ -92.764435, 45.267155 ], [ -92.765808, 45.026950 ] ], [ [ -90.396881, 46.575855 ], [ -90.335083, 46.596619 ], [ -90.333710, 46.593788 ], [ -90.175781, 46.560749 ], [ -90.096130, 46.381044 ], [ -89.912109, 46.343136 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -92.011871, 46.711619 ], [ -92.274170, 46.656035 ], [ -92.264557, 46.095138 ], [ -92.296143, 46.096091 ], [ -92.543335, 45.985512 ], [ -92.756195, 45.890008 ], [ -92.899017, 45.705220 ], [ -92.688904, 45.517895 ], [ -92.764435, 45.267155 ], [ -92.765808, 45.026950 ] ], [ [ -90.396881, 46.575855 ], [ -90.335083, 46.596619 ], [ -90.333710, 46.593788 ], [ -90.175781, 46.560749 ], [ -90.096130, 46.381044 ], [ -89.912109, 46.343136 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 6, "x": 16, "y": 26 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -89.604492, 30.175999 ], [ -89.658051, 30.440386 ], [ -89.789886, 30.556348 ], [ -89.853058, 30.682802 ], [ -89.787140, 30.846826 ], [ -89.758301, 31.012925 ], [ -90.087891, 31.014102 ] ], [ [ -87.529449, 30.274486 ], [ -87.458038, 30.410782 ], [ -87.404480, 30.608368 ], [ -87.632446, 30.851542 ], [ -87.617340, 30.926967 ], [ -87.044678, 30.984673 ], [ -85.005341, 30.990560 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -89.604492, 30.175999 ], [ -89.622345, 30.274486 ], [ -89.658051, 30.440386 ], [ -89.789886, 30.556348 ], [ -89.853058, 30.682802 ], [ -89.787140, 30.846826 ], [ -89.758301, 31.012925 ], [ -90.087891, 31.014102 ] ], [ [ -87.529449, 30.274486 ], [ -87.458038, 30.410782 ], [ -87.404480, 30.608368 ], [ -87.632446, 30.851542 ], [ -87.617340, 30.926967 ], [ -87.044678, 30.984673 ], [ -85.005341, 30.990560 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -393,13 +393,13 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 6, "x": 16, "y": 24 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -84.822693, 39.106620 ], [ -84.808960, 41.046217 ] ], [ [ -88.051300, 37.819548 ], [ -88.018341, 38.021050 ], [ -87.878265, 38.289937 ], [ -87.670898, 38.508415 ], [ -87.598114, 38.673717 ], [ -87.514343, 38.734804 ], [ -87.506104, 38.869652 ], [ -87.559662, 39.040520 ], [ -87.642059, 39.114079 ], [ -87.528076, 39.391632 ], [ -87.526703, 41.046217 ] ], [ [ -89.103241, 36.952087 ], [ -89.141693, 37.103384 ], [ -89.073029, 37.199706 ], [ -88.807983, 37.146087 ], [ -88.566284, 37.054081 ], [ -88.434448, 37.136235 ], [ -88.472900, 37.354876 ], [ -88.247681, 37.437793 ], [ -88.071899, 37.510815 ], [ -88.157043, 37.605528 ], [ -88.044434, 37.744657 ], [ -88.051300, 37.819548 ], [ -87.920837, 37.793508 ], [ -87.911224, 37.904116 ], [ -87.653046, 37.826057 ], [ -87.438812, 37.935533 ], [ -87.131195, 37.783740 ], [ -87.055664, 37.880273 ], [ -86.824951, 37.975598 ], [ -86.609344, 37.858591 ], [ -86.499481, 37.969102 ], [ -86.325073, 38.169114 ], [ -86.261902, 38.045928 ], [ -86.060028, 37.960441 ], [ -85.838928, 38.258671 ], [ -85.697479, 38.289937 ], [ -85.565643, 38.462192 ], [ -85.425568, 38.535276 ], [ -85.403595, 38.727305 ], [ -85.167389, 38.690869 ], [ -85.010834, 38.778711 ], [ -84.843292, 38.780852 ], [ -84.799347, 38.854681 ], [ -84.880371, 39.058650 ], [ -84.822693, 39.106620 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -84.822693, 39.106620 ], [ -84.817200, 39.799041 ], [ -84.808960, 40.772222 ], [ -84.808960, 41.046217 ] ], [ [ -88.051300, 37.819548 ], [ -88.018341, 38.021050 ], [ -87.878265, 38.289937 ], [ -87.670898, 38.508415 ], [ -87.598114, 38.673717 ], [ -87.514343, 38.734804 ], [ -87.506104, 38.869652 ], [ -87.559662, 39.040520 ], [ -87.642059, 39.114079 ], [ -87.528076, 39.391632 ], [ -87.526703, 40.550331 ], [ -87.526703, 41.046217 ] ], [ [ -89.103241, 36.952087 ], [ -89.141693, 37.103384 ], [ -89.073029, 37.199706 ], [ -88.807983, 37.146087 ], [ -88.566284, 37.054081 ], [ -88.434448, 37.136235 ], [ -88.472900, 37.354876 ], [ -88.247681, 37.437793 ], [ -88.071899, 37.510815 ], [ -88.157043, 37.605528 ], [ -88.044434, 37.744657 ], [ -88.051300, 37.819548 ], [ -87.920837, 37.793508 ], [ -87.911224, 37.904116 ], [ -87.653046, 37.826057 ], [ -87.438812, 37.935533 ], [ -87.131195, 37.783740 ], [ -87.055664, 37.880273 ], [ -86.824951, 37.975598 ], [ -86.609344, 37.858591 ], [ -86.499481, 37.969102 ], [ -86.325073, 38.169114 ], [ -86.261902, 38.045928 ], [ -86.060028, 37.960441 ], [ -85.838928, 38.258671 ], [ -85.697479, 38.289937 ], [ -85.565643, 38.462192 ], [ -85.425568, 38.535276 ], [ -85.403595, 38.727305 ], [ -85.167389, 38.690869 ], [ -85.010834, 38.778711 ], [ -84.843292, 38.780852 ], [ -84.799347, 38.854681 ], [ -84.880371, 39.058650 ], [ -84.822693, 39.106620 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 6, "x": 16, "y": 23 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -87.661285, 45.151053 ], [ -87.613220, 45.109393 ], [ -87.598114, 45.106485 ] ], [ [ -84.806213, 41.677015 ], [ -84.808960, 40.913513 ] ], [ [ -87.521210, 41.707779 ], [ -87.525330, 41.707779 ], [ -87.526703, 40.913513 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -87.661285, 45.151053 ], [ -87.613220, 45.109393 ], [ -87.613220, 45.110362 ], [ -87.598114, 45.106485 ] ], [ [ -84.806213, 41.677015 ], [ -84.808960, 40.913513 ] ], [ [ -87.521210, 41.707779 ], [ -87.525330, 41.707779 ], [ -87.526703, 40.913513 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -417,19 +417,19 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 6, "x": 17, "y": 25 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -83.673248, 36.600094 ], [ -84.350281, 36.567012 ], [ -84.462891, 36.572527 ] ], [ [ -81.679230, 36.585760 ], [ -82.185974, 36.565909 ], [ -83.673248, 36.600094 ] ], [ [ -81.679230, 36.585760 ], [ -79.991455, 36.541640 ], [ -78.662109, 36.539433 ] ], [ [ -83.075867, 34.978252 ], [ -82.435913, 35.179421 ], [ -81.514435, 35.171563 ], [ -81.046143, 35.125525 ], [ -81.037903, 35.036743 ], [ -80.937653, 35.103058 ], [ -80.781097, 34.933230 ], [ -80.783844, 34.817186 ], [ -79.672852, 34.807038 ], [ -78.662109, 33.953613 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -83.673248, 36.600094 ], [ -84.350281, 36.567012 ], [ -84.462891, 36.572527 ] ], [ [ -81.679230, 36.585760 ], [ -82.185974, 36.565909 ], [ -83.673248, 36.600094 ] ], [ [ -81.679230, 36.585760 ], [ -79.991455, 36.541640 ], [ -78.662109, 36.539433 ] ], [ [ -83.075867, 34.978252 ], [ -82.975616, 35.008628 ], [ -82.435913, 35.179421 ], [ -81.514435, 35.171563 ], [ -81.046143, 35.125525 ], [ -81.037903, 35.036743 ], [ -80.937653, 35.103058 ], [ -80.781097, 34.933230 ], [ -80.783844, 34.817186 ], [ -79.672852, 34.807038 ], [ -78.662109, 33.953613 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 6, "x": 17, "y": 24 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -83.673248, 36.600094 ], [ -84.350281, 36.567012 ], [ -84.462891, 36.572527 ] ], [ [ -83.673248, 36.600094 ], [ -82.185974, 36.565909 ], [ -81.679230, 36.585760 ] ], [ [ -80.518799, 40.641051 ], [ -80.517426, 41.046217 ] ], [ [ -82.588348, 38.414862 ], [ -82.341156, 38.440682 ], [ -82.210693, 38.579306 ], [ -82.194214, 38.801189 ], [ -82.054138, 39.018117 ], [ -81.918182, 38.993572 ], [ -81.905823, 38.881412 ], [ -81.816559, 38.922024 ], [ -81.784973, 39.019184 ], [ -81.745148, 39.199270 ], [ -81.521301, 39.371464 ], [ -81.400452, 39.349166 ], [ -81.265869, 39.376772 ], [ -81.150513, 39.425586 ], [ -80.878601, 39.654341 ], [ -80.862122, 39.756824 ], [ -80.764618, 39.972911 ], [ -80.661621, 40.233412 ], [ -80.614929, 40.463666 ], [ -80.657501, 40.591014 ], [ -80.518799, 40.641051 ] ], [ [ -81.679230, 36.585760 ], [ -79.991455, 36.541640 ], [ -78.662109, 36.539433 ] ], [ [ -79.477844, 39.720920 ], [ -79.486084, 39.213103 ], [ -79.332275, 39.302425 ], [ -79.160614, 39.418160 ], [ -78.962860, 39.457403 ], [ -78.828278, 39.562294 ], [ -78.662109, 39.540058 ] ], [ [ -81.971741, 37.535866 ], [ -81.927795, 37.365791 ], [ -81.815186, 37.275146 ], [ -81.662750, 37.195331 ], [ -81.348267, 37.315568 ], [ -81.227417, 37.245635 ], [ -80.855255, 37.328673 ], [ -80.833282, 37.418163 ], [ -80.719299, 37.383253 ], [ -80.595703, 37.456328 ], [ -80.457001, 37.441064 ], [ -80.297699, 37.518440 ], [ -80.275726, 37.609880 ], [ -80.292206, 37.727280 ], [ -80.157623, 37.900865 ], [ -79.963989, 38.031867 ], [ -79.914551, 38.178830 ], [ -79.742889, 38.356734 ], [ -79.648132, 38.573938 ], [ -79.514923, 38.497668 ], [ -79.366608, 38.425622 ], [ -79.222412, 38.464342 ], [ -79.174347, 38.555683 ], [ -78.965607, 38.821521 ], [ -78.892822, 38.779781 ], [ -78.744507, 38.909202 ], [ -78.662109, 38.964748 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -83.673248, 36.600094 ], [ -84.350281, 36.567012 ], [ -84.462891, 36.572527 ] ], [ [ -83.673248, 36.600094 ], [ -82.185974, 36.565909 ], [ -81.679230, 36.585760 ] ], [ [ -80.518799, 40.641051 ], [ -80.517426, 41.046217 ] ], [ [ -82.588348, 38.414862 ], [ -82.341156, 38.440682 ], [ -82.210693, 38.579306 ], [ -82.194214, 38.801189 ], [ -82.054138, 39.018117 ], [ -81.918182, 38.993572 ], [ -81.905823, 38.881412 ], [ -81.816559, 38.922024 ], [ -81.784973, 39.019184 ], [ -81.745148, 39.199270 ], [ -81.521301, 39.371464 ], [ -81.400452, 39.349166 ], [ -81.265869, 39.376772 ], [ -81.150513, 39.425586 ], [ -80.878601, 39.654341 ], [ -80.862122, 39.756824 ], [ -80.764618, 39.972911 ], [ -80.661621, 40.233412 ], [ -80.614929, 40.463666 ], [ -80.657501, 40.591014 ], [ -80.518799, 40.641051 ] ], [ [ -81.679230, 36.585760 ], [ -79.991455, 36.541640 ], [ -78.662109, 36.539433 ] ], [ [ -79.477844, 39.720920 ], [ -79.486084, 39.213103 ], [ -79.332275, 39.302425 ], [ -79.160614, 39.418160 ], [ -78.962860, 39.457403 ], [ -78.828278, 39.562294 ], [ -78.662109, 39.540058 ] ], [ [ -81.971741, 37.535866 ], [ -81.927795, 37.365791 ], [ -81.815186, 37.275146 ], [ -81.662750, 37.195331 ], [ -81.348267, 37.315568 ], [ -81.227417, 37.245635 ], [ -80.855255, 37.328673 ], [ -80.833282, 37.418163 ], [ -80.719299, 37.383253 ], [ -80.595703, 37.456328 ], [ -80.457001, 37.441064 ], [ -80.297699, 37.518440 ], [ -80.275726, 37.609880 ], [ -80.292206, 37.727280 ], [ -80.157623, 37.900865 ], [ -79.963989, 38.031867 ], [ -79.914551, 38.178830 ], [ -79.742889, 38.356734 ], [ -79.648132, 38.573938 ], [ -79.514923, 38.497668 ], [ -79.366608, 38.425622 ], [ -79.222412, 38.464342 ], [ -79.174347, 38.555683 ], [ -79.075470, 38.680150 ], [ -78.965607, 38.821521 ], [ -78.892822, 38.779781 ], [ -78.744507, 38.909202 ], [ -78.662109, 38.964748 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 6, "x": 17, "y": 23 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -83.461761, 41.693424 ], [ -83.839417, 41.685220 ], [ -84.462891, 41.683169 ] ], [ [ -79.759369, 42.237669 ], [ -79.759369, 41.999305 ], [ -78.662109, 41.999305 ] ], [ [ -80.516052, 41.957448 ], [ -80.518799, 40.913513 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -83.461761, 41.693424 ], [ -83.839417, 41.685220 ], [ -84.295349, 41.685220 ], [ -84.462891, 41.683169 ] ], [ [ -79.759369, 42.237669 ], [ -79.759369, 41.999305 ], [ -78.662109, 41.999305 ] ], [ [ -80.516052, 41.957448 ], [ -80.518799, 40.913513 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -447,7 +447,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 6, "x": 18, "y": 23 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -74.678192, 41.355165 ], [ -74.840240, 41.426253 ], [ -75.010529, 41.495207 ], [ -75.075073, 41.641105 ], [ -75.048981, 41.750824 ], [ -75.167084, 41.841943 ], [ -75.385437, 41.998284 ], [ -76.743622, 42.000325 ], [ -78.837891, 41.999305 ] ], [ [ -73.281555, 42.742978 ], [ -73.037109, 42.738944 ] ], [ [ -73.497162, 42.054391 ], [ -73.553467, 41.289158 ], [ -73.475189, 41.204489 ], [ -73.692169, 41.107295 ], [ -73.656464, 40.985082 ] ], [ [ -74.678192, 41.355165 ], [ -74.800415, 41.310824 ], [ -74.976196, 41.087632 ], [ -75.135498, 40.999593 ], [ -75.099792, 40.913513 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -74.678192, 41.355165 ], [ -74.840240, 41.426253 ], [ -75.010529, 41.495207 ], [ -75.075073, 41.641105 ], [ -75.048981, 41.750824 ], [ -75.167084, 41.841943 ], [ -75.385437, 41.998284 ], [ -76.743622, 42.000325 ], [ -78.200684, 41.999305 ], [ -78.837891, 41.999305 ] ], [ [ -73.281555, 42.742978 ], [ -73.037109, 42.738944 ] ], [ [ -73.497162, 42.054391 ], [ -73.553467, 41.289158 ], [ -73.475189, 41.204489 ], [ -73.692169, 41.107295 ], [ -73.656464, 40.985082 ] ], [ [ -74.678192, 41.355165 ], [ -74.800415, 41.310824 ], [ -74.976196, 41.087632 ], [ -75.135498, 40.999593 ], [ -75.099792, 40.913513 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -645,19 +645,19 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 25, "y": 49 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -109.045486, 36.999811 ], [ -109.048920, 38.856820 ] ], [ [ -109.045486, 36.999811 ], [ -109.731445, 37.003649 ] ], [ [ -109.045486, 36.999811 ], [ -106.831055, 36.998714 ] ], [ [ -109.045486, 36.999811 ], [ -109.045486, 36.562600 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -109.045486, 36.999811 ], [ -109.048920, 38.856820 ] ], [ [ -109.045486, 36.999811 ], [ -109.731445, 37.003649 ] ], [ [ -109.045486, 36.999811 ], [ -107.479935, 36.999811 ], [ -106.831055, 36.998714 ] ], [ [ -109.045486, 36.999811 ], [ -109.045486, 36.562600 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 25, "y": 48 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -109.053040, 41.002184 ], [ -109.731445, 41.010993 ] ], [ [ -109.048920, 38.788345 ], [ -109.053040, 41.002184 ], [ -106.831055, 41.002703 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -109.053040, 41.002184 ], [ -109.731445, 41.010993 ] ], [ [ -109.048920, 38.788345 ], [ -109.053040, 41.002184 ], [ -108.051224, 41.002703 ], [ -107.049408, 41.002703 ], [ -106.831055, 41.002703 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 25, "y": 47 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -109.053040, 41.002184 ], [ -109.731445, 41.010993 ] ], [ [ -109.053040, 41.002184 ], [ -109.052353, 40.946714 ] ], [ [ -109.053040, 41.002184 ], [ -106.831055, 41.002703 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -109.053040, 41.002184 ], [ -109.731445, 41.010993 ] ], [ [ -109.053040, 41.002184 ], [ -109.052353, 40.946714 ] ], [ [ -109.053040, 41.002184 ], [ -108.051224, 41.002703 ], [ -107.049408, 41.002703 ], [ -106.831055, 41.002703 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -687,13 +687,13 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 26, "y": 48 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -104.045334, 41.013066 ], [ -104.045334, 41.004257 ], [ -106.918945, 41.002703 ] ], [ [ -104.045334, 41.004257 ], [ -104.018555, 41.004257 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -104.045334, 41.013066 ], [ -104.045334, 41.004257 ], [ -105.047150, 41.003739 ], [ -106.918945, 41.002703 ] ], [ [ -104.045334, 41.004257 ], [ -104.018555, 41.004257 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 26, "y": 47 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -104.052887, 43.000128 ], [ -104.054260, 43.100983 ] ], [ [ -104.052887, 43.000128 ], [ -104.045334, 41.004257 ], [ -106.918945, 41.002703 ] ], [ [ -104.052887, 43.000128 ], [ -104.018555, 43.000128 ] ], [ [ -104.045334, 41.004257 ], [ -104.018555, 41.004257 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -104.052887, 43.000128 ], [ -104.054260, 43.100983 ] ], [ [ -104.052887, 43.000128 ], [ -104.045334, 41.004257 ], [ -105.047150, 41.003739 ], [ -106.918945, 41.002703 ] ], [ [ -104.052887, 43.000128 ], [ -104.018555, 43.000128 ] ], [ [ -104.045334, 41.004257 ], [ -104.018555, 41.004257 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -729,7 +729,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 27, "y": 50 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -103.001633, 36.499149 ], [ -103.002319, 36.633162 ] ], [ [ -103.001633, 36.499149 ], [ -103.001633, 34.270836 ] ], [ [ -103.001633, 36.499149 ], [ -101.206055, 36.499149 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -103.001633, 36.499149 ], [ -103.002319, 36.633162 ] ], [ [ -103.001633, 36.499149 ], [ -103.001633, 34.270836 ] ], [ [ -103.001633, 36.499149 ], [ -102.001190, 36.499149 ], [ -101.206055, 36.499149 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -741,13 +741,13 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 27, "y": 48 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -104.045334, 41.013066 ], [ -104.045334, 41.004257 ], [ -104.106445, 41.004257 ] ], [ [ -102.049942, 40.000794 ], [ -102.047882, 41.004257 ], [ -104.045334, 41.004257 ] ], [ [ -102.049942, 40.000794 ], [ -101.206055, 40.000794 ] ], [ [ -102.049942, 40.000794 ], [ -102.042389, 38.788345 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -104.045334, 41.013066 ], [ -104.045334, 41.004257 ], [ -104.106445, 41.004257 ] ], [ [ -102.049942, 40.000794 ], [ -102.049942, 40.032872 ], [ -102.047882, 41.004257 ], [ -104.045334, 41.004257 ] ], [ [ -102.049942, 40.000794 ], [ -102.047882, 40.000794 ], [ -101.206055, 40.000794 ] ], [ [ -102.049942, 40.000794 ], [ -102.042389, 38.788345 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 27, "y": 47 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -104.052887, 43.000128 ], [ -104.054260, 43.100983 ] ], [ [ -104.052887, 43.000128 ], [ -104.045334, 41.004257 ], [ -104.106445, 41.004257 ] ], [ [ -104.052887, 43.000128 ], [ -101.206055, 43.000128 ] ], [ [ -104.045334, 41.004257 ], [ -102.047882, 41.004257 ], [ -102.048569, 40.946714 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -104.052887, 43.000128 ], [ -104.054260, 43.100983 ] ], [ [ -104.052887, 43.000128 ], [ -104.045334, 41.004257 ], [ -104.106445, 41.004257 ] ], [ [ -104.052887, 43.000128 ], [ -102.100067, 43.000128 ], [ -101.206055, 43.000128 ] ], [ [ -104.045334, 41.004257 ], [ -102.047882, 41.004257 ], [ -102.048569, 40.946714 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -759,7 +759,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 27, "y": 45 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -104.026794, 45.956401 ], [ -104.073486, 47.070122 ] ], [ [ -104.026794, 45.956401 ], [ -104.077606, 45.058001 ] ], [ [ -104.026794, 45.956401 ], [ -101.206055, 45.963561 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -104.026794, 45.956401 ], [ -104.073486, 47.070122 ] ], [ [ -104.026794, 45.956401 ], [ -104.077606, 45.058001 ] ], [ [ -104.026794, 45.956401 ], [ -102.116547, 45.961174 ], [ -101.206055, 45.963561 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -825,7 +825,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 29, "y": 48 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -95.796661, 40.583714 ], [ -95.861893, 40.764941 ], [ -95.833740, 40.943602 ], [ -95.842667, 41.013066 ] ], [ [ -95.581055, 40.001320 ], [ -98.481445, 40.000794 ] ], [ [ -95.796661, 40.583714 ], [ -95.776062, 40.501269 ], [ -95.607834, 40.343404 ], [ -95.581055, 40.321420 ] ], [ [ -95.796661, 40.583714 ], [ -95.581055, 40.583714 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -95.796661, 40.583714 ], [ -95.861893, 40.764941 ], [ -95.833740, 40.943602 ], [ -95.842667, 41.013066 ] ], [ [ -95.581055, 40.001320 ], [ -96.699600, 40.001320 ], [ -98.481445, 40.000794 ] ], [ [ -95.796661, 40.583714 ], [ -95.776062, 40.501269 ], [ -95.607834, 40.343404 ], [ -95.581055, 40.321420 ] ], [ [ -95.796661, 40.583714 ], [ -95.581055, 40.583714 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -879,7 +879,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 30, "y": 49 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -94.622498, 36.999811 ], [ -95.668945, 36.998714 ] ], [ [ -94.622498, 36.999811 ], [ -94.615631, 38.068636 ], [ -94.607391, 38.856820 ] ], [ [ -94.622498, 36.999811 ], [ -94.617691, 36.999811 ], [ -94.627991, 36.562600 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -94.622498, 36.999811 ], [ -95.500031, 36.998714 ], [ -95.668945, 36.998714 ] ], [ [ -94.622498, 36.999811 ], [ -94.615631, 38.068636 ], [ -94.607391, 38.856820 ] ], [ [ -94.622498, 36.999811 ], [ -94.617691, 36.999811 ], [ -94.627991, 36.562600 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -915,7 +915,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 31, "y": 50 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -89.956055, 36.023002 ], [ -90.315170, 36.023002 ], [ -90.254059, 36.122346 ], [ -90.142136, 36.230427 ], [ -90.028839, 36.337806 ], [ -90.111923, 36.461606 ], [ -91.251755, 36.522881 ], [ -92.856445, 36.524536 ] ], [ [ -90.249252, 35.021000 ], [ -89.956055, 35.021562 ] ], [ [ -90.249252, 35.021000 ], [ -90.268478, 34.941674 ], [ -90.446320, 34.866778 ], [ -90.450439, 34.721862 ], [ -90.584335, 34.453917 ], [ -90.699692, 34.397278 ], [ -90.864487, 34.270836 ] ], [ [ -90.249252, 35.021000 ], [ -90.135269, 35.113730 ], [ -90.146942, 35.404722 ], [ -89.989014, 35.536138 ], [ -89.956055, 35.678494 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -89.956055, 36.023002 ], [ -90.315170, 36.023002 ], [ -90.254059, 36.122346 ], [ -90.142136, 36.230427 ], [ -90.028839, 36.337806 ], [ -90.111923, 36.461606 ], [ -91.251755, 36.522881 ], [ -92.307129, 36.523432 ], [ -92.856445, 36.524536 ] ], [ [ -90.249252, 35.021000 ], [ -89.956055, 35.021562 ] ], [ [ -90.249252, 35.021000 ], [ -90.268478, 34.941674 ], [ -90.446320, 34.866778 ], [ -90.450439, 34.721862 ], [ -90.584335, 34.453917 ], [ -90.699692, 34.397278 ], [ -90.864487, 34.270836 ] ], [ [ -90.249252, 35.021000 ], [ -90.135269, 35.113730 ], [ -90.146942, 35.404722 ], [ -89.989014, 35.536138 ], [ -89.956055, 35.678494 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -927,7 +927,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 31, "y": 48 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -91.430283, 40.368520 ], [ -91.410370, 40.551374 ], [ -91.154251, 40.699902 ], [ -91.087646, 40.851735 ], [ -90.965424, 41.013066 ] ], [ [ -91.430283, 40.368520 ], [ -91.567612, 40.452172 ], [ -91.758499, 40.613952 ], [ -92.856445, 40.592578 ] ], [ [ -91.430283, 40.368520 ], [ -91.517487, 40.120090 ], [ -91.428223, 39.820667 ], [ -91.262741, 39.615210 ], [ -91.071854, 39.445208 ], [ -90.841141, 39.310925 ], [ -90.749130, 39.265221 ], [ -90.665359, 39.074644 ], [ -90.649567, 38.907599 ], [ -90.535583, 38.865909 ], [ -90.346756, 38.930571 ], [ -90.177841, 38.788345 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -91.430283, 40.368520 ], [ -91.410370, 40.551374 ], [ -91.154251, 40.699902 ], [ -91.087646, 40.851735 ], [ -90.965424, 41.013066 ] ], [ [ -91.430283, 40.368520 ], [ -91.567612, 40.452172 ], [ -91.758499, 40.613952 ], [ -92.851639, 40.592578 ], [ -92.856445, 40.592578 ] ], [ [ -91.430283, 40.368520 ], [ -91.517487, 40.120090 ], [ -91.428223, 39.820667 ], [ -91.262741, 39.615210 ], [ -91.071854, 39.445208 ], [ -90.841141, 39.310925 ], [ -90.749130, 39.265221 ], [ -90.665359, 39.074644 ], [ -90.649567, 38.907599 ], [ -90.535583, 38.865909 ], [ -90.346756, 38.930571 ], [ -90.177841, 38.788345 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -945,7 +945,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 31, "y": 45 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -92.766495, 45.058001 ], [ -92.765121, 45.267155 ], [ -92.688904, 45.518376 ], [ -92.856445, 45.667325 ] ], [ [ -92.856445, 45.761775 ], [ -92.756882, 45.890008 ], [ -92.296829, 46.096091 ], [ -92.264557, 46.095138 ], [ -92.274857, 46.656035 ], [ -92.011871, 46.711619 ] ], [ [ -90.396881, 46.576327 ], [ -90.335083, 46.597090 ], [ -90.333710, 46.593788 ], [ -90.176468, 46.560749 ], [ -90.096130, 46.381044 ], [ -89.956055, 46.352615 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -92.766495, 45.058001 ], [ -92.765121, 45.267155 ], [ -92.688904, 45.518376 ], [ -92.856445, 45.667325 ] ], [ [ -92.856445, 45.761775 ], [ -92.756882, 45.890008 ], [ -92.544022, 45.985512 ], [ -92.296829, 46.096091 ], [ -92.264557, 46.095138 ], [ -92.274857, 46.656035 ], [ -92.011871, 46.711619 ] ], [ [ -90.396881, 46.576327 ], [ -90.335083, 46.597090 ], [ -90.333710, 46.593788 ], [ -90.176468, 46.560749 ], [ -90.096130, 46.381044 ], [ -89.956055, 46.352615 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -981,7 +981,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 32, "y": 47 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -87.806854, 42.494378 ], [ -88.576584, 42.503490 ], [ -90.043945, 42.505515 ] ], [ [ -87.521210, 41.708292 ], [ -87.526016, 41.708292 ], [ -87.527390, 40.946714 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -87.806854, 42.494378 ], [ -88.576584, 42.503490 ], [ -89.620285, 42.505515 ], [ -90.043945, 42.505515 ] ], [ [ -87.521210, 41.708292 ], [ -87.526016, 41.708292 ], [ -87.527390, 40.946714 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -1017,19 +1017,19 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 33, "y": 49 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -84.331055, 36.568115 ], [ -84.350281, 36.567012 ], [ -85.231247, 36.610016 ], [ -85.518951, 36.597889 ], [ -86.092300, 36.625999 ], [ -86.678009, 36.633713 ], [ -87.231445, 36.638672 ] ], [ [ -84.800720, 38.856820 ], [ -84.800034, 38.855216 ], [ -84.843292, 38.780852 ], [ -85.011520, 38.779246 ], [ -85.167389, 38.690869 ], [ -85.404282, 38.727305 ], [ -85.425568, 38.535276 ], [ -85.566330, 38.462192 ], [ -85.698166, 38.289937 ], [ -85.839615, 38.258671 ], [ -86.060028, 37.960982 ], [ -86.262589, 38.046469 ], [ -86.325760, 38.169114 ], [ -86.499481, 37.969643 ], [ -86.610031, 37.858591 ], [ -86.825638, 37.976139 ], [ -87.055664, 37.880815 ], [ -87.131195, 37.783740 ], [ -87.231445, 37.833107 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -84.331055, 36.568115 ], [ -84.350281, 36.567012 ], [ -85.231247, 36.610016 ], [ -85.518951, 36.597889 ], [ -86.092300, 36.625999 ], [ -86.678009, 36.633713 ], [ -87.216339, 36.639223 ], [ -87.231445, 36.638672 ] ], [ [ -84.800720, 38.856820 ], [ -84.800034, 38.855216 ], [ -84.843292, 38.780852 ], [ -85.011520, 38.779246 ], [ -85.167389, 38.690869 ], [ -85.404282, 38.727305 ], [ -85.425568, 38.535276 ], [ -85.566330, 38.462192 ], [ -85.698166, 38.289937 ], [ -85.839615, 38.258671 ], [ -86.060028, 37.960982 ], [ -86.262589, 38.046469 ], [ -86.325760, 38.169114 ], [ -86.499481, 37.969643 ], [ -86.610031, 37.858591 ], [ -86.825638, 37.976139 ], [ -87.055664, 37.880815 ], [ -87.131195, 37.783740 ], [ -87.231445, 37.833107 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 33, "y": 48 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -84.823380, 39.106620 ], [ -84.809647, 40.772742 ], [ -84.808960, 41.013066 ] ], [ [ -84.823380, 39.106620 ], [ -84.481430, 39.083172 ], [ -84.331055, 39.001577 ] ], [ [ -84.823380, 39.106620 ], [ -84.881058, 39.059183 ], [ -84.800034, 38.855216 ], [ -84.839172, 38.788345 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -84.823380, 39.106620 ], [ -84.817886, 39.799568 ], [ -84.809647, 40.772742 ], [ -84.808960, 41.013066 ] ], [ [ -84.823380, 39.106620 ], [ -84.481430, 39.083172 ], [ -84.331055, 39.001577 ] ], [ [ -84.823380, 39.106620 ], [ -84.881058, 39.059183 ], [ -84.800034, 38.855216 ], [ -84.839172, 38.788345 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 33, "y": 47 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -86.824265, 41.761069 ], [ -86.824265, 41.755947 ], [ -85.748291, 41.751336 ], [ -84.807587, 41.755947 ], [ -84.809647, 40.946714 ] ], [ [ -84.806900, 41.677528 ], [ -84.331055, 41.684707 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -86.824265, 41.761069 ], [ -86.824265, 41.755947 ], [ -85.748291, 41.751336 ], [ -84.807587, 41.755947 ], [ -84.806900, 41.677528 ], [ -84.809647, 40.946714 ] ], [ [ -84.806900, 41.677528 ], [ -84.331055, 41.684707 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -1125,7 +1125,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 36, "y": 48 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -77.722778, 39.322612 ], [ -77.801743, 39.449980 ], [ -77.923279, 39.592990 ], [ -78.232269, 39.672313 ], [ -78.425217, 39.596694 ], [ -78.533707, 39.522581 ], [ -78.793945, 39.558059 ] ], [ [ -75.893555, 39.723032 ], [ -76.668091, 39.720920 ], [ -77.522964, 39.725673 ], [ -78.550186, 39.719863 ], [ -78.793945, 39.720392 ] ], [ [ -77.722778, 39.322612 ], [ -77.834702, 39.134321 ], [ -78.345566, 39.405428 ], [ -78.424530, 39.139115 ], [ -78.548813, 39.039986 ], [ -78.744507, 38.909202 ], [ -78.793945, 38.866444 ] ], [ [ -77.722778, 39.322612 ], [ -77.576523, 39.288608 ], [ -77.443314, 39.213635 ], [ -77.516785, 39.106087 ], [ -77.305984, 39.045853 ], [ -77.119217, 38.933776 ], [ -77.036819, 38.848264 ], [ -77.040939, 38.788345 ] ], [ [ -77.119217, 38.933776 ], [ -77.038879, 38.982364 ], [ -76.911850, 38.878205 ], [ -77.040939, 38.789416 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -77.722778, 39.322612 ], [ -77.801743, 39.449980 ], [ -77.923279, 39.592990 ], [ -78.232269, 39.672313 ], [ -78.425217, 39.596694 ], [ -78.533707, 39.522581 ], [ -78.793945, 39.558059 ] ], [ [ -75.893555, 39.723032 ], [ -76.668091, 39.720920 ], [ -77.522964, 39.725673 ], [ -78.232956, 39.721448 ], [ -78.550186, 39.719863 ], [ -78.793945, 39.720392 ] ], [ [ -77.722778, 39.322612 ], [ -77.834702, 39.134321 ], [ -78.345566, 39.405428 ], [ -78.424530, 39.139115 ], [ -78.548813, 39.039986 ], [ -78.744507, 38.909202 ], [ -78.793945, 38.866444 ] ], [ [ -77.722778, 39.322612 ], [ -77.576523, 39.288608 ], [ -77.443314, 39.213635 ], [ -77.516785, 39.106087 ], [ -77.305984, 39.045853 ], [ -77.119217, 38.933776 ], [ -77.036819, 38.848264 ], [ -77.040939, 38.789416 ], [ -77.040939, 38.788345 ] ], [ [ -77.119217, 38.933776 ], [ -77.038879, 38.982364 ], [ -76.911850, 38.878205 ], [ -77.040939, 38.789416 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -1167,7 +1167,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 7, "x": 38, "y": 47 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "countries", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -72.456894, 42.726839 ], [ -73.168945, 42.740961 ] ], [ [ -72.456894, 42.726839 ], [ -72.537231, 42.830660 ], [ -72.458954, 42.960443 ], [ -72.445908, 43.100983 ] ], [ [ -70.758133, 43.100983 ], [ -70.751266, 43.079922 ], [ -70.645523, 43.089952 ] ], [ [ -70.815125, 42.865396 ], [ -70.645523, 43.089952 ] ], [ [ -71.801147, 42.013081 ], [ -73.168945, 42.046743 ] ], [ [ -71.801147, 42.013081 ], [ -71.792908, 41.466399 ], [ -71.854019, 41.320107 ] ], [ [ -72.456894, 42.726839 ], [ -71.249084, 42.718264 ], [ -71.146088, 42.816559 ], [ -70.933914, 42.884015 ], [ -70.815125, 42.865396 ] ], [ [ -71.801147, 42.013081 ], [ -71.378860, 42.024304 ], [ -71.305389, 41.762605 ], [ -71.148148, 41.647775 ], [ -71.120682, 41.494692 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "adm0_a3": "USA", "adm0_name": "United States of America", "mapcolor9": 1, "mapcolor13": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -72.456894, 42.726839 ], [ -73.168945, 42.740961 ] ], [ [ -72.456894, 42.726839 ], [ -72.537231, 42.830660 ], [ -72.458954, 42.960443 ], [ -72.445908, 43.100983 ] ], [ [ -70.758133, 43.100983 ], [ -70.751266, 43.079922 ], [ -70.645523, 43.089952 ] ], [ [ -70.815125, 42.865396 ], [ -70.645523, 43.089952 ] ], [ [ -71.801147, 42.013081 ], [ -72.732239, 42.036034 ], [ -73.168945, 42.046743 ] ], [ [ -71.801147, 42.013081 ], [ -71.792908, 41.466399 ], [ -71.854019, 41.320107 ] ], [ [ -72.456894, 42.726839 ], [ -71.249084, 42.718264 ], [ -71.146088, 42.816559 ], [ -70.933914, 42.884015 ], [ -70.815125, 42.865396 ] ], [ [ -71.801147, 42.013081 ], [ -71.378860, 42.024304 ], [ -71.305389, 41.762605 ], [ -71.148148, 41.647775 ], [ -71.120682, 41.494692 ] ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+401
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+432
-206
@@ -40,6 +40,7 @@
|
||||
#include "jsonpull/jsonpull.h"
|
||||
#include "milo/dtoa_milo.h"
|
||||
#include "errors.hpp"
|
||||
#include "geometry.hpp"
|
||||
|
||||
int pk = false;
|
||||
int pC = false;
|
||||
@@ -52,6 +53,9 @@ int minzoom = 0;
|
||||
std::map<std::string, std::string> renames;
|
||||
bool exclude_all = false;
|
||||
|
||||
bool want_overzoom = false;
|
||||
int buffer = 5;
|
||||
|
||||
bool progress_time() {
|
||||
return false;
|
||||
}
|
||||
@@ -80,7 +84,7 @@ void aprintf(std::string *buf, const char *format, ...) {
|
||||
free(tmp);
|
||||
}
|
||||
|
||||
void handle(std::string message, int z, unsigned x, unsigned y, std::map<std::string, layermap_entry> &layermap, std::vector<std::string> &header, std::map<std::string, std::vector<std::string>> &mapping, std::set<std::string> &exclude, std::set<std::string> &include, std::set<std::string> &keep_layers, std::set<std::string> &remove_layers, int ifmatched, mvt_tile &outtile, json_object *filter) {
|
||||
void append_tile(std::string message, int z, unsigned x, unsigned y, std::map<std::string, layermap_entry> &layermap, std::vector<std::string> &header, std::map<std::string, std::vector<std::string>> &mapping, std::set<std::string> &exclude, std::set<std::string> &include, std::set<std::string> &keep_layers, std::set<std::string> &remove_layers, int ifmatched, mvt_tile &outtile, json_object *filter) {
|
||||
mvt_tile tile;
|
||||
int features_added = 0;
|
||||
bool was_compressed;
|
||||
@@ -372,27 +376,314 @@ double max(double a, double b) {
|
||||
}
|
||||
}
|
||||
|
||||
struct tilecmp {
|
||||
bool operator()(std::pair<unsigned, unsigned> const &a, std::pair<unsigned, unsigned> const &b) {
|
||||
// must match behavior of reader::operator<()
|
||||
|
||||
if (a.first < b.first) {
|
||||
return true;
|
||||
}
|
||||
if (a.first == b.first) {
|
||||
// Y sorts backwards, in TMS order
|
||||
if (a.second > b.second) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
} tilecmp;
|
||||
|
||||
// The `reader` is an iterator through the tiles of a tileset,
|
||||
// in z/x/tms_y order.
|
||||
//
|
||||
// The basic idea is that it is used like this:
|
||||
//
|
||||
// void blah(const char *fname) {
|
||||
// reader r(fname);
|
||||
//
|
||||
// for (; !r.all_done(); r.advance()) {
|
||||
// std::pair<zxy, std::string> tile = r.current();
|
||||
// whatever(tile);
|
||||
// }
|
||||
//
|
||||
// r.close();
|
||||
// }
|
||||
//
|
||||
// The complication is that you can actually keep calling current()
|
||||
// and advance() after the reader claims to be done, in which case
|
||||
// it will produce overzoomed tiles generated from the tiles in
|
||||
// the maxzoom tileset. The parent tiles for those overzoomed tiles
|
||||
// are retrieved internally using get_tile() rather than through the
|
||||
// main iteration query.
|
||||
|
||||
struct reader {
|
||||
// z/x/y and data of the current tile
|
||||
long long zoom = 0;
|
||||
long long x = 0;
|
||||
long long sorty = 0;
|
||||
long long y = 0;
|
||||
int z_flag = 0;
|
||||
|
||||
std::string data = "";
|
||||
bool current_tile_is_overzoomed = false;
|
||||
|
||||
std::vector<zxy> dirtiles;
|
||||
std::string dirbase;
|
||||
std::string name;
|
||||
// "done" means we have read all of the real tiles from the source.
|
||||
// The iterator will continue to produce overzoomed tiles after it is "done."
|
||||
bool done = false;
|
||||
|
||||
// for overzooming
|
||||
int maxzoom_so_far = -1;
|
||||
std::vector<std::pair<unsigned, unsigned>> tiles_at_maxzoom_so_far;
|
||||
std::vector<std::pair<unsigned, unsigned>> overzoomed_tiles;
|
||||
bool overzoom_consumed_at_this_zoom = false;
|
||||
|
||||
// for iterating mbtiles
|
||||
sqlite3 *db = NULL;
|
||||
sqlite3_stmt *stmt = NULL;
|
||||
struct reader *next = NULL;
|
||||
|
||||
// for iterating dirtiles
|
||||
std::vector<zxy> dirtiles;
|
||||
std::string dirbase;
|
||||
std::string name;
|
||||
|
||||
// for iterating pmtiles
|
||||
char *pmtiles_map = NULL;
|
||||
std::vector<pmtiles::entry_zxy> pmtiles_entries;
|
||||
|
||||
reader(const char *fname) {
|
||||
name = fname;
|
||||
struct stat st;
|
||||
if (stat(fname, &st) == 0 && (st.st_mode & S_IFDIR) != 0) {
|
||||
db = NULL;
|
||||
stmt = NULL;
|
||||
next = NULL;
|
||||
|
||||
dirtiles = enumerate_dirtiles(fname, minzoom, maxzoom);
|
||||
dirbase = fname;
|
||||
} else if (pmtiles_has_suffix(fname)) {
|
||||
int pmtiles_fd = open(fname, O_RDONLY | O_CLOEXEC);
|
||||
pmtiles_map = (char *) mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, pmtiles_fd, 0);
|
||||
|
||||
if (pmtiles_map == MAP_FAILED) {
|
||||
perror("mmap in decode");
|
||||
exit(EXIT_MEMORY);
|
||||
}
|
||||
if (::close(pmtiles_fd) != 0) {
|
||||
perror("close");
|
||||
exit(EXIT_CLOSE);
|
||||
}
|
||||
|
||||
pmtiles_entries = pmtiles_entries_tms(pmtiles_map, minzoom, maxzoom);
|
||||
std::reverse(pmtiles_entries.begin(), pmtiles_entries.end());
|
||||
} else {
|
||||
if (sqlite3_open(fname, &db) != SQLITE_OK) {
|
||||
fprintf(stderr, "%s: %s\n", fname, sqlite3_errmsg(db));
|
||||
exit(EXIT_SQLITE);
|
||||
}
|
||||
|
||||
char *err = NULL;
|
||||
if (sqlite3_exec(db, "PRAGMA integrity_check;", NULL, NULL, &err) != SQLITE_OK) {
|
||||
fprintf(stderr, "%s: integrity_check: %s\n", fname, err);
|
||||
exit(EXIT_SQLITE);
|
||||
}
|
||||
|
||||
const char *sql = "SELECT zoom_level, tile_column, tile_row, tile_data from tiles order by zoom_level, tile_column, tile_row;";
|
||||
sqlite3_stmt *query;
|
||||
|
||||
if (sqlite3_prepare_v2(db, sql, -1, &query, NULL) != SQLITE_OK) {
|
||||
fprintf(stderr, "%s: select failed: %s\n", fname, sqlite3_errmsg(db));
|
||||
exit(EXIT_SQLITE);
|
||||
}
|
||||
|
||||
stmt = query;
|
||||
next = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
// Checks the done status not only of this reader but also
|
||||
// the others chained to it in the queue.
|
||||
//
|
||||
// Also claims not to be done if at least one overzoomed tile
|
||||
// has been consumed at this zoom level, in which case they should
|
||||
// all allowed to be consumed before stopping.
|
||||
bool all_done() {
|
||||
if (!done) {
|
||||
return false;
|
||||
}
|
||||
if (overzoom_consumed_at_this_zoom) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (struct reader *r = next; r != NULL; r = r->next) {
|
||||
if (!r->done) {
|
||||
return false;
|
||||
}
|
||||
if (r->overzoom_consumed_at_this_zoom) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
std::pair<zxy, std::string> current() {
|
||||
if (current_tile_is_overzoomed) {
|
||||
overzoom_consumed_at_this_zoom = true;
|
||||
}
|
||||
|
||||
return std::pair<zxy, std::string>(zxy(zoom, x, y), data);
|
||||
}
|
||||
|
||||
void advance() {
|
||||
if (done) {
|
||||
if (!want_overzoom) {
|
||||
fprintf(stderr, "overzoom advance called without -O\n");
|
||||
exit(EXIT_IMPOSSIBLE);
|
||||
}
|
||||
|
||||
if (overzoomed_tiles.size() == 0) {
|
||||
next_overzoom();
|
||||
overzoom_consumed_at_this_zoom = false;
|
||||
}
|
||||
|
||||
auto xy = overzoomed_tiles.front();
|
||||
overzoomed_tiles.erase(overzoomed_tiles.begin());
|
||||
|
||||
x = xy.first;
|
||||
y = xy.second;
|
||||
data = retrieve_overzoom(zxy(zoom, x, y));
|
||||
current_tile_is_overzoomed = true;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
current_tile_is_overzoomed = false;
|
||||
|
||||
if (db != NULL) {
|
||||
if (sqlite3_step(stmt) == SQLITE_ROW) {
|
||||
zoom = sqlite3_column_int(stmt, 0);
|
||||
x = sqlite3_column_int(stmt, 1);
|
||||
int tms_y = sqlite3_column_int(stmt, 2);
|
||||
y = (1LL << zoom) - 1 - tms_y;
|
||||
const char *s = (const char *) sqlite3_column_blob(stmt, 3);
|
||||
size_t len = sqlite3_column_bytes(stmt, 3);
|
||||
|
||||
data = std::string(s, len);
|
||||
} else {
|
||||
done = true;
|
||||
}
|
||||
} else if (pmtiles_map != NULL) {
|
||||
if (pmtiles_entries.size() == 0) {
|
||||
done = true;
|
||||
} else {
|
||||
zoom = pmtiles_entries.back().z;
|
||||
x = pmtiles_entries.back().x;
|
||||
y = pmtiles_entries.back().y;
|
||||
data = std::string(pmtiles_map + pmtiles_entries.back().offset, pmtiles_entries.back().length);
|
||||
|
||||
pmtiles_entries.pop_back();
|
||||
}
|
||||
} else {
|
||||
if (dirtiles.size() == 0) {
|
||||
done = true;
|
||||
} else {
|
||||
zoom = dirtiles[0].z;
|
||||
x = dirtiles[0].x;
|
||||
y = dirtiles[0].y;
|
||||
data = dir_read_tile(dirbase, dirtiles[0]);
|
||||
|
||||
dirtiles.erase(dirtiles.begin());
|
||||
}
|
||||
}
|
||||
|
||||
if (done) {
|
||||
if (want_overzoom) {
|
||||
next_overzoom();
|
||||
advance();
|
||||
} else {
|
||||
zoom = 32;
|
||||
}
|
||||
} else {
|
||||
if (zoom > maxzoom_so_far) {
|
||||
maxzoom_so_far = zoom;
|
||||
tiles_at_maxzoom_so_far.clear();
|
||||
}
|
||||
|
||||
if (want_overzoom) {
|
||||
tiles_at_maxzoom_so_far.push_back(std::pair<unsigned, unsigned>(x, y));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void close() {
|
||||
if (pmtiles_map) {
|
||||
db = pmtilesmeta2tmp(name.c_str(), pmtiles_map);
|
||||
// json, strategies
|
||||
} else if (db == NULL) {
|
||||
db = dirmeta2tmp(dirbase.c_str());
|
||||
} else {
|
||||
sqlite3_finalize(stmt);
|
||||
}
|
||||
}
|
||||
|
||||
void next_overzoom() {
|
||||
zoom++;
|
||||
overzoomed_tiles.clear();
|
||||
|
||||
long long scale = (1LL << zoom) / (1LL << maxzoom_so_far);
|
||||
|
||||
for (auto const &xy : tiles_at_maxzoom_so_far) {
|
||||
for (long long xx = 0; xx < scale; xx++) {
|
||||
for (long long yy = 0; yy < scale; yy++) {
|
||||
overzoomed_tiles.push_back(std::pair<unsigned, unsigned>(xy.first * scale + xx, xy.second * scale + yy));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::sort(overzoomed_tiles.begin(), overzoomed_tiles.end(), tilecmp);
|
||||
overzoom_consumed_at_this_zoom = false;
|
||||
}
|
||||
|
||||
std::string get_tile(zxy tile) {
|
||||
std::string source;
|
||||
|
||||
if (db != NULL) {
|
||||
const char *sql = "SELECT tile_data from tiles where zoom_level = ? and tile_column = ? and tile_row = ?;";
|
||||
sqlite3_stmt *query;
|
||||
if (sqlite3_prepare_v2(db, sql, -1, &query, NULL) != SQLITE_OK) {
|
||||
fprintf(stderr, "%s: select failed: %s\n", name.c_str(), sqlite3_errmsg(db));
|
||||
exit(EXIT_SQLITE);
|
||||
}
|
||||
|
||||
sqlite3_bind_int(query, 1, tile.z);
|
||||
sqlite3_bind_int(query, 2, tile.x);
|
||||
sqlite3_bind_int(query, 3, (1LL << tile.z) - 1 - tile.y);
|
||||
|
||||
if (sqlite3_step(query) == SQLITE_ROW) {
|
||||
const char *s = (const char *) sqlite3_column_blob(query, 0);
|
||||
size_t len = sqlite3_column_bytes(query, 0);
|
||||
|
||||
source = std::string(s, len);
|
||||
}
|
||||
|
||||
sqlite3_finalize(query);
|
||||
} else if (pmtiles_map != NULL) {
|
||||
uint64_t tile_offset;
|
||||
uint32_t tile_length;
|
||||
std::tie(tile_offset, tile_length) = pmtiles_get_tile(pmtiles_map, tile.z, tile.x, tile.y);
|
||||
if (tile_length > 0) {
|
||||
source = std::string(pmtiles_map + tile_offset, tile_length);
|
||||
}
|
||||
} else {
|
||||
source = dir_read_tile(dirbase, tile);
|
||||
}
|
||||
|
||||
return source;
|
||||
}
|
||||
|
||||
// Sort in z/x/tms_y order, because that is the order of the
|
||||
// straightforward query of the mbtiles tiles table.
|
||||
bool operator<(const struct reader &r) const {
|
||||
// must match behavior of tilecmp
|
||||
|
||||
if (zoom < r.zoom) {
|
||||
return true;
|
||||
}
|
||||
@@ -407,10 +698,13 @@ struct reader {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (sorty < r.sorty) {
|
||||
int sorty = (1LL << zoom) - 1 - y;
|
||||
int r_sorty = (1LL << r.zoom) - 1 - r.y;
|
||||
|
||||
if (sorty < r_sorty) {
|
||||
return true;
|
||||
}
|
||||
if (sorty > r.sorty) {
|
||||
if (sorty > r_sorty) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -420,99 +714,44 @@ struct reader {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string retrieve_overzoom(zxy tile) {
|
||||
// lock around sqlite3 access
|
||||
static pthread_mutex_t retrieve_lock = PTHREAD_MUTEX_INITIALIZER;
|
||||
|
||||
zxy parent_tile = tile;
|
||||
while (parent_tile.z > maxzoom_so_far) {
|
||||
parent_tile.z--;
|
||||
parent_tile.x /= 2;
|
||||
parent_tile.y /= 2;
|
||||
}
|
||||
|
||||
if (pthread_mutex_lock(&retrieve_lock) != 0) {
|
||||
perror("pthread_mutex_lock");
|
||||
}
|
||||
|
||||
std::string source = get_tile(parent_tile);
|
||||
|
||||
if (pthread_mutex_unlock(&retrieve_lock) != 0) {
|
||||
perror("pthread_mutex_unlock");
|
||||
}
|
||||
|
||||
if (source.size() != 0) {
|
||||
std::string ret = overzoom(source, parent_tile.z, parent_tile.x, parent_tile.y, tile.z, tile.x, tile.y, -1, buffer, std::set<std::string>());
|
||||
return ret;
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
};
|
||||
|
||||
struct reader *begin_reading(char *fname) {
|
||||
struct reader *r = new reader;
|
||||
r->name = fname;
|
||||
struct stat st;
|
||||
if (stat(fname, &st) == 0 && (st.st_mode & S_IFDIR) != 0) {
|
||||
r->db = NULL;
|
||||
r->stmt = NULL;
|
||||
r->next = NULL;
|
||||
|
||||
r->dirtiles = enumerate_dirtiles(fname, minzoom, maxzoom);
|
||||
r->dirbase = fname;
|
||||
|
||||
if (r->dirtiles.size() == 0) {
|
||||
r->zoom = 32;
|
||||
} else {
|
||||
r->zoom = r->dirtiles[0].z;
|
||||
r->x = r->dirtiles[0].x;
|
||||
r->y = r->dirtiles[0].y;
|
||||
r->sorty = (1LL << r->zoom) - 1 - r->y;
|
||||
r->data = dir_read_tile(r->dirbase, r->dirtiles[0]);
|
||||
|
||||
r->dirtiles.erase(r->dirtiles.begin());
|
||||
}
|
||||
} else if (pmtiles_has_suffix(fname)) {
|
||||
int pmtiles_fd = open(fname, O_RDONLY | O_CLOEXEC);
|
||||
r->pmtiles_map = (char *) mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, pmtiles_fd, 0);
|
||||
|
||||
if (r->pmtiles_map == MAP_FAILED) {
|
||||
perror("mmap in decode");
|
||||
exit(EXIT_MEMORY);
|
||||
}
|
||||
if (close(pmtiles_fd) != 0) {
|
||||
perror("close");
|
||||
exit(EXIT_CLOSE);
|
||||
}
|
||||
|
||||
r->pmtiles_entries = pmtiles_entries_tms(r->pmtiles_map, minzoom, maxzoom);
|
||||
std::reverse(r->pmtiles_entries.begin(), r->pmtiles_entries.end());
|
||||
|
||||
if (r->pmtiles_entries.size() == 0) {
|
||||
r->zoom = 32;
|
||||
} else {
|
||||
r->zoom = r->pmtiles_entries.back().z;
|
||||
r->x = r->pmtiles_entries.back().x;
|
||||
r->y = r->pmtiles_entries.back().y;
|
||||
r->sorty = (1LL << r->zoom) - 1 - r->y;
|
||||
|
||||
r->data = std::string(r->pmtiles_map + r->pmtiles_entries.back().offset, r->pmtiles_entries.back().length);
|
||||
r->pmtiles_entries.pop_back();
|
||||
}
|
||||
} else {
|
||||
sqlite3 *db;
|
||||
|
||||
if (sqlite3_open(fname, &db) != SQLITE_OK) {
|
||||
fprintf(stderr, "%s: %s\n", fname, sqlite3_errmsg(db));
|
||||
exit(EXIT_SQLITE);
|
||||
}
|
||||
|
||||
char *err = NULL;
|
||||
if (sqlite3_exec(db, "PRAGMA integrity_check;", NULL, NULL, &err) != SQLITE_OK) {
|
||||
fprintf(stderr, "%s: integrity_check: %s\n", fname, err);
|
||||
exit(EXIT_SQLITE);
|
||||
}
|
||||
|
||||
const char *sql = "SELECT zoom_level, tile_column, tile_row, tile_data from tiles order by zoom_level, tile_column, tile_row;";
|
||||
sqlite3_stmt *stmt;
|
||||
|
||||
if (sqlite3_prepare_v2(db, sql, -1, &stmt, NULL) != SQLITE_OK) {
|
||||
fprintf(stderr, "%s: select failed: %s\n", fname, sqlite3_errmsg(db));
|
||||
exit(EXIT_SQLITE);
|
||||
}
|
||||
|
||||
r->db = db;
|
||||
r->stmt = stmt;
|
||||
r->next = NULL;
|
||||
|
||||
if (sqlite3_step(stmt) == SQLITE_ROW) {
|
||||
r->zoom = sqlite3_column_int(stmt, 0);
|
||||
r->x = sqlite3_column_int(stmt, 1);
|
||||
r->sorty = sqlite3_column_int(stmt, 2);
|
||||
r->y = (1LL << r->zoom) - 1 - r->sorty;
|
||||
|
||||
const char *data = (const char *) sqlite3_column_blob(stmt, 3);
|
||||
size_t len = sqlite3_column_bytes(stmt, 3);
|
||||
|
||||
r->data = std::string(data, len);
|
||||
} else {
|
||||
r->zoom = 32;
|
||||
}
|
||||
}
|
||||
struct reader *r = new reader(fname);
|
||||
|
||||
// The reason this prefetches is so the reader queue can be
|
||||
// priority-ordered, so the one with the next relevant tile
|
||||
// is first in line.
|
||||
r->advance();
|
||||
return r;
|
||||
}
|
||||
|
||||
@@ -530,6 +769,7 @@ struct arg {
|
||||
std::set<std::string> *remove_layers = NULL;
|
||||
int ifmatched = 0;
|
||||
json_object *filter = NULL;
|
||||
struct reader *readers = NULL;
|
||||
};
|
||||
|
||||
void *join_worker(void *v) {
|
||||
@@ -539,7 +779,7 @@ void *join_worker(void *v) {
|
||||
mvt_tile tile;
|
||||
|
||||
for (size_t i = 0; i < ai->second.size(); i++) {
|
||||
handle(ai->second[i], ai->first.z, ai->first.x, ai->first.y, *(a->layermap), *(a->header), *(a->mapping), *(a->exclude), *(a->include), *(a->keep_layers), *(a->remove_layers), a->ifmatched, tile, a->filter);
|
||||
append_tile(ai->second[i], ai->first.z, ai->first.x, ai->first.y, *(a->layermap), *(a->header), *(a->mapping), *(a->exclude), *(a->include), *(a->keep_layers), *(a->remove_layers), a->ifmatched, tile, a->filter);
|
||||
}
|
||||
|
||||
ai->second.clear();
|
||||
@@ -574,7 +814,7 @@ void *join_worker(void *v) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void handle_tasks(std::map<zxy, std::vector<std::string>> &tasks, std::vector<std::map<std::string, layermap_entry>> &layermaps, sqlite3 *outdb, const char *outdir, std::vector<std::string> &header, std::map<std::string, std::vector<std::string>> &mapping, std::set<std::string> &exclude, std::set<std::string> &include, int ifmatched, std::set<std::string> &keep_layers, std::set<std::string> &remove_layers, json_object *filter) {
|
||||
void dispatch_tasks(std::map<zxy, std::vector<std::string>> &tasks, std::vector<std::map<std::string, layermap_entry>> &layermaps, sqlite3 *outdb, const char *outdir, std::vector<std::string> &header, std::map<std::string, std::vector<std::string>> &mapping, std::set<std::string> &exclude, std::set<std::string> &include, int ifmatched, std::set<std::string> &keep_layers, std::set<std::string> &remove_layers, json_object *filter, struct reader *readers) {
|
||||
pthread_t pthreads[CPUS];
|
||||
std::vector<arg> args;
|
||||
|
||||
@@ -590,6 +830,7 @@ void handle_tasks(std::map<zxy, std::vector<std::string>> &tasks, std::vector<st
|
||||
args[i].remove_layers = &remove_layers;
|
||||
args[i].ifmatched = ifmatched;
|
||||
args[i].filter = filter;
|
||||
args[i].readers = readers;
|
||||
}
|
||||
|
||||
size_t count = 0;
|
||||
@@ -736,22 +977,21 @@ void decode(struct reader *readers, std::map<std::string, layermap_entry> &layer
|
||||
double maxlon2 = INT_MIN;
|
||||
int zoom_for_bbox = -1;
|
||||
|
||||
while (readers != NULL && readers->zoom < 32) {
|
||||
reader *r = readers;
|
||||
readers = readers->next;
|
||||
r->next = NULL;
|
||||
if (r->zoom != zoom_for_bbox) {
|
||||
while (readers != NULL && !readers->all_done()) {
|
||||
std::pair<zxy, std::string> current = readers->current();
|
||||
|
||||
if (current.first.z != zoom_for_bbox) {
|
||||
// Only use highest zoom for bbox calculation
|
||||
// to avoid z0 always covering the world
|
||||
|
||||
minlat = minlon = minlon2 = INT_MAX;
|
||||
maxlat = maxlon = maxlon2 = INT_MIN;
|
||||
zoom_for_bbox = r->zoom;
|
||||
zoom_for_bbox = current.first.z;
|
||||
}
|
||||
|
||||
double lat1, lon1, lat2, lon2;
|
||||
tile2lonlat(r->x, r->y, r->zoom, &lon1, &lat1);
|
||||
tile2lonlat(r->x + 1, r->y + 1, r->zoom, &lon2, &lat2);
|
||||
tile2lonlat(current.first.x, current.first.y, current.first.z, &lon1, &lat1);
|
||||
tile2lonlat(current.first.x + 1, current.first.y + 1, current.first.z, &lon2, &lat2);
|
||||
minlat = min(lat2, minlat);
|
||||
minlon = min(lon1, minlon);
|
||||
maxlat = max(lat1, maxlat);
|
||||
@@ -765,63 +1005,37 @@ void decode(struct reader *readers, std::map<std::string, layermap_entry> &layer
|
||||
minlon2 = min(lon1, minlon2);
|
||||
maxlon2 = max(lon2, maxlon2);
|
||||
|
||||
if (r->zoom >= minzoom && r->zoom <= maxzoom) {
|
||||
zxy tile = zxy(r->zoom, r->x, r->y);
|
||||
if (current.first.z >= minzoom && current.first.z <= maxzoom) {
|
||||
zxy tile = current.first;
|
||||
if (tasks.count(tile) == 0) {
|
||||
tasks.insert(std::pair<zxy, std::vector<std::string>>(tile, std::vector<std::string>()));
|
||||
}
|
||||
auto f = tasks.find(tile);
|
||||
f->second.push_back(r->data);
|
||||
f->second.push_back(current.second);
|
||||
}
|
||||
|
||||
if (readers == NULL || readers->zoom != r->zoom || readers->x != r->x || readers->y != r->y) {
|
||||
if (readers == NULL || readers->zoom != current.first.z || readers->x != current.first.x || readers->y != current.first.y) {
|
||||
if (tasks.size() > 100 * CPUS) {
|
||||
handle_tasks(tasks, layermaps, outdb, outdir, header, mapping, exclude, include, ifmatched, keep_layers, remove_layers, filter);
|
||||
dispatch_tasks(tasks, layermaps, outdb, outdir, header, mapping, exclude, include, ifmatched, keep_layers, remove_layers, filter, readers);
|
||||
tasks.clear();
|
||||
}
|
||||
}
|
||||
|
||||
if (r->db != NULL) {
|
||||
if (sqlite3_step(r->stmt) == SQLITE_ROW) {
|
||||
r->zoom = sqlite3_column_int(r->stmt, 0);
|
||||
r->x = sqlite3_column_int(r->stmt, 1);
|
||||
r->sorty = sqlite3_column_int(r->stmt, 2);
|
||||
r->y = (1LL << r->zoom) - 1 - r->sorty;
|
||||
const char *data = (const char *) sqlite3_column_blob(r->stmt, 3);
|
||||
size_t len = sqlite3_column_bytes(r->stmt, 3);
|
||||
// The reason this prefetches is so the reader queue can be
|
||||
// priority-ordered, so the one with the next relevant tile
|
||||
// is first in line.
|
||||
readers->advance();
|
||||
|
||||
r->data = std::string(data, len);
|
||||
} else {
|
||||
r->zoom = 32;
|
||||
}
|
||||
} else if (r->pmtiles_map != NULL) {
|
||||
if (r->pmtiles_entries.size() == 0) {
|
||||
r->zoom = 32;
|
||||
} else {
|
||||
r->zoom = r->pmtiles_entries.back().z;
|
||||
r->x = r->pmtiles_entries.back().x;
|
||||
r->y = r->pmtiles_entries.back().y;
|
||||
r->sorty = (1LL << r->zoom) - 1 - r->y;
|
||||
r->data = std::string(r->pmtiles_map + r->pmtiles_entries.back().offset, r->pmtiles_entries.back().length);
|
||||
// pull the reader off the front of the queue for reordering
|
||||
|
||||
r->pmtiles_entries.pop_back();
|
||||
}
|
||||
} else {
|
||||
if (r->dirtiles.size() == 0) {
|
||||
r->zoom = 32;
|
||||
} else {
|
||||
r->zoom = r->dirtiles[0].z;
|
||||
r->x = r->dirtiles[0].x;
|
||||
r->y = r->dirtiles[0].y;
|
||||
r->sorty = (1LL << r->zoom) - 1 - r->y;
|
||||
r->data = dir_read_tile(r->dirbase, r->dirtiles[0]);
|
||||
reader *r = readers;
|
||||
readers = readers->next;
|
||||
r->next = NULL;
|
||||
|
||||
r->dirtiles.erase(r->dirtiles.begin());
|
||||
}
|
||||
}
|
||||
// put the reader back onto the queue,
|
||||
// in whatever sequence its next tile calls for
|
||||
|
||||
struct reader **rr;
|
||||
|
||||
for (rr = &readers; *rr != NULL; rr = &((*rr)->next)) {
|
||||
if (*r < **rr) {
|
||||
break;
|
||||
@@ -842,72 +1056,66 @@ void decode(struct reader *readers, std::map<std::string, layermap_entry> &layer
|
||||
st->minlat2 = min(minlat, st->minlat2);
|
||||
st->maxlat2 = max(maxlat, st->maxlat2);
|
||||
|
||||
handle_tasks(tasks, layermaps, outdb, outdir, header, mapping, exclude, include, ifmatched, keep_layers, remove_layers, filter);
|
||||
dispatch_tasks(tasks, layermaps, outdb, outdir, header, mapping, exclude, include, ifmatched, keep_layers, remove_layers, filter, readers);
|
||||
layermap = merge_layermaps(layermaps);
|
||||
|
||||
struct reader *next;
|
||||
for (struct reader *r = readers; r != NULL; r = next) {
|
||||
next = r->next;
|
||||
r->close();
|
||||
|
||||
sqlite3 *db = r->db;
|
||||
if (r->pmtiles_map) {
|
||||
db = pmtilesmeta2tmp(r->name.c_str(), r->pmtiles_map);
|
||||
// json, strategies
|
||||
} else if (db == NULL) {
|
||||
db = dirmeta2tmp(r->dirbase.c_str());
|
||||
} else {
|
||||
sqlite3_finalize(r->stmt);
|
||||
}
|
||||
|
||||
if (sqlite3_prepare_v2(db, "SELECT value from metadata where name = 'minzoom'", -1, &r->stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(r->stmt) == SQLITE_ROW) {
|
||||
int minz = max(sqlite3_column_int(r->stmt, 0), minzoom);
|
||||
sqlite3_stmt *stmt;
|
||||
if (sqlite3_prepare_v2(r->db, "SELECT value from metadata where name = 'minzoom'", -1, &stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(stmt) == SQLITE_ROW) {
|
||||
int minz = max(sqlite3_column_int(stmt, 0), minzoom);
|
||||
st->minzoom = min(st->minzoom, minz);
|
||||
}
|
||||
sqlite3_finalize(r->stmt);
|
||||
sqlite3_finalize(stmt);
|
||||
}
|
||||
if (sqlite3_prepare_v2(db, "SELECT value from metadata where name = 'maxzoom'", -1, &r->stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(r->stmt) == SQLITE_ROW) {
|
||||
int maxz = min(sqlite3_column_int(r->stmt, 0), maxzoom);
|
||||
if (sqlite3_prepare_v2(r->db, "SELECT value from metadata where name = 'maxzoom'", -1, &stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(stmt) == SQLITE_ROW) {
|
||||
int maxz = min(sqlite3_column_int(stmt, 0), maxzoom);
|
||||
|
||||
if (st->maxzoom >= 0 && maxz != st->maxzoom) {
|
||||
fprintf(stderr, "Warning: mismatched maxzooms: %d in %s vs previous %d\n", maxz, r->name.c_str(), st->maxzoom);
|
||||
if (!want_overzoom) {
|
||||
if (st->maxzoom >= 0 && maxz != st->maxzoom) {
|
||||
fprintf(stderr, "Warning: mismatched maxzooms: %d in %s vs previous %d\n", maxz, r->name.c_str(), st->maxzoom);
|
||||
}
|
||||
}
|
||||
|
||||
st->maxzoom = max(st->maxzoom, maxz);
|
||||
}
|
||||
sqlite3_finalize(r->stmt);
|
||||
sqlite3_finalize(stmt);
|
||||
}
|
||||
if (sqlite3_prepare_v2(db, "SELECT value from metadata where name = 'center'", -1, &r->stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(r->stmt) == SQLITE_ROW) {
|
||||
const unsigned char *s = sqlite3_column_text(r->stmt, 0);
|
||||
if (sqlite3_prepare_v2(r->db, "SELECT value from metadata where name = 'center'", -1, &stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(stmt) == SQLITE_ROW) {
|
||||
const unsigned char *s = sqlite3_column_text(stmt, 0);
|
||||
if (s != NULL) {
|
||||
sscanf((char *) s, "%lf,%lf", &st->midlon, &st->midlat);
|
||||
}
|
||||
}
|
||||
sqlite3_finalize(r->stmt);
|
||||
sqlite3_finalize(stmt);
|
||||
}
|
||||
if (sqlite3_prepare_v2(db, "SELECT value from metadata where name = 'attribution'", -1, &r->stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(r->stmt) == SQLITE_ROW) {
|
||||
const unsigned char *s = sqlite3_column_text(r->stmt, 0);
|
||||
if (sqlite3_prepare_v2(r->db, "SELECT value from metadata where name = 'attribution'", -1, &stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(stmt) == SQLITE_ROW) {
|
||||
const unsigned char *s = sqlite3_column_text(stmt, 0);
|
||||
if (s != NULL) {
|
||||
attribution = std::string((char *) s);
|
||||
}
|
||||
}
|
||||
sqlite3_finalize(r->stmt);
|
||||
sqlite3_finalize(stmt);
|
||||
}
|
||||
if (sqlite3_prepare_v2(db, "SELECT value from metadata where name = 'description'", -1, &r->stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(r->stmt) == SQLITE_ROW) {
|
||||
const unsigned char *s = sqlite3_column_text(r->stmt, 0);
|
||||
if (sqlite3_prepare_v2(r->db, "SELECT value from metadata where name = 'description'", -1, &stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(stmt) == SQLITE_ROW) {
|
||||
const unsigned char *s = sqlite3_column_text(stmt, 0);
|
||||
if (s != NULL) {
|
||||
description = std::string((char *) s);
|
||||
}
|
||||
}
|
||||
sqlite3_finalize(r->stmt);
|
||||
sqlite3_finalize(stmt);
|
||||
}
|
||||
if (sqlite3_prepare_v2(db, "SELECT value from metadata where name = 'name'", -1, &r->stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(r->stmt) == SQLITE_ROW) {
|
||||
const unsigned char *s = sqlite3_column_text(r->stmt, 0);
|
||||
if (sqlite3_prepare_v2(r->db, "SELECT value from metadata where name = 'name'", -1, &stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(stmt) == SQLITE_ROW) {
|
||||
const unsigned char *s = sqlite3_column_text(stmt, 0);
|
||||
if (s != NULL) {
|
||||
if (name.size() == 0) {
|
||||
name = std::string((char *) s);
|
||||
@@ -919,11 +1127,11 @@ void decode(struct reader *readers, std::map<std::string, layermap_entry> &layer
|
||||
}
|
||||
}
|
||||
}
|
||||
sqlite3_finalize(r->stmt);
|
||||
sqlite3_finalize(stmt);
|
||||
}
|
||||
if (sqlite3_prepare_v2(db, "SELECT value from metadata where name = 'bounds'", -1, &r->stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(r->stmt) == SQLITE_ROW) {
|
||||
const unsigned char *s = sqlite3_column_text(r->stmt, 0);
|
||||
if (sqlite3_prepare_v2(r->db, "SELECT value from metadata where name = 'bounds'", -1, &stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(stmt) == SQLITE_ROW) {
|
||||
const unsigned char *s = sqlite3_column_text(stmt, 0);
|
||||
if (s != NULL) {
|
||||
if (sscanf((char *) s, "%lf,%lf,%lf,%lf", &minlon, &minlat, &maxlon, &maxlat) == 4) {
|
||||
st->minlon = min(minlon, st->minlon);
|
||||
@@ -933,11 +1141,11 @@ void decode(struct reader *readers, std::map<std::string, layermap_entry> &layer
|
||||
}
|
||||
}
|
||||
}
|
||||
sqlite3_finalize(r->stmt);
|
||||
sqlite3_finalize(stmt);
|
||||
}
|
||||
if (sqlite3_prepare_v2(db, "SELECT value from metadata where name = 'json'", -1, &r->stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(r->stmt) == SQLITE_ROW) {
|
||||
const unsigned char *s = sqlite3_column_text(r->stmt, 0);
|
||||
if (sqlite3_prepare_v2(r->db, "SELECT value from metadata where name = 'json'", -1, &stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(stmt) == SQLITE_ROW) {
|
||||
const unsigned char *s = sqlite3_column_text(stmt, 0);
|
||||
|
||||
if (s != NULL) {
|
||||
json_pull *jp = json_begin_string((const char *) s);
|
||||
@@ -954,11 +1162,11 @@ void decode(struct reader *readers, std::map<std::string, layermap_entry> &layer
|
||||
}
|
||||
}
|
||||
|
||||
sqlite3_finalize(r->stmt);
|
||||
sqlite3_finalize(stmt);
|
||||
}
|
||||
if (sqlite3_prepare_v2(db, "SELECT value from metadata where name = 'generator_options'", -1, &r->stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(r->stmt) == SQLITE_ROW) {
|
||||
const unsigned char *s = sqlite3_column_text(r->stmt, 0);
|
||||
if (sqlite3_prepare_v2(r->db, "SELECT value from metadata where name = 'generator_options'", -1, &stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(stmt) == SQLITE_ROW) {
|
||||
const unsigned char *s = sqlite3_column_text(stmt, 0);
|
||||
if (s != NULL) {
|
||||
if (generator_options.size() != 0) {
|
||||
generator_options.append("; ");
|
||||
@@ -968,19 +1176,19 @@ void decode(struct reader *readers, std::map<std::string, layermap_entry> &layer
|
||||
}
|
||||
}
|
||||
}
|
||||
sqlite3_finalize(r->stmt);
|
||||
sqlite3_finalize(stmt);
|
||||
}
|
||||
if (sqlite3_prepare_v2(db, "SELECT value from metadata where name = 'strategies'", -1, &r->stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(r->stmt) == SQLITE_ROW) {
|
||||
const unsigned char *s = sqlite3_column_text(r->stmt, 0);
|
||||
if (sqlite3_prepare_v2(r->db, "SELECT value from metadata where name = 'strategies'", -1, &stmt, NULL) == SQLITE_OK) {
|
||||
if (sqlite3_step(stmt) == SQLITE_ROW) {
|
||||
const unsigned char *s = sqlite3_column_text(stmt, 0);
|
||||
handle_strategies(s, strategies);
|
||||
}
|
||||
sqlite3_finalize(r->stmt);
|
||||
sqlite3_finalize(stmt);
|
||||
}
|
||||
|
||||
// Closes either real db or temp mirror of metadata.json
|
||||
if (sqlite3_close(db) != SQLITE_OK) {
|
||||
fprintf(stderr, "Could not close database: %s\n", sqlite3_errmsg(db));
|
||||
// Closes either real r->db or temp mirror of metadata.json
|
||||
if (sqlite3_close(r->db) != SQLITE_OK) {
|
||||
fprintf(stderr, "Could not close database: %s\n", sqlite3_errmsg(r->db));
|
||||
exit(EXIT_CLOSE);
|
||||
}
|
||||
|
||||
@@ -1029,6 +1237,8 @@ int main(int argc, char **argv) {
|
||||
{"output", required_argument, 0, 'o'},
|
||||
{"output-to-directory", required_argument, 0, 'e'},
|
||||
{"force", no_argument, 0, 'f'},
|
||||
{"overzoom", no_argument, 0, 'O'},
|
||||
{"buffer", required_argument, 0, 'b'},
|
||||
{"if-matched", no_argument, 0, 'i'},
|
||||
{"attribution", required_argument, 0, 'A'},
|
||||
{"name", required_argument, 0, 'n'},
|
||||
@@ -1094,6 +1304,14 @@ int main(int argc, char **argv) {
|
||||
force = 1;
|
||||
break;
|
||||
|
||||
case 'O':
|
||||
want_overzoom = true;
|
||||
break;
|
||||
|
||||
case 'b':
|
||||
buffer = atoi(optarg);
|
||||
break;
|
||||
|
||||
case 'i':
|
||||
ifmatched = 1;
|
||||
break;
|
||||
@@ -1193,6 +1411,8 @@ int main(int argc, char **argv) {
|
||||
while (getline(read_file, sa)) {
|
||||
char *c = const_cast<char *>(sa.c_str());
|
||||
reader *r = begin_reading(c);
|
||||
|
||||
// put the new reader in priority order
|
||||
struct reader **rr;
|
||||
for (rr = &readers; *rr != NULL; rr = &((*rr)->next)) {
|
||||
if (*r < **rr) {
|
||||
@@ -1250,6 +1470,11 @@ int main(int argc, char **argv) {
|
||||
exit(EXIT_ARGS);
|
||||
}
|
||||
|
||||
if (buffer < 0) {
|
||||
fprintf(stderr, "%s: buffer cannot be less than 0\n", argv[0]);
|
||||
exit(EXIT_ARGS);
|
||||
}
|
||||
|
||||
if (out_mbtiles != NULL) {
|
||||
if (force) {
|
||||
unlink(out_mbtiles);
|
||||
@@ -1278,8 +1503,9 @@ int main(int argc, char **argv) {
|
||||
if (filearg == 0) {
|
||||
for (i = optind; i < argc; i++) {
|
||||
reader *r = begin_reading(argv[i]);
|
||||
struct reader **rr;
|
||||
|
||||
// put the new reader in priority order
|
||||
struct reader **rr;
|
||||
for (rr = &readers; *rr != NULL; rr = &((*rr)->next)) {
|
||||
if (*r < **rr) {
|
||||
break;
|
||||
|
||||
@@ -332,7 +332,7 @@ struct ordercmp {
|
||||
} ordercmp;
|
||||
|
||||
void rewrite(drawvec &geom, int z, int nextzoom, int maxzoom, long long *bbox, unsigned tx, unsigned ty, int buffer, int *within, std::atomic<long long> *geompos, compressor **geomfile, const char *fname, signed char t, int layer, signed char feature_minzoom, int child_shards, int max_zoom_increment, long long seq, int tippecanoe_minzoom, int tippecanoe_maxzoom, int segment, unsigned *initial_x, unsigned *initial_y, std::vector<long long> &metakeys, std::vector<long long> &metavals, bool has_id, unsigned long long id, unsigned long long index, unsigned long long label_point, long long extent) {
|
||||
if (geom.size() > 0 && (nextzoom <= maxzoom || additional[A_EXTEND_ZOOMS])) {
|
||||
if (geom.size() > 0 && (nextzoom <= maxzoom || additional[A_EXTEND_ZOOMS] || extend_zooms_max > 0)) {
|
||||
int xo, yo;
|
||||
int span = 1 << (nextzoom - z);
|
||||
|
||||
@@ -626,6 +626,15 @@ void *partial_feature_worker(void *v) {
|
||||
geom.clear();
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (!(prevent[P_SIMPLIFY] || (z == (*partials)[i].maxzoom && prevent[P_SIMPLIFY_LOW]))) {
|
||||
// there may be another opportunity for more simplification after geometry cleaning
|
||||
geom = simplify_lines(geom, 32, 0, false, (*partials)[i].simplification, 4, drawvec());
|
||||
// in which case we need to clean again
|
||||
geom = clean_or_clip_poly(geom, 0, 0, false);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1914,7 +1923,7 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
|
||||
int line_detail;
|
||||
for (line_detail = detail; line_detail >= min_detail || line_detail == detail; line_detail--, oprogress = 0) {
|
||||
long long count = 0;
|
||||
double accum_area = 0;
|
||||
double accum_area = 0, accum_hole = 0;
|
||||
|
||||
double fraction_accum = 0;
|
||||
|
||||
@@ -2185,9 +2194,14 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
|
||||
bool reduced = false;
|
||||
if (sf.t == VT_POLYGON) {
|
||||
if (!prevent[P_TINY_POLYGON_REDUCTION] && !additional[A_GRID_LOW_ZOOMS]) {
|
||||
sf.geometry = reduce_tiny_poly(sf.geometry, z, line_detail, &reduced, &accum_area, &sf, &tiny_feature);
|
||||
sf.geometry = reduce_tiny_poly(sf.geometry, z, line_detail, &reduced, &accum_area, &accum_hole, &sf, &tiny_feature);
|
||||
if (reduced) {
|
||||
strategy->tiny_polygons++;
|
||||
|
||||
// extending zooms without a cap will often extend too far, so don't risk it
|
||||
if (extend_zooms_max > 0) {
|
||||
arg->still_dropping = true;
|
||||
}
|
||||
}
|
||||
if (sf.geometry.size() == 0) {
|
||||
continue;
|
||||
@@ -2508,8 +2522,10 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
|
||||
for (size_t x = 0; x < layer_features.size(); x++) {
|
||||
if (layer_features[x].coalesced && layer_features[x].type == VT_LINE) {
|
||||
layer_features[x].geom = remove_noop(layer_features[x].geom, layer_features[x].type, 0);
|
||||
layer_features[x].geom = simplify_lines(layer_features[x].geom, 32, 0,
|
||||
!(prevent[P_CLIPPING] || prevent[P_DUPLICATION]), simplification, layer_features[x].type == VT_POLYGON ? 4 : 0, shared_nodes);
|
||||
if (!(prevent[P_SIMPLIFY] || (z == maxzoom && prevent[P_SIMPLIFY_LOW]))) {
|
||||
layer_features[x].geom = simplify_lines(layer_features[x].geom, 32, 0,
|
||||
!(prevent[P_CLIPPING] || prevent[P_DUPLICATION]), simplification, layer_features[x].type == VT_POLYGON ? 4 : 0, shared_nodes);
|
||||
}
|
||||
}
|
||||
|
||||
if (layer_features[x].type == VT_POLYGON) {
|
||||
@@ -3199,6 +3215,7 @@ int traverse_zooms(int *geomfd, off_t *geom_size, char *stringpool, std::atomic<
|
||||
}
|
||||
|
||||
bool again = false;
|
||||
bool extend_zooms = false;
|
||||
for (size_t thread = 0; thread < threads; thread++) {
|
||||
void *retval;
|
||||
|
||||
@@ -3238,11 +3255,19 @@ int traverse_zooms(int *geomfd, off_t *geom_size, char *stringpool, std::atomic<
|
||||
z = args[thread].wrote_zoom;
|
||||
}
|
||||
|
||||
if (additional[A_EXTEND_ZOOMS] && z == maxzoom && args[thread].still_dropping && maxzoom < MAX_ZOOM) {
|
||||
maxzoom++;
|
||||
if (args[thread].still_dropping) {
|
||||
extend_zooms = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (extend_zooms && (additional[A_EXTEND_ZOOMS] || extend_zooms_max > 0) && z == maxzoom && maxzoom < MAX_ZOOM) {
|
||||
maxzoom++;
|
||||
if (extend_zooms_max > 0) {
|
||||
extend_zooms_max--;
|
||||
}
|
||||
again = true; // since detail or simplification may be different at maxzoom than at other zooms
|
||||
}
|
||||
|
||||
if ((size_t) z >= strategies.size()) {
|
||||
strategies.resize(z + 1);
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
#ifndef VERSION_HPP
|
||||
#define VERSION_HPP
|
||||
|
||||
#define VERSION "v2.29.0"
|
||||
#define VERSION "v2.30.0"
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user