Compare commits

...
6 Commits
Author SHA1 Message Date
Erica Fischer e8ca6c6de3 Slightly less compression makes as-needed dropping twice as fast (#182)
* Slightly less compression makes as-needed dropping twice as fast

* Update changelog
2024-01-05 11:07:14 -08:00
Erica Fischer 02e3bac2c0 Reduce memory consumption during tiling (#177)
* Drop duplicate geometries sooner in coalescing-as-needed

* Concatenate geometries before partial cleaning

* Spend less time with two feature representations in memory

* Further reduce in-memory duplication

* Remove another copy

* Don't keep duplicates in memory while coalescing

* Also clear out the mvt layer once it is no longer needed

* Update changelog
2023-12-22 14:20:21 -08:00
Erica Fischer 15a3e313ff Tolerate polygon rings with insufficiently many points in input (#175)
* Tolerate polygon rings with insufficiently many points in input

* Fix changelog typo
2023-12-11 11:14:26 -08:00
Erica Fischer d7bdbe363b Reduce maximum memory used for vertex sorting (#170)
* Add logging for out-of-memory debugging

* Use less memory for sub-sorting

* Reduce maximum memory used for vertex sorting
2023-11-30 13:48:50 -08:00
Erica Fischer d359461e61 Reduce tile-join overzooming memory usage (#162)
* 16 bits is enough for tile numbers

* Revert "16 bits is enough for tile numbers"

This reverts commit 71a0c4e1cf.

* Check what child tiles each overzoomed tile will have

and don't queue further overzooming of empty tiles

* Clean up naming; use std::move to avoid copying large arrays
2023-11-08 12:51:28 -08:00
Erica Fischer 2c56187530 Make tile-join distrust source tilesets' metadata maxzoom and minzoom (#161)
* Special-case a longitude wraparound of exactly 360°

* Update version and changelog

* Make tile-join distrust source tilesets' metadata maxzoom and minzoom
2023-11-07 14:41:05 -08:00
48 changed files with 1603 additions and 1461 deletions
+25
View File
@@ -1,3 +1,28 @@
# 2.40.0
* Slightly reduce compression aggressiveness to improve as-needed dropping speed
# 2.39.0
* Reduce memory usage during tiling
# 2.38.0
* Tolerate polygon rings with insuffiently many points in input
# 2.37.1
* Reduce maximum memory used for vertex sorting
# 2.37.0
* Speed up tile-join overzooming and make it use less memory, by not including empty child tiles in the enumeration
# 2.36.0
* Make tile-join distrust the source tilesets' metadata maxzoom and minzoom
* Add a special case in --detect-longitude-wraparound not to wrap around jumps of exactly 360°
# 2.35.0
* Fix a bug in --detect-longitude-wraparound when there are multiple rings
+27 -3
View File
@@ -753,7 +753,8 @@ static std::vector<std::pair<double, double>> clip_poly1(std::vector<std::pair<d
}
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, bool do_compress) {
int detail, int buffer, std::set<std::string> const &keep, bool do_compress,
std::vector<std::pair<unsigned, unsigned>> *next_overzoomed_tiles) {
mvt_tile tile;
try {
@@ -767,11 +768,12 @@ std::string overzoom(std::string s, int oz, int ox, int oy, int nz, int nx, int
exit(EXIT_PROTOBUF);
}
return overzoom(tile, oz, ox, oy, nz, nx, ny, detail, buffer, keep, do_compress);
return overzoom(tile, oz, ox, oy, nz, nx, ny, detail, buffer, keep, do_compress, next_overzoomed_tiles);
}
std::string overzoom(mvt_tile tile, int oz, int ox, int oy, int nz, int nx, int ny,
int detail, int buffer, std::set<std::string> const &keep, bool do_compress) {
int detail, int buffer, std::set<std::string> const &keep, bool do_compress,
std::vector<std::pair<unsigned, unsigned>> *next_overzoomed_tiles) {
mvt_tile outtile;
for (auto const &layer : tile.layers) {
@@ -890,6 +892,28 @@ std::string overzoom(mvt_tile tile, int oz, int ox, int oy, int nz, int nx, int
}
}
if (next_overzoomed_tiles != NULL) {
// will any child tiles have features in them?
// find out recursively from the tile we just made.
//
// (yes, we should keep them instead of remaking them
// later, but that first requires figuring out where to
// keep them.)
if (outtile.layers.size() > 0) {
for (size_t x = 0; x < 2; x++) {
for (size_t y = 0; y < 2; y++) {
std::string child = overzoom(outtile, nz, nx, ny,
nz + 1, nx * 2 + x, ny * 2 + y,
detail, buffer, keep, false, NULL);
if (child.size() > 0) {
next_overzoomed_tiles->emplace_back(nx * 2 + x, ny * 2 + y);
}
}
}
}
}
if (outtile.layers.size() > 0) {
std::string pbf = outtile.encode();
+9 -2
View File
@@ -642,9 +642,9 @@ drawvec fix_polygon(drawvec &geom) {
// A polygon ring must contain at least three points
// (and really should contain four). If this one does
// not have enough, avoid a division by zero trying to
// not have any, avoid a division by zero trying to
// calculate the centroid below.
if (j - i < 3) {
if (j - i < 1) {
i = j - 1;
outer = 0;
continue;
@@ -661,6 +661,13 @@ drawvec fix_polygon(drawvec &geom) {
ring.push_back(ring[0]);
}
// A polygon ring at this point should contain at least four points.
// Flesh it out with some vertex copies if it doesn't.
while (ring.size() < 4) {
ring.push_back(ring[0]);
}
// Reverse ring if winding order doesn't match
// inner/outer expectation
+4 -2
View File
@@ -99,9 +99,11 @@ int pnpoly(const drawvec &vert, size_t start, size_t nvert, long long testx, lon
double distance_from_line(long long point_x, long long point_y, long long segA_x, long long segA_y, long long segB_x, long long segB_y);
std::string overzoom(mvt_tile tile, int oz, int ox, int oy, int nz, int nx, int ny,
int detail, int buffer, std::set<std::string> const &keep, bool do_compress);
int detail, int buffer, std::set<std::string> const &keep, bool do_compress,
std::vector<std::pair<unsigned, unsigned>> *next_overzoomed_tiles);
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, bool do_compress);
int detail, int buffer, std::set<std::string> const &keep, bool do_compress,
std::vector<std::pair<unsigned, unsigned>> *next_overzoomed_tiles);
#endif
+2 -2
View File
@@ -2041,7 +2041,7 @@ std::pair<int, metadata> read_input(std::vector<source> &sources, char *fname, i
vertex_readers.push_back(readers[i].vertexfile);
rewind(readers[i].vertexfile);
}
fqsort(vertex_readers, sizeof(vertex), vertexcmp, vertex_out, memsize / 10);
fqsort(vertex_readers, sizeof(vertex), vertexcmp, vertex_out, memsize / 20);
for (size_t i = 0; i < CPUS; i++) {
if (fclose(readers[i].vertexfile) != 0) {
@@ -2107,7 +2107,7 @@ std::pair<int, metadata> read_input(std::vector<source> &sources, char *fname, i
rewind(readers[i].nodefile);
}
fqsort(node_readers, sizeof(node), nodecmp, node_out, memsize / 10);
fqsort(node_readers, sizeof(node), nodecmp, node_out, memsize / 20);
for (size_t i = 0; i < CPUS; i++) {
if (fclose(readers[i].nodefile) != 0) {
+1 -1
View File
@@ -89,7 +89,7 @@ int compress(std::string const &input, std::string &output, bool gz) {
deflate_s.opaque = Z_NULL;
deflate_s.avail_in = 0;
deflate_s.next_in = Z_NULL;
deflateInit2(&deflate_s, Z_BEST_COMPRESSION, Z_DEFLATED, gz ? 31 : 15, 8, Z_DEFAULT_STRATEGY);
deflateInit2(&deflate_s, Z_DEFAULT_COMPRESSION, Z_DEFLATED, gz ? 31 : 15, 8, Z_DEFAULT_STRATEGY);
deflate_s.next_in = (Bytef *) input.data();
deflate_s.avail_in = input.size();
size_t length = 0;
+1 -1
View File
@@ -91,7 +91,7 @@ int main(int argc, char **argv) {
exit(EXIT_FAILURE);
}
std::string out = overzoom(tile, oz, ox, oy, nz, nx, ny, detail, buffer, keep, true);
std::string out = overzoom(tile, oz, ox, oy, nz, nx, ny, detail, buffer, keep, true, NULL);
fwrite(out.c_str(), sizeof(char), out.size(), f);
fclose(f);
+5 -2
View File
@@ -328,10 +328,13 @@ static long long scale_geometry(struct serialization_state *sst, long long *bbox
if (geom[i].op == VT_LINETO) {
x += offset;
if (has_prev) {
if (x - prev > (1LL << 31)) {
// jumps at least 180° but not exactly 360°,
// which in some data sets is an intentional
// line across the world
if (x - prev > (1LL << 31) && x - prev != (1LL << 32)) {
offset -= 1LL << 32;
x -= 1LL << 32;
} else if (prev - x > (1LL << 31)) {
} else if (prev - x > (1LL << 31) && prev - x != (1LL << 32)) {
offset += 1LL << 32;
x += 1LL << 32;
}
+5 -1
View File
@@ -4,12 +4,16 @@
#include <vector>
#include <string>
#define MAX_MEMORY (10 * 1024 * 1024)
#define MAX_MEMORY (1024 * 1024 * 1024) // 1 GB
void fqsort(std::vector<FILE *> &inputs, size_t width, int (*cmp)(const void *, const void *), FILE *out, size_t mem) {
std::string pivot;
FILE *fp1, *fp2;
if (mem > MAX_MEMORY) {
mem = MAX_MEMORY;
}
{
// read some elements into memory to choose a pivot from
//
+15
View File
@@ -0,0 +1,15 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "1.000000,2.000000,1.000000,2.000000",
"bounds": "1.000000,2.000000,1.000000,2.000000",
"center": "1.000000,2.000000,0",
"description": "tests/invalid-linestring/out/-z0.json.check.mbtiles",
"format": "pbf",
"generator_options": "./tippecanoe -q -a@ -f -o tests/invalid-linestring/out/-z0.json.check.mbtiles -z0 tests/invalid-linestring/too-few.json",
"json": "{\"vector_layers\":[{\"id\":\"toofew\",\"description\":\"\",\"minzoom\":0,\"maxzoom\":0,\"fields\":{}}],\"tilestats\":{\"layerCount\":1,\"layers\":[{\"layer\":\"toofew\",\"count\":1,\"geometry\":\"LineString\",\"attributeCount\":0,\"attributes\":[]}]}}",
"maxzoom": "0",
"minzoom": "0",
"name": "tests/invalid-linestring/out/-z0.json.check.mbtiles",
"type": "overlay",
"version": "2"
}, "features": [
] }
+1
View File
@@ -0,0 +1 @@
{ "type": "Feature", "properties": {}, "geometry": { "type": "LineString", "coordinates": [ [ 1, 2 ] ] } }
+1
View File
@@ -0,0 +1 @@
{ "type": "Feature", "properties": { "handle": 717, "block": -1, "etype": 13, "space": 0, "layer": "0", "olinetype": "BYLAYER", "linetype": "", "color": "0,0,0,255", "ocolor": 7, "color24": -1, "transparency": 0, "lweight": -1, "linewidth": 0.0, "ltscale": 1.0, "visible": 1, "thickness": 0.0, "ext": null, "name": "SOLID", "solid": 1, "associative": 0, "hstyle": 1, "hpattern": 1, "doubleflag": 0, "angle": 0.0, "scale": 0.0, "deflines": 0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -135.2329619, -85.526118 ], [ -135.2329619, -85.526118 ] ] ] ] } }
+15
View File
@@ -0,0 +1,15 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "180.000000,85.051129,-180.000000,-85.051129",
"bounds": "-135.232962,-85.051129,-135.232962,-85.051129",
"center": "-135.232962,-85.051129,0",
"description": "tests/invalid-polygon/out/-z0.json.check.mbtiles",
"format": "pbf",
"generator_options": "./tippecanoe -q -a@ -f -o tests/invalid-polygon/out/-z0.json.check.mbtiles -z0 tests/invalid-polygon/in.json",
"json": "{\"vector_layers\":[{\"id\":\"in\",\"description\":\"\",\"minzoom\":0,\"maxzoom\":0,\"fields\":{\"angle\":\"Number\",\"associative\":\"Number\",\"block\":\"Number\",\"color\":\"String\",\"color24\":\"Number\",\"deflines\":\"Number\",\"doubleflag\":\"Number\",\"etype\":\"Number\",\"handle\":\"Number\",\"hpattern\":\"Number\",\"hstyle\":\"Number\",\"layer\":\"String\",\"linetype\":\"String\",\"linewidth\":\"Number\",\"ltscale\":\"Number\",\"lweight\":\"Number\",\"name\":\"String\",\"ocolor\":\"Number\",\"olinetype\":\"String\",\"scale\":\"Number\",\"solid\":\"Number\",\"space\":\"Number\",\"thickness\":\"Number\",\"transparency\":\"Number\",\"visible\":\"Number\"}}],\"tilestats\":{\"layerCount\":1,\"layers\":[{\"layer\":\"in\",\"count\":1,\"geometry\":\"Polygon\",\"attributeCount\":25,\"attributes\":[{\"attribute\":\"angle\",\"count\":1,\"type\":\"number\",\"values\":[0],\"min\":0,\"max\":0},{\"attribute\":\"associative\",\"count\":1,\"type\":\"number\",\"values\":[0],\"min\":0,\"max\":0},{\"attribute\":\"block\",\"count\":1,\"type\":\"number\",\"values\":[-1],\"min\":-1,\"max\":-1},{\"attribute\":\"color\",\"count\":1,\"type\":\"string\",\"values\":[\"0,0,0,255\"]},{\"attribute\":\"color24\",\"count\":1,\"type\":\"number\",\"values\":[-1],\"min\":-1,\"max\":-1},{\"attribute\":\"deflines\",\"count\":1,\"type\":\"number\",\"values\":[0],\"min\":0,\"max\":0},{\"attribute\":\"doubleflag\",\"count\":1,\"type\":\"number\",\"values\":[0],\"min\":0,\"max\":0},{\"attribute\":\"etype\",\"count\":1,\"type\":\"number\",\"values\":[13],\"min\":13,\"max\":13},{\"attribute\":\"handle\",\"count\":1,\"type\":\"number\",\"values\":[717],\"min\":717,\"max\":717},{\"attribute\":\"hpattern\",\"count\":1,\"type\":\"number\",\"values\":[1],\"min\":1,\"max\":1},{\"attribute\":\"hstyle\",\"count\":1,\"type\":\"number\",\"values\":[1],\"min\":1,\"max\":1},{\"attribute\":\"layer\",\"count\":1,\"type\":\"string\",\"values\":[\"0\"]},{\"attribute\":\"linetype\",\"count\":1,\"type\":\"string\",\"values\":[\"\"]},{\"attribute\":\"linewidth\",\"count\":1,\"type\":\"number\",\"values\":[0],\"min\":0,\"max\":0},{\"attribute\":\"ltscale\",\"count\":1,\"type\":\"number\",\"values\":[1],\"min\":1,\"max\":1},{\"attribute\":\"lweight\",\"count\":1,\"type\":\"number\",\"values\":[-1],\"min\":-1,\"max\":-1},{\"attribute\":\"name\",\"count\":1,\"type\":\"string\",\"values\":[\"SOLID\"]},{\"attribute\":\"ocolor\",\"count\":1,\"type\":\"number\",\"values\":[7],\"min\":7,\"max\":7},{\"attribute\":\"olinetype\",\"count\":1,\"type\":\"string\",\"values\":[\"BYLAYER\"]},{\"attribute\":\"scale\",\"count\":1,\"type\":\"number\",\"values\":[0],\"min\":0,\"max\":0},{\"attribute\":\"solid\",\"count\":1,\"type\":\"number\",\"values\":[1],\"min\":1,\"max\":1},{\"attribute\":\"space\",\"count\":1,\"type\":\"number\",\"values\":[0],\"min\":0,\"max\":0},{\"attribute\":\"thickness\",\"count\":1,\"type\":\"number\",\"values\":[0],\"min\":0,\"max\":0},{\"attribute\":\"transparency\",\"count\":1,\"type\":\"number\",\"values\":[0],\"min\":0,\"max\":0},{\"attribute\":\"visible\",\"count\":1,\"type\":\"number\",\"values\":[1],\"min\":1,\"max\":1}]}]}}",
"maxzoom": "0",
"minzoom": "0",
"name": "tests/invalid-polygon/out/-z0.json.check.mbtiles",
"type": "overlay",
"version": "2"
}, "features": [
] }
File diff suppressed because one or more lines are too long
@@ -7,7 +7,7 @@
"generator_options": "./tippecanoe -q -f -z12 -o tests/join-population/tabblock_06001420.mbtiles '-YALAND10:Land area' '-L{\"file\": \"tests/join-population/tabblock_06001420.json\", \"description\": \"population\"}'; ./tile-join --quiet --force --no-tile-stats -o tests/join-population/joined-no-tile-stats.mbtiles -x GEOID10 -c tests/join-population/population.csv tests/join-population/tabblock_06001420.mbtiles",
"json": "{\"vector_layers\":[{\"id\":\"tabblock_06001420\",\"description\":\"population\",\"minzoom\":3,\"maxzoom\":12,\"fields\":{\"ALAND10\":\"Land area\",\"AWATER10\":\"Number\",\"BLOCKCE10\":\"String\",\"COUNTYFP10\":\"String\",\"FUNCSTAT10\":\"String\",\"INTPTLAT10\":\"String\",\"INTPTLON10\":\"String\",\"MTFCC10\":\"String\",\"NAME10\":\"String\",\"STATEFP10\":\"String\",\"TRACTCE10\":\"String\",\"UACE10\":\"String\",\"UATYP10\":\"String\",\"UR10\":\"String\",\"population\":\"Mixed\"}}]}",
"maxzoom": "12",
"minzoom": "0",
"minzoom": "3",
"name": "tests/join-population/tabblock_06001420.mbtiles",
"strategies": "[{\"tiny_polygons\":260},{\"tiny_polygons\":260},{\"tiny_polygons\":260},{\"tiny_polygons\":260},{\"tiny_polygons\":258},{\"tiny_polygons\":255},{\"tiny_polygons\":248},{\"tiny_polygons\":151},{\"tiny_polygons\":75},{\"tiny_polygons\":47}]",
"type": "overlay",
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -7,7 +7,7 @@
"generator_options": "./tippecanoe -q -f -z12 -o tests/join-population/tabblock_06001420.mbtiles '-YALAND10:Land area' '-L{\"file\": \"tests/join-population/tabblock_06001420.json\", \"description\": \"population\"}'; ./tile-join --quiet --force '--tile-stats-sample-values-limit=1' -o tests/join-population/joined-tile-stats-sample-values-limit.mbtiles -x GEOID10 -c tests/join-population/population.csv tests/join-population/tabblock_06001420.mbtiles",
"json": "{\"vector_layers\":[{\"id\":\"tabblock_06001420\",\"description\":\"population\",\"minzoom\":3,\"maxzoom\":12,\"fields\":{\"ALAND10\":\"Land area\",\"AWATER10\":\"Number\",\"BLOCKCE10\":\"String\",\"COUNTYFP10\":\"String\",\"FUNCSTAT10\":\"String\",\"INTPTLAT10\":\"String\",\"INTPTLON10\":\"String\",\"MTFCC10\":\"String\",\"NAME10\":\"String\",\"STATEFP10\":\"String\",\"TRACTCE10\":\"String\",\"UACE10\":\"String\",\"UATYP10\":\"String\",\"UR10\":\"String\",\"population\":\"String\"}}],\"tilestats\":{\"layerCount\":1,\"layers\":[{\"layer\":\"tabblock_06001420\",\"count\":1484,\"geometry\":\"Polygon\",\"attributeCount\":15,\"attributes\":[{\"attribute\":\"ALAND10\",\"count\":1,\"type\":\"number\",\"values\":[0],\"min\":0,\"max\":542505},{\"attribute\":\"AWATER10\",\"count\":1,\"type\":\"number\",\"values\":[0],\"min\":0,\"max\":1632801},{\"attribute\":\"BLOCKCE10\",\"count\":1,\"type\":\"string\",\"values\":[\"1000\"]},{\"attribute\":\"COUNTYFP10\",\"count\":1,\"type\":\"string\",\"values\":[\"001\"]},{\"attribute\":\"FUNCSTAT10\",\"count\":1,\"type\":\"string\",\"values\":[\"S\"]},{\"attribute\":\"INTPTLAT10\",\"count\":1,\"type\":\"string\",\"values\":[\"+37.882724\"]},{\"attribute\":\"INTPTLON10\",\"count\":1,\"type\":\"string\",\"values\":[\"-122.282320\"]},{\"attribute\":\"MTFCC10\",\"count\":1,\"type\":\"string\",\"values\":[\"G5040\"]},{\"attribute\":\"NAME10\",\"count\":1,\"type\":\"string\",\"values\":[\"Block 1000\"]},{\"attribute\":\"STATEFP10\",\"count\":1,\"type\":\"string\",\"values\":[\"06\"]},{\"attribute\":\"TRACTCE10\",\"count\":1,\"type\":\"string\",\"values\":[\"420100\"]},{\"attribute\":\"UACE10\",\"count\":1,\"type\":\"string\",\"values\":[\"78904\"]},{\"attribute\":\"UATYP10\",\"count\":1,\"type\":\"string\",\"values\":[\"U\"]},{\"attribute\":\"UR10\",\"count\":1,\"type\":\"string\",\"values\":[\"R\"]},{\"attribute\":\"population\",\"count\":1,\"type\":\"string\",\"values\":[\"\"]}]}]}}",
"maxzoom": "12",
"minzoom": "0",
"minzoom": "3",
"name": "tests/join-population/tabblock_06001420.mbtiles",
"strategies": "[{\"tiny_polygons\":260},{\"tiny_polygons\":260},{\"tiny_polygons\":260},{\"tiny_polygons\":260},{\"tiny_polygons\":258},{\"tiny_polygons\":255},{\"tiny_polygons\":248},{\"tiny_polygons\":151},{\"tiny_polygons\":75},{\"tiny_polygons\":47}]",
"type": "overlay",
@@ -7,7 +7,7 @@
"generator_options": "./tippecanoe -q -f -z12 -o tests/join-population/tabblock_06001420.mbtiles '-YALAND10:Land area' '-L{\"file\": \"tests/join-population/tabblock_06001420.json\", \"description\": \"population\"}'; ./tile-join --quiet --force '--tile-stats-values-limit=1' -o tests/join-population/joined-tile-stats-values-limit.mbtiles -x GEOID10 -c tests/join-population/population.csv tests/join-population/tabblock_06001420.mbtiles",
"json": "{\"vector_layers\":[{\"id\":\"tabblock_06001420\",\"description\":\"population\",\"minzoom\":3,\"maxzoom\":12,\"fields\":{\"ALAND10\":\"Land area\",\"AWATER10\":\"Number\",\"BLOCKCE10\":\"String\",\"COUNTYFP10\":\"String\",\"FUNCSTAT10\":\"String\",\"INTPTLAT10\":\"String\",\"INTPTLON10\":\"String\",\"MTFCC10\":\"String\",\"NAME10\":\"String\",\"STATEFP10\":\"String\",\"TRACTCE10\":\"String\",\"UACE10\":\"String\",\"UATYP10\":\"String\",\"UR10\":\"String\",\"population\":\"Mixed\"}}],\"tilestats\":{\"layerCount\":1,\"layers\":[{\"layer\":\"tabblock_06001420\",\"count\":1484,\"geometry\":\"Polygon\",\"attributeCount\":15,\"attributes\":[{\"attribute\":\"ALAND10\",\"count\":257,\"type\":\"number\",\"values\":[0],\"min\":0,\"max\":542505}]}]}}",
"maxzoom": "12",
"minzoom": "0",
"minzoom": "3",
"name": "tests/join-population/tabblock_06001420.mbtiles",
"strategies": "[{\"tiny_polygons\":260},{\"tiny_polygons\":260},{\"tiny_polygons\":260},{\"tiny_polygons\":260},{\"tiny_polygons\":258},{\"tiny_polygons\":255},{\"tiny_polygons\":248},{\"tiny_polygons\":151},{\"tiny_polygons\":75},{\"tiny_polygons\":47}]",
"type": "overlay",
File diff suppressed because one or more lines are too long
@@ -2,13 +2,13 @@
"antimeridian_adjusted_bounds": "237.656250,37.857507,237.744141,37.926868",
"attribution": "macarthur's attribution",
"bounds": "-122.343750,37.695438,-122.104097,37.926868",
"center": "-122.299805,37.892187,12",
"center": "-122.299805,37.892187,11",
"description": "macarthur description",
"format": "pbf",
"generator_options": "./tippecanoe -q -f -Z5 -z10 -o tests/join-population/macarthur.mbtiles -l macarthur tests/join-population/macarthur.json; ./tippecanoe -q -f -d10 -D10 -Z9 -z11 -o tests/join-population/macarthur2.mbtiles -l macarthur tests/join-population/macarthur2.json; ./tippecanoe -q -f -z12 -o tests/join-population/tabblock_06001420.mbtiles '-YALAND10:Land area' '-L{\"file\": \"tests/join-population/tabblock_06001420.json\", \"description\": \"population\"}'; ./tile-join -q -f -o tests/join-population/merged.mbtiles tests/join-population/tabblock_06001420.mbtiles tests/join-population/macarthur.mbtiles tests/join-population/macarthur2.mbtiles; ./tile-join -q -f -l macarthur -n 'macarthur name' -N 'macarthur description' -A 'macarthur'\"'\"'s attribution' -o tests/join-population/just-macarthur.mbtiles tests/join-population/merged.mbtiles",
"json": "{\"vector_layers\":[{\"id\":\"macarthur\",\"description\":\"\",\"minzoom\":5,\"maxzoom\":11,\"fields\":{\"FULLNAME\":\"String\",\"LINEARID\":\"String\",\"MTFCC\":\"String\",\"RTTYP\":\"String\"}}],\"tilestats\":{\"layerCount\":1,\"layers\":[{\"layer\":\"macarthur\",\"count\":171,\"geometry\":\"LineString\",\"attributeCount\":4,\"attributes\":[{\"attribute\":\"FULLNAME\",\"count\":5,\"type\":\"string\",\"values\":[\"Macarthur\",\"Macarthur Blvd\",\"Macarthur Fwy\",\"W Macarthur\",\"W Macarthur Blvd\"]},{\"attribute\":\"LINEARID\",\"count\":42,\"type\":\"string\",\"values\":[\"1102155930810\",\"1102156217102\",\"1102156241736\",\"1102156248968\",\"1102156510290\",\"1102157651658\",\"1102406970092\",\"1102406970093\",\"1102406970094\",\"1102406970095\",\"1102407366406\",\"1102638069562\",\"1102638078801\",\"1102654601627\",\"1102654601663\",\"1102654602215\",\"1102954189105\",\"1102954918511\",\"1103690383700\",\"1103690474249\",\"1103690474250\",\"1103690483026\",\"1103690483032\",\"1103717593123\",\"1104469713187\",\"1104469713198\",\"1104474748623\",\"1104475134288\",\"1104475134436\",\"1104485605278\",\"1104485645649\",\"1104485773833\",\"1104486090991\",\"1104486392881\",\"1105089436004\",\"1105089465114\",\"1105089465116\",\"1105281275434\",\"1105281275687\",\"1105281275688\",\"1105281275689\",\"1105281275692\"]},{\"attribute\":\"MTFCC\",\"count\":2,\"type\":\"string\",\"values\":[\"S1100\",\"S1400\"]},{\"attribute\":\"RTTYP\",\"count\":1,\"type\":\"string\",\"values\":[\"M\"]}]}]}}",
"maxzoom": "12",
"minzoom": "0",
"maxzoom": "11",
"minzoom": "5",
"name": "macarthur name",
"strategies": "[{\"tiny_polygons\":260},{\"tiny_polygons\":260},{\"tiny_polygons\":260},{\"tiny_polygons\":260},{\"tiny_polygons\":258},{\"tiny_polygons\":255},{\"tiny_polygons\":248},{\"tiny_polygons\":151},{\"tiny_polygons\":75},{\"tiny_polygons\":47}]",
"type": "overlay",
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -1,9 +1,9 @@
[
{ "zoom": 11, "x": 326, "y": 791, "bytes": 376, "compressed": true, "layers": { "muni": { "points": 14, "lines": 0, "polygons": 0, "extent": 4096 } } }
,
{ "zoom": 11, "x": 327, "y": 792, "bytes": 6533, "compressed": true, "layers": { "muni": { "points": 528, "lines": 0, "polygons": 0, "extent": 4096 } } }
{ "zoom": 11, "x": 327, "y": 792, "bytes": 6543, "compressed": true, "layers": { "muni": { "points": 528, "lines": 0, "polygons": 0, "extent": 4096 } } }
,
{ "zoom": 11, "x": 327, "y": 791, "bytes": 45265, "compressed": true, "layers": { "muni": { "points": 4284, "lines": 0, "polygons": 0, "extent": 4096 }, "subway": { "points": 19, "lines": 0, "polygons": 0, "extent": 4096 } } }
{ "zoom": 11, "x": 327, "y": 791, "bytes": 45475, "compressed": true, "layers": { "muni": { "points": 4284, "lines": 0, "polygons": 0, "extent": 4096 }, "subway": { "points": 19, "lines": 0, "polygons": 0, "extent": 4096 } } }
,
{ "zoom": 11, "x": 954, "y": 791, "bytes": 75, "compressed": true, "layers": { "muni": { "points": 12, "lines": 0, "polygons": 0, "extent": 4096 } } }
]
+1 -1
View File
@@ -9,7 +9,7 @@
"maxzoom": "13",
"minzoom": "11",
"name": "tests/muni/out/-Z11_-z13_-M10000.json.check.mbtiles",
"strategies": "[{},{},{},{},{},{},{},{},{},{},{},{\"dropped_by_rate\":18540,\"detail_reduced\":4,\"tile_size_desired\":10857},{\"dropped_by_rate\":6391,\"detail_reduced\":3,\"tile_size_desired\":10700},{}]",
"strategies": "[{},{},{},{},{},{},{},{},{},{},{},{\"dropped_by_rate\":18540,\"detail_reduced\":4,\"tile_size_desired\":10887},{\"dropped_by_rate\":6391,\"detail_reduced\":3,\"tile_size_desired\":10721},{}]",
"type": "overlay",
"version": "2"
}, "features": [
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+25 -33
View File
@@ -9,7 +9,7 @@
"maxzoom": "13",
"minzoom": "11",
"name": "tests/muni/out/-Z11_-z13_-M5000_-as.json.check.mbtiles",
"strategies": "[{},{},{},{},{},{},{},{},{},{},{},{\"dropped_by_rate\":4080,\"dropped_as_needed\":482,\"tile_size_desired\":10857},{\"dropped_by_rate\":2974,\"dropped_as_needed\":1304,\"tile_size_desired\":10700},{\"dropped_as_needed\":3036,\"tile_size_desired\":9646}]",
"strategies": "[{},{},{},{},{},{},{},{},{},{},{},{\"dropped_by_rate\":4080,\"dropped_as_needed\":482,\"tile_size_desired\":10887},{\"dropped_by_rate\":2974,\"dropped_as_needed\":1302,\"tile_size_desired\":10721},{\"dropped_as_needed\":3042,\"tile_size_desired\":9664}]",
"type": "overlay",
"version": "2"
}, "features": [
@@ -645,6 +645,8 @@
,
{ "type": "Feature", "properties": { "name": "Gonzalez Dr. & Crespi Dr." }, "geometry": { "type": "Point", "coordinates": [ -122.475564, 37.719694 ] } }
,
{ "type": "Feature", "properties": { "name": "Garfield St & Beverly St" }, "geometry": { "type": "Point", "coordinates": [ -122.471530, 37.719728 ] } }
,
{ "type": "Feature", "properties": { "name": "Garfield St & Byxbee St" }, "geometry": { "type": "Point", "coordinates": [ -122.469728, 37.719745 ] } }
,
{ "type": "Feature", "properties": { "name": "Garfield St & Victoria St" }, "geometry": { "type": "Point", "coordinates": [ -122.465436, 37.719609 ] } }
@@ -993,6 +995,8 @@
,
{ "type": "Feature", "properties": { "name": "Irving St & 2nd Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.458634, 37.764439 ] } }
,
{ "type": "Feature", "properties": { "name": "Frederick St & Willard St" }, "geometry": { "type": "Point", "coordinates": [ -122.454686, 37.766084 ] } }
,
{ "type": "Feature", "properties": { "name": "Lawton St & 7th Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.464085, 37.758603 ] } }
,
{ "type": "Feature", "properties": { "name": "1697 7th Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.463570, 37.756771 ] } }
@@ -1005,7 +1009,7 @@
,
{ "type": "Feature", "properties": { "name": "Geary Blvd & Collins St" }, "geometry": { "type": "Point", "coordinates": [ -122.449987, 37.782231 ] } }
,
{ "type": "Feature", "properties": { "name": "Euclid Ave & Presidio Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.446640, 37.785232 ] } }
{ "type": "Feature", "properties": { "name": "Presidio Ave & California St" }, "geometry": { "type": "Point", "coordinates": [ -122.446725, 37.787369 ] } }
,
{ "type": "Feature", "properties": { "name": "Sutter St & Baker St" }, "geometry": { "type": "Point", "coordinates": [ -122.443292, 37.784758 ] } }
,
@@ -2569,8 +2573,6 @@
,
{ "type": "Feature", "properties": { "name": "Clement St & 20th Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.479845, 37.782307 ] } }
,
{ "type": "Feature", "properties": { "name": "Clement St & 20th Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.479137, 37.782222 ] } }
,
{ "type": "Feature", "properties": { "name": "Geary Blvd & 20th Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.479481, 37.780221 ] } }
,
{ "type": "Feature", "properties": { "name": "Clement St & 18th Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.477506, 37.782290 ] } }
@@ -2815,7 +2817,7 @@
,
{ "type": "Feature", "properties": { "name": "Broad St & Arch St" }, "geometry": { "type": "Point", "coordinates": [ -122.467378, 37.712514 ] } }
,
{ "type": "Feature", "properties": { "name": "Alemany Blvd & St Charles Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.469460, 37.710358 ] } }
{ "type": "Feature", "properties": { "name": "St Charles Ave & Alemany Blvd" }, "geometry": { "type": "Point", "coordinates": [ -122.469331, 37.710281 ] } }
,
{ "type": "Feature", "properties": { "name": "Randolph St & Arch St" }, "geometry": { "type": "Point", "coordinates": [ -122.467217, 37.714203 ] } }
,
@@ -3017,7 +3019,7 @@
,
{ "type": "Feature", "properties": { "name": "Ulloa St & Lenox Way" }, "geometry": { "type": "Point", "coordinates": [ -122.466263, 37.741170 ] } }
,
{ "type": "Feature", "properties": { "name": "West Portal Station Inbound" }, "geometry": { "type": "Point", "coordinates": [ -122.465522, 37.741153 ] } }
{ "type": "Feature", "properties": { "name": "West Portal Ave & Ulloa St" }, "geometry": { "type": "Point", "coordinates": [ -122.465909, 37.740763 ] } }
,
{ "type": "Feature", "properties": { "name": "West Portal Ave & 14th Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.469052, 37.738099 ] } }
,
@@ -3071,7 +3073,7 @@
,
{ "type": "Feature", "properties": { "name": "MYRA WAY & DALEWOOD" }, "geometry": { "type": "Point", "coordinates": [ -122.453946, 37.736690 ] } }
,
{ "type": "Feature", "properties": { "name": "19th Ave & Sloat Blvd" }, "geometry": { "type": "Point", "coordinates": [ -122.474974, 37.734713 ] } }
{ "type": "Feature", "properties": { "name": "Sloat Blvd & 19th Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.474492, 37.734781 ] } }
,
{ "type": "Feature", "properties": { "name": "19th Ave & Ocean Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.475103, 37.732787 ] } }
,
@@ -3135,8 +3137,6 @@
,
{ "type": "Feature", "properties": { "name": "Plymouth Ave & Mangels Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.457765, 37.732236 ] } }
,
{ "type": "Feature", "properties": { "name": "Plymouth Ave & Mangels Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.457647, 37.732092 ] } }
,
{ "type": "Feature", "properties": { "name": "Monterey Blvd & Faxon Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.459085, 37.730691 ] } }
,
{ "type": "Feature", "properties": { "name": "Plymouth Ave & Monterey Blvd" }, "geometry": { "type": "Point", "coordinates": [ -122.457529, 37.731107 ] } }
@@ -3501,8 +3501,6 @@
,
{ "type": "Feature", "properties": { "name": "Clement St & 10th Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.468998, 37.782799 ] } }
,
{ "type": "Feature", "properties": { "name": "Clement St & 10th Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.468365, 37.782697 ] } }
,
{ "type": "Feature", "properties": { "name": "Geary Blvd & 9th Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.467647, 37.780984 ] } }
,
{ "type": "Feature", "properties": { "name": "Clement St & 8th Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.466874, 37.782901 ] } }
@@ -3559,7 +3557,7 @@
,
{ "type": "Feature", "properties": { "name": "Euclid Ave & Jordan Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.456961, 37.783859 ] } }
,
{ "type": "Feature", "properties": { "name": "California St & Cherry St" }, "geometry": { "type": "Point", "coordinates": [ -122.456328, 37.785970 ] } }
{ "type": "Feature", "properties": { "name": "California St & Maple St" }, "geometry": { "type": "Point", "coordinates": [ -122.455212, 37.786250 ] } }
,
{ "type": "Feature", "properties": { "name": "Euclid Ave & Parker Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.454751, 37.783961 ] } }
,
@@ -3985,7 +3983,7 @@
,
{ "type": "Feature", "properties": { "name": "Ortega St & 10th Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.466477, 37.752886 ] } }
,
{ "type": "Feature", "properties": { "name": "9th Ave & Ortega St" }, "geometry": { "type": "Point", "coordinates": [ -122.465630, 37.752937 ] } }
{ "type": "Feature", "properties": { "name": "Ortega St & 9th Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.465630, 37.752776 ] } }
,
{ "type": "Feature", "properties": { "name": "Clarendon Ave & Galewood Circle" }, "geometry": { "type": "Point", "coordinates": [ -122.455856, 37.753073 ] } }
,
@@ -4003,8 +4001,6 @@
,
{ "type": "Feature", "properties": { "name": "Fillmore St & Grove St" }, "geometry": { "type": "Point", "coordinates": [ -122.431372, 37.776999 ] } }
,
{ "type": "Feature", "properties": { "name": "Hayes St & Fillmore St" }, "geometry": { "type": "Point", "coordinates": [ -122.430836, 37.775803 ] } }
,
{ "type": "Feature", "properties": { "name": "Fillmore St & Oak St" }, "geometry": { "type": "Point", "coordinates": [ -122.430825, 37.774268 ] } }
,
{ "type": "Feature", "properties": { "name": "14th St & Sanchez St" }, "geometry": { "type": "Point", "coordinates": [ -122.431276, 37.767534 ] } }
@@ -4127,7 +4123,7 @@
,
{ "type": "Feature", "properties": { "name": "Fillmore St & Chestnut St" }, "geometry": { "type": "Point", "coordinates": [ -122.436469, 37.800892 ] } }
,
{ "type": "Feature", "properties": { "name": "Fillmore St & Lombard St" }, "geometry": { "type": "Point", "coordinates": [ -122.435954, 37.799705 ] } }
{ "type": "Feature", "properties": { "name": "Fillmore St & Lombard St" }, "geometry": { "type": "Point", "coordinates": [ -122.436050, 37.799595 ] } }
,
{ "type": "Feature", "properties": { "name": "Steiner St & Union St" }, "geometry": { "type": "Point", "coordinates": [ -122.437059, 37.796789 ] } }
,
@@ -4249,7 +4245,7 @@
,
{ "type": "Feature", "properties": { "name": "Sunnydale Ave & Santos St" }, "geometry": { "type": "Point", "coordinates": [ -122.417532, 37.712233 ] } }
,
{ "type": "Feature", "properties": { "name": "Visitacion Ave & Hahn St" }, "geometry": { "type": "Point", "coordinates": [ -122.415183, 37.713532 ] } }
{ "type": "Feature", "properties": { "name": "Hahn St & Visitacion Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.415226, 37.713396 ] } }
,
{ "type": "Feature", "properties": { "name": "Hahn St & Sunnydale Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.416052, 37.712021 ] } }
,
@@ -4497,7 +4493,7 @@
,
{ "type": "Feature", "properties": { "name": "Bernal Heights Blvd & Powhattan St" }, "geometry": { "type": "Point", "coordinates": [ -122.411224, 37.741450 ] } }
,
{ "type": "Feature", "properties": { "name": "Bernal Heights Blvd & Powhattan Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.410666, 37.741510 ] } }
{ "type": "Feature", "properties": { "name": "Bernal Heights Blvd & Bradford St" }, "geometry": { "type": "Point", "coordinates": [ -122.409775, 37.741832 ] } }
,
{ "type": "Feature", "properties": { "name": "Cortland Ave & Ellsworth St" }, "geometry": { "type": "Point", "coordinates": [ -122.414614, 37.738829 ] } }
,
@@ -4579,7 +4575,7 @@
,
{ "type": "Feature", "properties": { "name": "Crescent Ave & Anderson St" }, "geometry": { "type": "Point", "coordinates": [ -122.415687, 37.734892 ] } }
,
{ "type": "Feature", "properties": { "name": "945 Ellsworth St" }, "geometry": { "type": "Point", "coordinates": [ -122.417758, 37.732813 ] } }
{ "type": "Feature", "properties": { "name": "909 Ellsworth St" }, "geometry": { "type": "Point", "coordinates": [ -122.416792, 37.732838 ] } }
,
{ "type": "Feature", "properties": { "name": "831 Ellsworth St" }, "geometry": { "type": "Point", "coordinates": [ -122.415258, 37.733271 ] } }
,
@@ -4947,8 +4943,6 @@
,
{ "type": "Feature", "properties": { "name": "Fillmore St & Grove St" }, "geometry": { "type": "Point", "coordinates": [ -122.431372, 37.776999 ] } }
,
{ "type": "Feature", "properties": { "name": "Hayes St & Fillmore St" }, "geometry": { "type": "Point", "coordinates": [ -122.430836, 37.775803 ] } }
,
{ "type": "Feature", "properties": { "name": "Hayes St & Webster St" }, "geometry": { "type": "Point", "coordinates": [ -122.429881, 37.776057 ] } }
,
{ "type": "Feature", "properties": { "name": "Mcallister St & Laguna St" }, "geometry": { "type": "Point", "coordinates": [ -122.426952, 37.779187 ] } }
@@ -5027,11 +5021,11 @@
,
{ "type": "Feature", "properties": { "name": "Ellis St & Jones St" }, "geometry": { "type": "Point", "coordinates": [ -122.413155, 37.784876 ] } }
,
{ "type": "Feature", "properties": { "name": "Eddy St & Jones St" }, "geometry": { "type": "Point", "coordinates": [ -122.412425, 37.783884 ] } }
{ "type": "Feature", "properties": { "name": "Post St & Taylor St" }, "geometry": { "type": "Point", "coordinates": [ -122.411320, 37.787878 ] } }
,
{ "type": "Feature", "properties": { "name": "Geary Blvd & Taylor St" }, "geometry": { "type": "Point", "coordinates": [ -122.411685, 37.786979 ] } }
{ "type": "Feature", "properties": { "name": "Geary Blvd & Mason St" }, "geometry": { "type": "Point", "coordinates": [ -122.410280, 37.787174 ] } }
,
{ "type": "Feature", "properties": { "name": "O'Farrell St & Mason St" }, "geometry": { "type": "Point", "coordinates": [ -122.410655, 37.786038 ] } }
{ "type": "Feature", "properties": { "name": "Ellis St & Taylor St" }, "geometry": { "type": "Point", "coordinates": [ -122.411449, 37.785088 ] } }
,
{ "type": "Feature", "properties": { "name": "Eddy St & Taylor St" }, "geometry": { "type": "Point", "coordinates": [ -122.410784, 37.784105 ] } }
,
@@ -5091,7 +5085,7 @@
,
{ "type": "Feature", "properties": { "name": "Hermann St & Fillmore St" }, "geometry": { "type": "Point", "coordinates": [ -122.429924, 37.770308 ] } }
,
{ "type": "Feature", "properties": { "name": "Church St & Duboce Ave" }, "geometry": { "type": "Point", "coordinates": [ -122.429162, 37.769502 ] } }
{ "type": "Feature", "properties": { "name": "Duboce Ave & Church St - Ramp" }, "geometry": { "type": "Point", "coordinates": [ -122.429130, 37.769460 ] } }
,
{ "type": "Feature", "properties": { "name": "14th St & Church St" }, "geometry": { "type": "Point", "coordinates": [ -122.429087, 37.767772 ] } }
,
@@ -5399,7 +5393,7 @@
,
{ "type": "Feature", "properties": { "name": "20th St & Rhode Island St" }, "geometry": { "type": "Point", "coordinates": [ -122.402233, 37.759621 ] } }
,
{ "type": "Feature", "properties": { "name": "Southern Heights Ave & Rhode Island St" }, "geometry": { "type": "Point", "coordinates": [ -122.401772, 37.758391 ] } }
{ "type": "Feature", "properties": { "name": "De Haro St & 19th St" }, "geometry": { "type": "Point", "coordinates": [ -122.401117, 37.760936 ] } }
,
{ "type": "Feature", "properties": { "name": "De Haro St & 20th St" }, "geometry": { "type": "Point", "coordinates": [ -122.401031, 37.759663 ] } }
,
@@ -5447,7 +5441,7 @@
,
{ "type": "Feature", "properties": { "name": "Tennessee St & 18th St" }, "geometry": { "type": "Point", "coordinates": [ -122.389659, 37.762904 ] } }
,
{ "type": "Feature", "properties": { "name": "18th St & 3rd St" }, "geometry": { "type": "Point", "coordinates": [ -122.388929, 37.762988 ] } }
{ "type": "Feature", "properties": { "name": "3rd St & Mariposa St" }, "geometry": { "type": "Point", "coordinates": [ -122.388843, 37.762971 ] } }
,
{ "type": "Feature", "properties": { "name": "Connecticut St & 19th St" }, "geometry": { "type": "Point", "coordinates": [ -122.397469, 37.761326 ] } }
,
@@ -5533,7 +5527,7 @@
,
{ "type": "Feature", "properties": { "name": "Jefferson St & Powell St" }, "geometry": { "type": "Point", "coordinates": [ -122.413359, 37.808597 ] } }
,
{ "type": "Feature", "properties": { "name": "Beach St & Mason St" }, "geometry": { "type": "Point", "coordinates": [ -122.414120, 37.807411 ] } }
{ "type": "Feature", "properties": { "name": "North Point St & Mason St" }, "geometry": { "type": "Point", "coordinates": [ -122.414238, 37.806563 ] } }
,
{ "type": "Feature", "properties": { "name": "North Point St & Mason St" }, "geometry": { "type": "Point", "coordinates": [ -122.413455, 37.806520 ] } }
,
@@ -5675,7 +5669,7 @@
,
{ "type": "Feature", "properties": { "name": "Hyde St & Pine St" }, "geometry": { "type": "Point", "coordinates": [ -122.417296, 37.790167 ] } }
,
{ "type": "Feature", "properties": { "name": "Bush St & Hyde St" }, "geometry": { "type": "Point", "coordinates": [ -122.416577, 37.789150 ] } }
{ "type": "Feature", "properties": { "name": "Sutter St & Hyde St" }, "geometry": { "type": "Point", "coordinates": [ -122.416910, 37.788217 ] } }
,
{ "type": "Feature", "properties": { "name": "Sutter St & Leavenworth St" }, "geometry": { "type": "Point", "coordinates": [ -122.415268, 37.788429 ] } }
,
@@ -5711,8 +5705,6 @@
,
{ "type": "Feature", "properties": { "name": "Bay St & Midway St" }, "geometry": { "type": "Point", "coordinates": [ -122.409164, 37.806097 ] } }
,
{ "type": "Feature", "properties": { "name": "Kearny St & North Point St" }, "geometry": { "type": "Point", "coordinates": [ -122.407211, 37.807182 ] } }
,
{ "type": "Feature", "properties": { "name": "The Embarcadero & Bay St" }, "geometry": { "type": "Point", "coordinates": [ -122.406278, 37.806944 ] } }
,
{ "type": "Feature", "properties": { "name": "The Embarcadero & Bay St" }, "geometry": { "type": "Point", "coordinates": [ -122.405430, 37.806614 ] } }
@@ -5777,7 +5769,7 @@
,
{ "type": "Feature", "properties": { "name": "Clay St & Kearny St" }, "geometry": { "type": "Point", "coordinates": [ -122.404411, 37.794474 ] } }
,
{ "type": "Feature", "properties": { "name": "Powell St & California St" }, "geometry": { "type": "Point", "coordinates": [ -122.409292, 37.792210 ] } }
{ "type": "Feature", "properties": { "name": "Powell St & California St" }, "geometry": { "type": "Point", "coordinates": [ -122.409142, 37.792304 ] } }
,
{ "type": "Feature", "properties": { "name": "California St & Stockton St" }, "geometry": { "type": "Point", "coordinates": [ -122.407554, 37.792312 ] } }
,
@@ -5815,7 +5807,7 @@
,
{ "type": "Feature", "properties": { "name": "Bush St & Battery St" }, "geometry": { "type": "Point", "coordinates": [ -122.399765, 37.791312 ] } }
,
{ "type": "Feature", "properties": { "name": "Market St & Sansome St" }, "geometry": { "type": "Point", "coordinates": [ -122.400409, 37.790159 ] } }
{ "type": "Feature", "properties": { "name": "2nd St & Market St" }, "geometry": { "type": "Point", "coordinates": [ -122.401310, 37.789065 ] } }
,
{ "type": "Feature", "properties": { "name": "Broadway & Davis St" }, "geometry": { "type": "Point", "coordinates": [ -122.398585, 37.798967 ] } }
,
File diff suppressed because one or more lines are too long
@@ -9,7 +9,7 @@
"maxzoom": "5",
"minzoom": "0",
"name": "tests/ne_110m_admin_0_countries/out/-ae_-zg_-M5000_--drop-fraction-as-needed.json.check.mbtiles",
"strategies": "[{\"dropped_as_needed\":164,\"tile_size_desired\":39190},{\"dropped_as_needed\":187,\"tile_size_desired\":25154},{\"dropped_as_needed\":190,\"tiny_polygons\":1,\"tile_size_desired\":21201},{\"dropped_as_needed\":181,\"tile_size_desired\":10758},{\"dropped_as_needed\":147,\"tile_size_desired\":6601},{\"tiny_polygons\":2}]",
"strategies": "[{\"dropped_as_needed\":164,\"tile_size_desired\":39241},{\"dropped_as_needed\":187,\"tile_size_desired\":25163},{\"dropped_as_needed\":190,\"tiny_polygons\":1,\"tile_size_desired\":21214},{\"dropped_as_needed\":181,\"tile_size_desired\":10758},{\"dropped_as_needed\":147,\"tile_size_desired\":6601},{\"tiny_polygons\":2}]",
"type": "overlay",
"version": "2"
}, "features": [
@@ -23,23 +23,23 @@
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 2, "sovereignt": "Germany", "sov_a3": "DEU", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Germany", "adm0_a3": "DEU", "geou_dif": 0, "geounit": "Germany", "gu_a3": "DEU", "su_dif": 0, "subunit": "Germany", "su_a3": "DEU", "brk_diff": 0, "name": "Germany", "name_long": "Germany", "brk_a3": "DEU", "brk_name": "Germany", "abbrev": "Ger.", "postal": "D", "formal_en": "Federal Republic of Germany", "name_sort": "Germany", "mapcolor7": 2, "mapcolor8": 5, "mapcolor9": 5, "mapcolor13": 1, "pop_est": 82329758, "gdp_md_est": 2918000, "pop_year": -99, "lastcensus": 2011, "gdp_year": -99, "economy": "1. Developed region: G7", "income_grp": "1. High income: OECD", "wikipedia": -99, "iso_a2": "DE", "iso_a3": "DEU", "iso_n3": "276", "un_a3": "276", "wb_a2": "DE", "wb_a3": "DEU", "woe_id": -99, "adm0_a3_is": "DEU", "adm0_a3_us": "DEU", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Europe", "region_un": "Europe", "subregion": "Western Europe", "region_wb": "Europe & Central Asia", "name_len": 7, "long_len": 7, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 9.931641, 54.977614 ], [ 9.931641, 54.572062 ], [ 10.986328, 54.367759 ], [ 10.898438, 54.007769 ], [ 11.953125, 54.213861 ], [ 12.480469, 54.470038 ], [ 13.623047, 54.059388 ], [ 14.150391, 53.748711 ], [ 14.326172, 53.225768 ], [ 14.062500, 52.961875 ], [ 14.414062, 52.643063 ], [ 14.677734, 52.106505 ], [ 14.589844, 51.727028 ], [ 15.029297, 51.124213 ], [ 14.589844, 51.013755 ], [ 14.326172, 51.124213 ], [ 14.062500, 50.903033 ], [ 13.359375, 50.736455 ], [ 13.007812, 50.457504 ], [ 12.216797, 50.289339 ], [ 12.480469, 49.553726 ], [ 13.623047, 48.864715 ], [ 13.271484, 48.400032 ], [ 12.919922, 48.283193 ], [ 13.007812, 47.635784 ], [ 12.919922, 47.457809 ], [ 12.656250, 47.694974 ], [ 12.128906, 47.694974 ], [ 11.425781, 47.517201 ], [ 10.546875, 47.576526 ], [ 10.371094, 47.279229 ], [ 9.931641, 47.576526 ], [ 9.580078, 47.517201 ], [ 8.525391, 47.813155 ], [ 8.349609, 47.635784 ], [ 7.470703, 47.635784 ], [ 7.558594, 48.341646 ], [ 8.085938, 49.037868 ], [ 6.679688, 49.210420 ], [ 6.152344, 49.439557 ], [ 6.240234, 49.894634 ], [ 6.064453, 50.120578 ], [ 6.152344, 50.792047 ], [ 5.976562, 51.835778 ], [ 6.591797, 51.835778 ], [ 6.855469, 52.214339 ], [ 7.119141, 53.120405 ], [ 6.943359, 53.488046 ], [ 7.119141, 53.696706 ], [ 7.910156, 53.748711 ], [ 8.085938, 53.540307 ], [ 8.789062, 54.007769 ], [ 8.613281, 54.418930 ], [ 8.525391, 54.977614 ], [ 9.316406, 54.826008 ], [ 9.931641, 54.977614 ] ] ] } }
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 6, "sovereignt": "Kosovo", "sov_a3": "KOS", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Kosovo", "adm0_a3": "KOS", "geou_dif": 0, "geounit": "Kosovo", "gu_a3": "KOS", "su_dif": 0, "subunit": "Kosovo", "su_a3": "KOS", "brk_diff": 1, "name": "Kosovo", "name_long": "Kosovo", "brk_a3": "B57", "brk_name": "Kosovo", "abbrev": "Kos.", "postal": "KO", "formal_en": "Republic of Kosovo", "note_brk": "Self admin.; Claimed by Serbia", "name_sort": "Kosovo", "mapcolor7": 2, "mapcolor8": 2, "mapcolor9": 3, "mapcolor13": 11, "pop_est": 1804838, "gdp_md_est": 5352, "pop_year": -99, "lastcensus": 1981, "gdp_year": -99, "economy": "6. Developing region", "income_grp": "4. Lower middle income", "wikipedia": -99, "iso_a2": "-99", "iso_a3": "-99", "iso_n3": "-99", "un_a3": "-099", "wb_a2": "KV", "wb_a3": "KSV", "woe_id": -99, "adm0_a3_is": "SRB", "adm0_a3_us": "KOS", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Europe", "region_un": "Europe", "subregion": "Southern Europe", "region_wb": "Europe & Central Asia", "name_len": 6, "long_len": 6, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 20.830078, 43.261206 ], [ 21.621094, 42.682435 ], [ 21.796875, 42.682435 ], [ 21.533203, 42.228517 ], [ 20.742188, 42.032974 ], [ 20.742188, 41.836828 ], [ 20.566406, 41.836828 ], [ 20.566406, 42.228517 ], [ 20.039062, 42.617791 ], [ 20.214844, 42.811522 ], [ 20.478516, 42.875964 ], [ 20.654297, 43.197167 ], [ 20.830078, 43.261206 ] ] ] } }
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 6, "sovereignt": "Montenegro", "sov_a3": "MNE", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Montenegro", "adm0_a3": "MNE", "geou_dif": 0, "geounit": "Montenegro", "gu_a3": "MNE", "su_dif": 0, "subunit": "Montenegro", "su_a3": "MNE", "brk_diff": 0, "name": "Montenegro", "name_long": "Montenegro", "brk_a3": "MNE", "brk_name": "Montenegro", "abbrev": "Mont.", "postal": "ME", "formal_en": "Montenegro", "name_sort": "Montenegro", "mapcolor7": 4, "mapcolor8": 1, "mapcolor9": 4, "mapcolor13": 5, "pop_est": 672180, "gdp_md_est": 6816, "pop_year": -99, "lastcensus": 2011, "gdp_year": -99, "economy": "6. Developing region", "income_grp": "3. Upper middle income", "wikipedia": -99, "iso_a2": "ME", "iso_a3": "MNE", "iso_n3": "499", "un_a3": "499", "wb_a2": "ME", "wb_a3": "MNE", "woe_id": -99, "adm0_a3_is": "MNE", "adm0_a3_us": "MNE", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Europe", "region_un": "Europe", "subregion": "Southern Europe", "region_wb": "Europe & Central Asia", "name_len": 10, "long_len": 10, "abbrev_len": 5, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 19.248047, 43.516689 ], [ 19.599609, 43.197167 ], [ 20.302734, 42.875964 ], [ 20.039062, 42.617791 ], [ 19.775391, 42.488302 ], [ 19.775391, 42.682435 ], [ 19.335938, 42.163403 ], [ 19.335938, 41.902277 ], [ 18.457031, 42.488302 ], [ 18.720703, 43.197167 ], [ 19.248047, 43.516689 ] ] ] } }
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 5, "sovereignt": "Georgia", "sov_a3": "GEO", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Georgia", "adm0_a3": "GEO", "geou_dif": 0, "geounit": "Georgia", "gu_a3": "GEO", "su_dif": 0, "subunit": "Georgia", "su_a3": "GEO", "brk_diff": 0, "name": "Georgia", "name_long": "Georgia", "brk_a3": "GEO", "brk_name": "Georgia", "abbrev": "Geo.", "postal": "GE", "formal_en": "Georgia", "name_sort": "Georgia", "mapcolor7": 5, "mapcolor8": 1, "mapcolor9": 3, "mapcolor13": 2, "pop_est": 4615807, "gdp_md_est": 21510, "pop_year": -99, "lastcensus": 2002, "gdp_year": -99, "economy": "6. Developing region", "income_grp": "4. Lower middle income", "wikipedia": -99, "iso_a2": "GE", "iso_a3": "GEO", "iso_n3": "268", "un_a3": "268", "wb_a2": "GE", "wb_a3": "GEO", "woe_id": -99, "adm0_a3_is": "GEO", "adm0_a3_us": "GEO", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Asia", "region_un": "Asia", "subregion": "Western Asia", "region_wb": "Europe & Central Asia", "name_len": 7, "long_len": 7, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 40.078125, 43.580391 ], [ 42.363281, 43.197167 ], [ 43.769531, 42.747012 ], [ 43.945312, 42.553080 ], [ 44.560547, 42.682435 ], [ 45.439453, 42.488302 ], [ 45.791016, 42.098222 ], [ 46.406250, 41.836828 ], [ 46.142578, 41.705729 ], [ 46.669922, 41.178654 ], [ 46.494141, 41.046217 ], [ 45.966797, 41.112469 ], [ 45.175781, 41.442726 ], [ 45.000000, 41.244772 ], [ 43.593750, 41.112469 ], [ 42.626953, 41.574361 ], [ 41.572266, 41.508577 ], [ 41.660156, 41.967659 ], [ 41.484375, 42.617791 ], [ 40.869141, 43.004647 ], [ 40.341797, 43.133061 ], [ 39.990234, 43.452919 ], [ 40.078125, 43.580391 ] ] ] } }
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 3, "sovereignt": "Romania", "sov_a3": "ROU", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Romania", "adm0_a3": "ROU", "geou_dif": 0, "geounit": "Romania", "gu_a3": "ROU", "su_dif": 0, "subunit": "Romania", "su_a3": "ROU", "brk_diff": 0, "name": "Romania", "name_long": "Romania", "brk_a3": "ROU", "brk_name": "Romania", "abbrev": "Rom.", "postal": "RO", "formal_en": "Romania", "name_sort": "Romania", "mapcolor7": 1, "mapcolor8": 4, "mapcolor9": 3, "mapcolor13": 13, "pop_est": 22215421, "gdp_md_est": 271400, "pop_year": -99, "lastcensus": 2011, "gdp_year": -99, "economy": "2. Developed region: nonG7", "income_grp": "3. Upper middle income", "wikipedia": -99, "iso_a2": "RO", "iso_a3": "ROU", "iso_n3": "642", "un_a3": "642", "wb_a2": "RO", "wb_a3": "ROM", "woe_id": -99, "adm0_a3_is": "ROU", "adm0_a3_us": "ROU", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Europe", "region_un": "Europe", "subregion": "Eastern Europe", "region_wb": "Europe & Central Asia", "name_len": 7, "long_len": 7, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 26.630859, 48.224673 ], [ 26.894531, 48.107431 ], [ 28.125000, 46.800059 ], [ 28.037109, 45.951150 ], [ 28.212891, 45.460131 ], [ 28.652344, 45.274886 ], [ 29.179688, 45.460131 ], [ 29.619141, 45.274886 ], [ 29.619141, 45.026950 ], [ 29.179688, 44.840291 ], [ 28.828125, 44.902578 ], [ 28.564453, 43.707594 ], [ 27.949219, 43.834527 ], [ 27.246094, 44.150681 ], [ 26.103516, 43.961191 ], [ 25.576172, 43.707594 ], [ 24.082031, 43.771094 ], [ 23.291016, 43.897892 ], [ 22.939453, 43.834527 ], [ 22.500000, 44.402392 ], [ 22.675781, 44.590467 ], [ 22.500000, 44.715514 ], [ 22.148438, 44.465151 ], [ 21.533203, 44.777936 ], [ 21.445312, 45.151053 ], [ 20.917969, 45.398450 ], [ 20.742188, 45.706179 ], [ 20.214844, 46.134170 ], [ 21.005859, 46.316584 ], [ 22.060547, 47.694974 ], [ 23.115234, 48.107431 ], [ 24.433594, 47.989922 ], [ 24.873047, 47.754098 ], [ 25.224609, 47.872144 ], [ 25.927734, 47.989922 ], [ 26.191406, 48.224673 ], [ 26.630859, 48.224673 ] ] ] } }
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 4, "sovereignt": "Central African Republic", "sov_a3": "CAF", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Central African Republic", "adm0_a3": "CAF", "geou_dif": 0, "geounit": "Central African Republic", "gu_a3": "CAF", "su_dif": 0, "subunit": "Central African Republic", "su_a3": "CAF", "brk_diff": 0, "name": "Central African Rep.", "name_long": "Central African Republic", "brk_a3": "CAF", "brk_name": "Central African Rep.", "abbrev": "C.A.R.", "postal": "CF", "formal_en": "Central African Republic", "name_sort": "Central African Republic", "mapcolor7": 5, "mapcolor8": 6, "mapcolor9": 6, "mapcolor13": 9, "pop_est": 4511488, "gdp_md_est": 3198, "pop_year": -99, "lastcensus": 2003, "gdp_year": -99, "economy": "7. Least developed region", "income_grp": "5. Low income", "wikipedia": -99, "iso_a2": "CF", "iso_a3": "CAF", "iso_n3": "140", "un_a3": "140", "wb_a2": "CF", "wb_a3": "CAF", "woe_id": -99, "adm0_a3_is": "CAF", "adm0_a3_us": "CAF", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Middle Africa", "region_wb": "Sub-Saharan Africa", "name_len": 20, "long_len": 24, "abbrev_len": 6, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 22.851562, 11.178402 ], [ 22.939453, 10.746969 ], [ 23.554688, 10.055403 ], [ 23.378906, 9.275622 ], [ 23.466797, 8.928487 ], [ 25.136719, 7.798079 ], [ 25.136719, 7.536764 ], [ 26.191406, 6.577303 ], [ 26.455078, 5.965754 ], [ 27.246094, 5.528511 ], [ 27.333984, 5.266008 ], [ 27.070312, 5.090944 ], [ 25.664062, 5.266008 ], [ 25.312500, 5.178482 ], [ 25.136719, 4.915833 ], [ 24.785156, 4.915833 ], [ 24.433594, 5.090944 ], [ 23.291016, 4.653080 ], [ 22.851562, 4.740675 ], [ 22.412109, 4.039618 ], [ 20.917969, 4.302591 ], [ 19.511719, 5.003394 ], [ 18.896484, 4.740675 ], [ 18.544922, 4.214943 ], [ 18.457031, 3.513421 ], [ 17.138672, 3.688855 ], [ 16.523438, 3.162456 ], [ 15.996094, 2.284551 ], [ 15.820312, 2.986927 ], [ 15.380859, 3.337954 ], [ 15.029297, 3.864255 ], [ 14.941406, 4.214943 ], [ 14.501953, 4.740675 ], [ 14.589844, 5.003394 ], [ 14.501953, 5.441022 ], [ 14.501953, 6.227934 ], [ 14.765625, 6.402648 ], [ 15.292969, 7.449624 ], [ 16.083984, 7.536764 ], [ 16.259766, 7.710992 ], [ 16.699219, 7.536764 ], [ 17.929688, 7.885147 ], [ 18.896484, 8.667918 ], [ 18.808594, 9.015302 ], [ 20.039062, 9.015302 ], [ 21.005859, 9.449062 ], [ 21.708984, 10.574222 ], [ 22.236328, 11.005904 ], [ 22.851562, 11.178402 ] ] ] } }
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 4, "sovereignt": "Equatorial Guinea", "sov_a3": "GNQ", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Equatorial Guinea", "adm0_a3": "GNQ", "geou_dif": 0, "geounit": "Equatorial Guinea", "gu_a3": "GNQ", "su_dif": 0, "subunit": "Equatorial Guinea", "su_a3": "GNQ", "brk_diff": 0, "name": "Eq. Guinea", "name_long": "Equatorial Guinea", "brk_a3": "GNQ", "brk_name": "Eq. Guinea", "abbrev": "Eq. G.", "postal": "GQ", "formal_en": "Republic of Equatorial Guinea", "name_sort": "Equatorial Guinea", "mapcolor7": 4, "mapcolor8": 1, "mapcolor9": 4, "mapcolor13": 8, "pop_est": 650702, "gdp_md_est": 14060, "pop_year": 0, "lastcensus": 2002, "gdp_year": 0, "economy": "7. Least developed region", "income_grp": "2. High income: nonOECD", "wikipedia": -99, "iso_a2": "GQ", "iso_a3": "GNQ", "iso_n3": "226", "un_a3": "226", "wb_a2": "GQ", "wb_a3": "GNQ", "woe_id": -99, "adm0_a3_is": "GNQ", "adm0_a3_us": "GNQ", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Middle Africa", "region_wb": "Sub-Saharan Africa", "name_len": 10, "long_len": 17, "abbrev_len": 6, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 11.250000, 2.284551 ], [ 11.250000, 1.054628 ], [ 9.492188, 0.966751 ], [ 9.316406, 1.142502 ], [ 9.667969, 2.284551 ], [ 11.250000, 2.284551 ] ] ] } }
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 3, "sovereignt": "Chad", "sov_a3": "TCD", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Chad", "adm0_a3": "TCD", "geou_dif": 0, "geounit": "Chad", "gu_a3": "TCD", "su_dif": 0, "subunit": "Chad", "su_a3": "TCD", "brk_diff": 0, "name": "Chad", "name_long": "Chad", "brk_a3": "TCD", "brk_name": "Chad", "abbrev": "Chad", "postal": "TD", "formal_en": "Republic of Chad", "name_sort": "Chad", "mapcolor7": 6, "mapcolor8": 1, "mapcolor9": 8, "mapcolor13": 6, "pop_est": 10329208, "gdp_md_est": 15860, "pop_year": -99, "lastcensus": 2009, "gdp_year": -99, "economy": "7. Least developed region", "income_grp": "5. Low income", "wikipedia": -99, "iso_a2": "TD", "iso_a3": "TCD", "iso_n3": "148", "un_a3": "148", "wb_a2": "TD", "wb_a3": "TCD", "woe_id": -99, "adm0_a3_is": "TCD", "adm0_a3_us": "TCD", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Middle Africa", "region_wb": "Sub-Saharan Africa", "name_len": 4, "long_len": 4, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 15.820312, 23.402765 ], [ 23.818359, 19.559790 ], [ 23.906250, 15.623037 ], [ 23.027344, 15.707663 ], [ 22.324219, 14.349548 ], [ 22.500000, 14.093957 ], [ 22.148438, 13.752725 ], [ 22.324219, 13.410994 ], [ 21.972656, 12.554564 ], [ 22.324219, 12.640338 ], [ 22.500000, 12.297068 ], [ 22.500000, 11.695273 ], [ 22.851562, 11.350797 ], [ 22.851562, 11.178402 ], [ 22.236328, 11.005904 ], [ 21.708984, 10.574222 ], [ 21.005859, 9.449062 ], [ 20.039062, 9.015302 ], [ 18.808594, 9.015302 ], [ 18.896484, 8.667918 ], [ 17.929688, 7.885147 ], [ 16.699219, 7.536764 ], [ 16.259766, 7.710992 ], [ 16.083984, 7.536764 ], [ 15.292969, 7.449624 ], [ 15.468750, 7.710992 ], [ 14.941406, 8.754795 ], [ 14.501953, 8.928487 ], [ 13.974609, 9.535749 ], [ 14.150391, 10.055403 ], [ 14.589844, 9.882275 ], [ 15.468750, 9.968851 ], [ 14.941406, 10.919618 ], [ 14.853516, 12.211180 ], [ 14.501953, 12.897489 ], [ 14.589844, 13.325485 ], [ 13.974609, 13.325485 ], [ 13.974609, 14.008696 ], [ 13.535156, 14.349548 ], [ 13.974609, 15.707663 ], [ 15.205078, 16.636192 ], [ 15.292969, 17.895114 ], [ 15.644531, 19.973349 ], [ 15.908203, 20.385825 ], [ 15.468750, 20.715015 ], [ 15.468750, 21.043491 ], [ 15.117188, 21.289374 ], [ 14.853516, 22.836946 ], [ 15.820312, 23.402765 ] ] ] } }
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 5, "sovereignt": "Qatar", "sov_a3": "QAT", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Qatar", "adm0_a3": "QAT", "geou_dif": 0, "geounit": "Qatar", "gu_a3": "QAT", "su_dif": 0, "subunit": "Qatar", "su_a3": "QAT", "brk_diff": 0, "name": "Qatar", "name_long": "Qatar", "brk_a3": "QAT", "brk_name": "Qatar", "abbrev": "Qatar", "postal": "QA", "formal_en": "State of Qatar", "name_sort": "Qatar", "mapcolor7": 3, "mapcolor8": 6, "mapcolor9": 2, "mapcolor13": 4, "pop_est": 833285, "gdp_md_est": 91330, "pop_year": -99, "lastcensus": 2010, "gdp_year": -99, "economy": "6. Developing region", "income_grp": "2. High income: nonOECD", "wikipedia": -99, "iso_a2": "QA", "iso_a3": "QAT", "iso_n3": "634", "un_a3": "634", "wb_a2": "QA", "wb_a3": "QAT", "woe_id": -99, "adm0_a3_is": "QAT", "adm0_a3_us": "QAT", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Asia", "region_un": "Asia", "subregion": "Western Asia", "region_wb": "Middle East & North Africa", "name_len": 5, "long_len": 5, "abbrev_len": 5, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 51.328125, 26.115986 ], [ 51.591797, 25.799891 ], [ 51.591797, 25.244696 ], [ 51.416016, 24.607069 ], [ 51.152344, 24.527135 ], [ 50.800781, 24.766785 ], [ 50.712891, 25.482951 ], [ 50.976562, 26.037042 ], [ 51.328125, 26.115986 ] ] ] } }
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 3, "sovereignt": "Sri Lanka", "sov_a3": "LKA", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Sri Lanka", "adm0_a3": "LKA", "geou_dif": 0, "geounit": "Sri Lanka", "gu_a3": "LKA", "su_dif": 0, "subunit": "Sri Lanka", "su_a3": "LKA", "brk_diff": 0, "name": "Sri Lanka", "name_long": "Sri Lanka", "brk_a3": "LKA", "brk_name": "Sri Lanka", "abbrev": "Sri L.", "postal": "LK", "formal_en": "Democratic Socialist Republic of Sri Lanka", "name_sort": "Sri Lanka", "mapcolor7": 3, "mapcolor8": 5, "mapcolor9": 4, "mapcolor13": 9, "pop_est": 21324791, "gdp_md_est": 91870, "pop_year": -99, "lastcensus": 2001, "gdp_year": -99, "economy": "6. Developing region", "income_grp": "4. Lower middle income", "wikipedia": -99, "iso_a2": "LK", "iso_a3": "LKA", "iso_n3": "144", "un_a3": "144", "wb_a2": "LK", "wb_a3": "LKA", "woe_id": -99, "adm0_a3_is": "LKA", "adm0_a3_us": "LKA", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Asia", "region_un": "Asia", "subregion": "Southern Asia", "region_wb": "South Asia", "name_len": 9, "long_len": 9, "abbrev_len": 6, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 80.156250, 9.795678 ], [ 80.859375, 9.275622 ], [ 81.826172, 7.536764 ], [ 81.650391, 6.489983 ], [ 81.210938, 6.227934 ], [ 80.332031, 5.965754 ], [ 79.892578, 6.751896 ], [ 79.716797, 8.233237 ], [ 80.156250, 9.795678 ] ] ] } }
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 2, "sovereignt": "India", "sov_a3": "IND", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "India", "adm0_a3": "IND", "geou_dif": 0, "geounit": "India", "gu_a3": "IND", "su_dif": 0, "subunit": "India", "su_a3": "IND", "brk_diff": 0, "name": "India", "name_long": "India", "brk_a3": "IND", "brk_name": "India", "abbrev": "India", "postal": "IND", "formal_en": "Republic of India", "name_sort": "India", "mapcolor7": 1, "mapcolor8": 3, "mapcolor9": 2, "mapcolor13": 2, "pop_est": 1166079220, "gdp_md_est": 3297000, "pop_year": -99, "lastcensus": 2011, "gdp_year": -99, "economy": "3. Emerging region: BRIC", "income_grp": "4. Lower middle income", "wikipedia": -99, "iso_a2": "IN", "iso_a3": "IND", "iso_n3": "356", "un_a3": "356", "wb_a2": "IN", "wb_a3": "IND", "woe_id": -99, "adm0_a3_is": "IND", "adm0_a3_us": "IND", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Asia", "region_un": "Asia", "subregion": "Southern Asia", "region_wb": "South Asia", "name_len": 5, "long_len": 5, "abbrev_len": 5, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 77.871094, 35.460670 ], [ 78.925781, 34.307144 ], [ 78.837891, 33.504759 ], [ 79.189453, 32.990236 ], [ 79.189453, 32.472695 ], [ 78.486328, 32.620870 ], [ 78.750000, 31.503629 ], [ 81.123047, 30.221102 ], [ 80.507812, 29.764377 ], [ 80.068359, 28.767659 ], [ 83.320312, 27.371767 ], [ 84.638672, 27.215556 ], [ 85.253906, 26.745610 ], [ 87.187500, 26.431228 ], [ 88.066406, 26.431228 ], [ 88.154297, 26.824071 ], [ 88.066406, 27.449790 ], [ 88.154297, 27.839076 ], [ 88.769531, 28.071980 ], [ 88.857422, 27.137368 ], [ 89.736328, 26.745610 ], [ 90.351562, 26.902477 ], [ 92.021484, 26.824071 ], [ 92.109375, 27.449790 ], [ 91.669922, 27.761330 ], [ 92.460938, 27.916767 ], [ 93.427734, 28.613459 ], [ 94.570312, 29.305561 ], [ 95.361328, 28.998532 ], [ 96.152344, 29.458731 ], [ 96.591797, 28.844674 ], [ 96.240234, 28.381735 ], [ 97.294922, 28.226970 ], [ 97.382812, 27.916767 ], [ 97.031250, 27.683528 ], [ 97.119141, 27.059126 ], [ 96.416016, 27.293689 ], [ 95.097656, 26.588527 ], [ 95.185547, 26.037042 ], [ 94.570312, 25.165173 ], [ 94.570312, 24.686952 ], [ 94.130859, 23.885838 ], [ 93.339844, 24.046464 ], [ 93.251953, 23.079732 ], [ 93.076172, 22.674847 ], [ 93.164062, 22.268764 ], [ 92.636719, 22.024546 ], [ 92.109375, 23.644524 ], [ 91.845703, 23.644524 ], [ 91.669922, 22.998852 ], [ 91.142578, 23.483401 ], [ 91.494141, 24.046464 ], [ 91.933594, 24.126702 ], [ 92.373047, 25.005973 ], [ 91.757812, 25.165173 ], [ 89.912109, 25.244696 ], [ 89.824219, 25.958045 ], [ 89.384766, 26.037042 ], [ 88.593750, 26.431228 ], [ 88.242188, 25.799891 ], [ 88.945312, 25.244696 ], [ 88.330078, 24.846565 ], [ 88.066406, 24.527135 ], [ 88.681641, 24.206890 ], [ 88.505859, 23.644524 ], [ 88.857422, 22.917923 ], [ 89.033203, 22.024546 ], [ 88.857422, 21.698265 ], [ 87.011719, 21.534847 ], [ 87.011719, 20.715015 ], [ 86.484375, 20.138470 ], [ 85.078125, 19.476950 ], [ 83.935547, 18.312811 ], [ 82.177734, 17.056785 ], [ 82.177734, 16.551962 ], [ 80.771484, 15.961329 ], [ 80.332031, 15.876809 ], [ 80.068359, 15.114553 ], [ 80.244141, 12.983148 ], [ 79.892578, 12.039321 ], [ 79.892578, 10.314919 ], [ 79.365234, 10.314919 ], [ 78.925781, 9.535749 ], [ 79.189453, 9.188870 ], [ 78.310547, 8.928487 ], [ 77.958984, 8.233237 ], [ 77.519531, 7.972198 ], [ 76.552734, 8.928487 ], [ 75.761719, 11.350797 ], [ 74.882812, 12.726084 ], [ 74.443359, 14.604847 ], [ 73.564453, 15.961329 ], [ 72.861328, 19.228177 ], [ 72.861328, 20.385825 ], [ 72.597656, 21.371244 ], [ 71.191406, 20.797201 ], [ 70.488281, 20.879343 ], [ 69.169922, 22.105999 ], [ 69.609375, 22.431340 ], [ 69.345703, 22.836946 ], [ 68.203125, 23.725012 ], [ 68.818359, 24.367114 ], [ 71.015625, 24.367114 ], [ 70.839844, 25.244696 ], [ 70.312500, 25.720735 ], [ 70.136719, 26.509905 ], [ 69.521484, 26.902477 ], [ 70.576172, 27.994401 ], [ 71.806641, 27.916767 ], [ 72.861328, 28.998532 ], [ 73.476562, 29.993002 ], [ 74.443359, 30.977609 ], [ 74.443359, 31.728167 ], [ 75.234375, 32.249974 ], [ 74.443359, 32.768800 ], [ 73.740234, 34.307144 ], [ 74.267578, 34.741612 ], [ 75.761719, 34.524661 ], [ 76.904297, 34.669359 ], [ 77.871094, 35.460670 ] ] ] } }
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 3, "sovereignt": "Malaysia", "sov_a3": "MYS", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Malaysia", "adm0_a3": "MYS", "geou_dif": 0, "geounit": "Malaysia", "gu_a3": "MYS", "su_dif": 0, "subunit": "Malaysia", "su_a3": "MYS", "brk_diff": 0, "name": "Malaysia", "name_long": "Malaysia", "brk_a3": "MYS", "brk_name": "Malaysia", "abbrev": "Malay.", "postal": "MY", "formal_en": "Malaysia", "name_sort": "Malaysia", "mapcolor7": 2, "mapcolor8": 4, "mapcolor9": 3, "mapcolor13": 6, "pop_est": 25715819, "gdp_md_est": 384300, "pop_year": -99, "lastcensus": 2010, "gdp_year": -99, "economy": "6. Developing region", "income_grp": "3. Upper middle income", "wikipedia": -99, "iso_a2": "MY", "iso_a3": "MYS", "iso_n3": "458", "un_a3": "458", "wb_a2": "MY", "wb_a3": "MYS", "woe_id": -99, "adm0_a3_is": "MYS", "adm0_a3_us": "MYS", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Asia", "region_un": "Asia", "subregion": "South-Eastern Asia", "region_wb": "East Asia & Pacific", "name_len": 8, "long_len": 8, "abbrev_len": 6, "tiny": -99, "homepart": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 117.158203, 6.926427 ], [ 117.685547, 6.402648 ], [ 117.685547, 5.965754 ], [ 119.179688, 5.441022 ], [ 119.091797, 5.003394 ], [ 118.476562, 5.003394 ], [ 118.652344, 4.477856 ], [ 117.861328, 4.127285 ], [ 116.982422, 4.302591 ], [ 115.839844, 4.302591 ], [ 115.488281, 3.162456 ], [ 115.136719, 2.811371 ], [ 114.609375, 1.406109 ], [ 113.818359, 1.230374 ], [ 112.851562, 1.493971 ], [ 112.412109, 1.406109 ], [ 111.796875, 0.878872 ], [ 111.181641, 0.966751 ], [ 110.478516, 0.790990 ], [ 109.863281, 1.318243 ], [ 109.687500, 2.021065 ], [ 110.390625, 1.669686 ], [ 111.181641, 1.845384 ], [ 111.357422, 2.723583 ], [ 113.027344, 3.074695 ], [ 114.169922, 4.565474 ], [ 114.697266, 4.039618 ], [ 114.873047, 4.390229 ], [ 115.312500, 4.302591 ], [ 115.488281, 5.441022 ], [ 116.191406, 6.140555 ], [ 116.718750, 6.926427 ], [ 117.158203, 6.926427 ] ] ], [ [ [ 100.283203, 6.664608 ], [ 101.074219, 6.227934 ], [ 101.162109, 5.703448 ], [ 101.777344, 5.790897 ], [ 102.128906, 6.227934 ], [ 102.919922, 5.528511 ], [ 103.359375, 4.828260 ], [ 103.359375, 3.688855 ], [ 103.535156, 2.811371 ], [ 103.886719, 2.547988 ], [ 104.238281, 1.669686 ], [ 104.238281, 1.318243 ], [ 103.535156, 1.230374 ], [ 101.425781, 2.723583 ], [ 101.250000, 3.250209 ], [ 100.722656, 3.951941 ], [ 100.546875, 4.740675 ], [ 100.195312, 5.353521 ], [ 100.283203, 6.053161 ], [ 100.107422, 6.489983 ], [ 100.283203, 6.664608 ] ] ] ] } }
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 6, "sovereignt": "Brunei", "sov_a3": "BRN", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Brunei", "adm0_a3": "BRN", "geou_dif": 0, "geounit": "Brunei", "gu_a3": "BRN", "su_dif": 0, "subunit": "Brunei", "su_a3": "BRN", "brk_diff": 0, "name": "Brunei", "name_long": "Brunei Darussalam", "brk_a3": "BRN", "brk_name": "Brunei", "abbrev": "Brunei", "postal": "BN", "formal_en": "Negara Brunei Darussalam", "name_sort": "Brunei", "mapcolor7": 4, "mapcolor8": 6, "mapcolor9": 6, "mapcolor13": 12, "pop_est": 388190, "gdp_md_est": 20250, "pop_year": -99, "lastcensus": 2001, "gdp_year": -99, "economy": "6. Developing region", "income_grp": "2. High income: nonOECD", "wikipedia": -99, "iso_a2": "BN", "iso_a3": "BRN", "iso_n3": "096", "un_a3": "096", "wb_a2": "BN", "wb_a3": "BRN", "woe_id": -99, "adm0_a3_is": "BRN", "adm0_a3_us": "BRN", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Asia", "region_un": "Asia", "subregion": "South-Eastern Asia", "region_wb": "East Asia & Pacific", "name_len": 6, "long_len": 17, "abbrev_len": 6, "tiny": 2, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 115.488281, 5.441022 ], [ 115.312500, 4.302591 ], [ 114.873047, 4.390229 ], [ 114.697266, 4.039618 ], [ 114.169922, 4.565474 ], [ 115.488281, 5.441022 ] ] ] } }
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 6, "sovereignt": "Malawi", "sov_a3": "MWI", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Malawi", "adm0_a3": "MWI", "geou_dif": 0, "geounit": "Malawi", "gu_a3": "MWI", "su_dif": 0, "subunit": "Malawi", "su_a3": "MWI", "brk_diff": 0, "name": "Malawi", "name_long": "Malawi", "brk_a3": "MWI", "brk_name": "Malawi", "abbrev": "Mal.", "postal": "MW", "formal_en": "Republic of Malawi", "name_sort": "Malawi", "mapcolor7": 1, "mapcolor8": 3, "mapcolor9": 4, "mapcolor13": 5, "pop_est": 14268711, "gdp_md_est": 11810, "pop_year": -99, "lastcensus": 2008, "gdp_year": -99, "economy": "7. Least developed region", "income_grp": "5. Low income", "wikipedia": -99, "iso_a2": "MW", "iso_a3": "MWI", "iso_n3": "454", "un_a3": "454", "wb_a2": "MW", "wb_a3": "MWI", "woe_id": -99, "adm0_a3_is": "MWI", "adm0_a3_us": "MWI", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Eastern Africa", "region_wb": "Sub-Saharan Africa", "name_len": 6, "long_len": 6, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 32.783203, -9.188870 ], [ 33.750000, -9.449062 ], [ 34.277344, -10.141932 ], [ 34.541016, -11.523088 ], [ 34.277344, -12.297068 ], [ 34.541016, -13.581921 ], [ 34.892578, -13.581921 ], [ 35.244141, -13.923404 ], [ 35.683594, -14.604847 ], [ 35.771484, -15.876809 ], [ 35.332031, -16.130262 ], [ 35.068359, -16.804541 ], [ 34.365234, -16.214675 ], [ 34.277344, -15.453680 ], [ 34.541016, -15.029686 ], [ 34.453125, -14.604847 ], [ 34.101562, -14.349548 ], [ 33.750000, -14.434680 ], [ 32.695312, -13.752725 ], [ 32.958984, -12.811801 ], [ 33.310547, -12.468760 ], [ 33.134766, -11.609193 ], [ 33.486328, -10.487812 ], [ 33.222656, -9.709057 ], [ 32.783203, -9.188870 ] ] ] } }
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 3, "sovereignt": "Zimbabwe", "sov_a3": "ZWE", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Zimbabwe", "adm0_a3": "ZWE", "geou_dif": 0, "geounit": "Zimbabwe", "gu_a3": "ZWE", "su_dif": 0, "subunit": "Zimbabwe", "su_a3": "ZWE", "brk_diff": 0, "name": "Zimbabwe", "name_long": "Zimbabwe", "brk_a3": "ZWE", "brk_name": "Zimbabwe", "abbrev": "Zimb.", "postal": "ZW", "formal_en": "Republic of Zimbabwe", "name_sort": "Zimbabwe", "mapcolor7": 1, "mapcolor8": 5, "mapcolor9": 3, "mapcolor13": 9, "pop_est": 12619600, "gdp_md_est": 9323, "pop_year": 0, "lastcensus": 2002, "gdp_year": 0, "economy": "5. Emerging region: G20", "income_grp": "5. Low income", "wikipedia": -99, "iso_a2": "ZW", "iso_a3": "ZWE", "iso_n3": "716", "un_a3": "716", "wb_a2": "ZW", "wb_a3": "ZWE", "woe_id": -99, "adm0_a3_is": "ZWE", "adm0_a3_us": "ZWE", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Eastern Africa", "region_wb": "Sub-Saharan Africa", "name_len": 8, "long_len": 8, "abbrev_len": 5, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 30.234375, -15.538376 ], [ 30.322266, -15.876809 ], [ 31.201172, -15.876809 ], [ 31.816406, -16.299051 ], [ 32.343750, -16.383391 ], [ 32.871094, -16.720385 ], [ 32.871094, -17.978733 ], [ 32.607422, -19.394068 ], [ 32.783203, -19.725342 ], [ 32.695312, -20.303418 ], [ 32.519531, -20.385825 ], [ 32.255859, -21.125498 ], [ 31.201172, -22.268764 ], [ 30.673828, -22.187405 ], [ 30.322266, -22.268764 ], [ 29.443359, -22.105999 ], [ 28.828125, -21.616579 ], [ 28.037109, -21.453069 ], [ 27.685547, -20.879343 ], [ 27.685547, -20.468189 ], [ 27.333984, -20.385825 ], [ 26.191406, -19.311143 ], [ 25.224609, -17.727759 ], [ 27.070312, -17.978733 ], [ 28.476562, -16.467695 ], [ 28.828125, -16.383391 ], [ 28.916016, -16.045813 ], [ 29.531250, -15.623037 ], [ 30.234375, -15.538376 ] ] ] } }
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 3, "sovereignt": "Solomon Islands", "sov_a3": "SLB", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Solomon Islands", "adm0_a3": "SLB", "geou_dif": 0, "geounit": "Solomon Islands", "gu_a3": "SLB", "su_dif": 0, "subunit": "Solomon Islands", "su_a3": "SLB", "brk_diff": 0, "name": "Solomon Is.", "name_long": "Solomon Islands", "brk_a3": "SLB", "brk_name": "Solomon Is.", "abbrev": "S. Is.", "postal": "SB", "name_sort": "Solomon Islands", "mapcolor7": 1, "mapcolor8": 4, "mapcolor9": 1, "mapcolor13": 6, "pop_est": 595613, "gdp_md_est": 1078, "pop_year": -99, "lastcensus": 2009, "gdp_year": -99, "economy": "7. Least developed region", "income_grp": "4. Lower middle income", "wikipedia": -99, "iso_a2": "SB", "iso_a3": "SLB", "iso_n3": "090", "un_a3": "090", "wb_a2": "SB", "wb_a3": "SLB", "woe_id": -99, "adm0_a3_is": "SLB", "adm0_a3_us": "SLB", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Oceania", "region_un": "Oceania", "subregion": "Melanesia", "region_wb": "East Asia & Pacific", "name_len": 11, "long_len": 15, "abbrev_len": 6, "tiny": -99, "homepart": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 161.279297, -10.228437 ], [ 162.158203, -10.487812 ], [ 162.421875, -10.833306 ], [ 161.718750, -10.833306 ], [ 161.279297, -10.228437 ] ] ], [ [ [ 159.697266, -9.275622 ], [ 160.400391, -9.362353 ], [ 160.839844, -9.882275 ], [ 159.873047, -9.795678 ], [ 159.609375, -9.622414 ], [ 159.697266, -9.275622 ] ] ], [ [ [ 160.927734, -8.320212 ], [ 161.279297, -9.102097 ], [ 161.718750, -9.622414 ], [ 161.542969, -9.795678 ], [ 160.751953, -8.928487 ], [ 160.576172, -8.320212 ], [ 160.927734, -8.320212 ] ] ], [ [ [ 158.378906, -7.362467 ], [ 159.609375, -8.059230 ], [ 159.960938, -8.581021 ], [ 158.203125, -7.449624 ], [ 158.378906, -7.362467 ] ] ], [ [ [ 156.533203, -6.577303 ], [ 157.500000, -7.362467 ], [ 157.324219, -7.362467 ], [ 156.884766, -7.188101 ], [ 156.533203, -6.751896 ], [ 156.533203, -6.577303 ] ] ] ] } }
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 2, "sovereignt": "Papua New Guinea", "sov_a3": "PNG", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Papua New Guinea", "adm0_a3": "PNG", "geou_dif": 0, "geounit": "Papua New Guinea", "gu_a3": "PNG", "su_dif": 1, "subunit": "Papua New Guinea", "su_a3": "PN1", "brk_diff": 0, "name": "Papua New Guinea", "name_long": "Papua New Guinea", "brk_a3": "PN1", "brk_name": "Papua New Guinea", "abbrev": "P.N.G.", "postal": "PG", "formal_en": "Independent State of Papua New Guinea", "name_sort": "Papua New Guinea", "mapcolor7": 4, "mapcolor8": 2, "mapcolor9": 3, "mapcolor13": 1, "pop_est": 6057263, "gdp_md_est": 13210, "pop_year": -99, "lastcensus": 2000, "gdp_year": -99, "economy": "6. Developing region", "income_grp": "4. Lower middle income", "wikipedia": -99, "iso_a2": "PG", "iso_a3": "PNG", "iso_n3": "598", "un_a3": "598", "wb_a2": "PG", "wb_a3": "PNG", "woe_id": -99, "adm0_a3_is": "PNG", "adm0_a3_us": "PNG", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Oceania", "region_un": "Oceania", "subregion": "Melanesia", "region_wb": "East Asia & Pacific", "name_len": 16, "long_len": 16, "abbrev_len": 6, "tiny": -99, "homepart": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 140.976562, -2.635789 ], [ 144.580078, -3.864255 ], [ 145.810547, -4.915833 ], [ 145.986328, -5.441022 ], [ 147.656250, -6.053161 ], [ 147.919922, -6.577303 ], [ 146.953125, -6.751896 ], [ 147.216797, -7.362467 ], [ 148.095703, -8.059230 ], [ 148.710938, -9.102097 ], [ 149.326172, -9.102097 ], [ 149.238281, -9.535749 ], [ 150.029297, -9.709057 ], [ 149.765625, -9.882275 ], [ 150.820312, -10.314919 ], [ 150.732422, -10.574222 ], [ 150.029297, -10.660608 ], [ 149.765625, -10.401378 ], [ 147.919922, -10.141932 ], [ 146.601562, -8.928487 ], [ 146.074219, -8.059230 ], [ 144.755859, -7.623887 ], [ 143.261719, -8.233237 ], [ 143.437500, -9.015302 ], [ 142.646484, -9.362353 ], [ 142.031250, -9.188870 ], [ 141.064453, -9.102097 ], [ 140.976562, -2.635789 ] ] ], [ [ [ 152.138672, -4.127285 ], [ 152.314453, -4.302591 ], [ 152.314453, -4.828260 ], [ 151.962891, -5.441022 ], [ 151.435547, -5.528511 ], [ 151.259766, -5.878332 ], [ 150.205078, -6.315299 ], [ 149.677734, -6.315299 ], [ 148.359375, -5.703448 ], [ 148.359375, -5.441022 ], [ 149.326172, -5.615986 ], [ 149.853516, -5.528511 ], [ 150.029297, -5.003394 ], [ 150.117188, -5.003394 ], [ 150.205078, -5.528511 ], [ 150.820312, -5.441022 ], [ 151.611328, -4.740675 ], [ 151.523438, -4.127285 ], [ 152.138672, -4.127285 ] ] ], [ [ [ 154.687500, -5.003394 ], [ 154.775391, -5.353521 ], [ 156.005859, -6.577303 ], [ 155.917969, -6.839170 ], [ 155.566406, -6.926427 ], [ 155.126953, -6.577303 ], [ 154.687500, -5.878332 ], [ 154.511719, -5.178482 ], [ 154.687500, -5.003394 ] ] ], [ [ [ 150.908203, -2.460181 ], [ 152.226562, -3.250209 ], [ 153.017578, -3.951941 ], [ 153.105469, -4.477856 ], [ 152.841797, -4.740675 ], [ 152.402344, -3.776559 ], [ 151.347656, -3.074695 ], [ 150.644531, -2.723583 ], [ 150.908203, -2.460181 ] ] ] ] } }
] }
] }
,
@@ -9,7 +9,7 @@
"maxzoom": "5",
"minzoom": "0",
"name": "tests/ne_110m_admin_0_countries/out/-ae_-zg_-M5000_--drop-smallest-as-needed.json.check.mbtiles",
"strategies": "[{\"dropped_as_needed\":174,\"tile_size_desired\":39190},{\"dropped_as_needed\":200,\"tile_size_desired\":25154},{\"dropped_as_needed\":187,\"tiny_polygons\":1,\"tile_size_desired\":21201},{\"dropped_as_needed\":154,\"tile_size_desired\":10758},{\"dropped_as_needed\":79,\"tile_size_desired\":6601},{\"tiny_polygons\":2}]",
"strategies": "[{\"dropped_as_needed\":174,\"tile_size_desired\":39241},{\"dropped_as_needed\":200,\"tile_size_desired\":25163},{\"dropped_as_needed\":187,\"tiny_polygons\":1,\"tile_size_desired\":21214},{\"dropped_as_needed\":154,\"tile_size_desired\":10758},{\"dropped_as_needed\":79,\"tile_size_desired\":6601},{\"tiny_polygons\":2}]",
"type": "overlay",
"version": "2"
}, "features": [
@@ -9,7 +9,7 @@
"maxzoom": "5",
"minzoom": "0",
"name": "tests/ne_110m_admin_0_countries/out/-ae_-zg_-M5000_--force-feature-limit.json.check.mbtiles",
"strategies": "[{\"dropped_as_needed\":479,\"tile_size_desired\":39190},{\"dropped_as_needed\":264,\"tiny_polygons\":2,\"tile_size_desired\":25154},{\"dropped_as_needed\":221,\"tiny_polygons\":2,\"tile_size_desired\":21201},{\"dropped_as_needed\":93,\"tile_size_desired\":10758},{\"dropped_as_needed\":9,\"tile_size_desired\":6601},{\"tiny_polygons\":2}]",
"strategies": "[{\"dropped_as_needed\":479,\"tile_size_desired\":39241},{\"dropped_as_needed\":264,\"tiny_polygons\":2,\"tile_size_desired\":25163},{\"dropped_as_needed\":221,\"tiny_polygons\":2,\"tile_size_desired\":21214},{\"dropped_as_needed\":93,\"tile_size_desired\":10758},{\"dropped_as_needed\":9,\"tile_size_desired\":6601},{\"tiny_polygons\":2}]",
"type": "overlay",
"version": "2"
}, "features": [
@@ -23,23 +23,23 @@
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 2, "sovereignt": "Germany", "sov_a3": "DEU", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Germany", "adm0_a3": "DEU", "geou_dif": 0, "geounit": "Germany", "gu_a3": "DEU", "su_dif": 0, "subunit": "Germany", "su_a3": "DEU", "brk_diff": 0, "name": "Germany", "name_long": "Germany", "brk_a3": "DEU", "brk_name": "Germany", "abbrev": "Ger.", "postal": "D", "formal_en": "Federal Republic of Germany", "name_sort": "Germany", "mapcolor7": 2, "mapcolor8": 5, "mapcolor9": 5, "mapcolor13": 1, "pop_est": 82329758, "gdp_md_est": 2918000, "pop_year": -99, "lastcensus": 2011, "gdp_year": -99, "economy": "1. Developed region: G7", "income_grp": "1. High income: OECD", "wikipedia": -99, "iso_a2": "DE", "iso_a3": "DEU", "iso_n3": "276", "un_a3": "276", "wb_a2": "DE", "wb_a3": "DEU", "woe_id": -99, "adm0_a3_is": "DEU", "adm0_a3_us": "DEU", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Europe", "region_un": "Europe", "subregion": "Western Europe", "region_wb": "Europe & Central Asia", "name_len": 7, "long_len": 7, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 9.931641, 54.977614 ], [ 9.931641, 54.572062 ], [ 10.986328, 54.367759 ], [ 10.898438, 54.007769 ], [ 11.953125, 54.213861 ], [ 12.480469, 54.470038 ], [ 13.623047, 54.059388 ], [ 14.150391, 53.748711 ], [ 14.326172, 53.225768 ], [ 14.062500, 52.961875 ], [ 14.414062, 52.643063 ], [ 14.677734, 52.106505 ], [ 14.589844, 51.727028 ], [ 15.029297, 51.124213 ], [ 14.589844, 51.013755 ], [ 14.326172, 51.124213 ], [ 14.062500, 50.903033 ], [ 13.359375, 50.736455 ], [ 13.007812, 50.457504 ], [ 12.216797, 50.289339 ], [ 12.480469, 49.553726 ], [ 13.623047, 48.864715 ], [ 13.271484, 48.400032 ], [ 12.919922, 48.283193 ], [ 13.007812, 47.635784 ], [ 12.919922, 47.457809 ], [ 12.656250, 47.694974 ], [ 12.128906, 47.694974 ], [ 11.425781, 47.517201 ], [ 10.546875, 47.576526 ], [ 10.371094, 47.279229 ], [ 9.931641, 47.576526 ], [ 9.580078, 47.517201 ], [ 8.525391, 47.813155 ], [ 8.349609, 47.635784 ], [ 7.470703, 47.635784 ], [ 7.558594, 48.341646 ], [ 8.085938, 49.037868 ], [ 6.679688, 49.210420 ], [ 6.152344, 49.439557 ], [ 6.240234, 49.894634 ], [ 6.064453, 50.120578 ], [ 6.152344, 50.792047 ], [ 5.976562, 51.835778 ], [ 6.591797, 51.835778 ], [ 6.855469, 52.214339 ], [ 7.119141, 53.120405 ], [ 6.943359, 53.488046 ], [ 7.119141, 53.696706 ], [ 7.910156, 53.748711 ], [ 8.085938, 53.540307 ], [ 8.789062, 54.007769 ], [ 8.613281, 54.418930 ], [ 8.525391, 54.977614 ], [ 9.316406, 54.826008 ], [ 9.931641, 54.977614 ] ] ] } }
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 6, "sovereignt": "Kosovo", "sov_a3": "KOS", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Kosovo", "adm0_a3": "KOS", "geou_dif": 0, "geounit": "Kosovo", "gu_a3": "KOS", "su_dif": 0, "subunit": "Kosovo", "su_a3": "KOS", "brk_diff": 1, "name": "Kosovo", "name_long": "Kosovo", "brk_a3": "B57", "brk_name": "Kosovo", "abbrev": "Kos.", "postal": "KO", "formal_en": "Republic of Kosovo", "note_brk": "Self admin.; Claimed by Serbia", "name_sort": "Kosovo", "mapcolor7": 2, "mapcolor8": 2, "mapcolor9": 3, "mapcolor13": 11, "pop_est": 1804838, "gdp_md_est": 5352, "pop_year": -99, "lastcensus": 1981, "gdp_year": -99, "economy": "6. Developing region", "income_grp": "4. Lower middle income", "wikipedia": -99, "iso_a2": "-99", "iso_a3": "-99", "iso_n3": "-99", "un_a3": "-099", "wb_a2": "KV", "wb_a3": "KSV", "woe_id": -99, "adm0_a3_is": "SRB", "adm0_a3_us": "KOS", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Europe", "region_un": "Europe", "subregion": "Southern Europe", "region_wb": "Europe & Central Asia", "name_len": 6, "long_len": 6, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 20.830078, 43.261206 ], [ 21.621094, 42.682435 ], [ 21.796875, 42.682435 ], [ 21.533203, 42.228517 ], [ 20.742188, 42.032974 ], [ 20.742188, 41.836828 ], [ 20.566406, 41.836828 ], [ 20.566406, 42.228517 ], [ 20.039062, 42.617791 ], [ 20.214844, 42.811522 ], [ 20.478516, 42.875964 ], [ 20.654297, 43.197167 ], [ 20.830078, 43.261206 ] ] ] } }
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 6, "sovereignt": "Montenegro", "sov_a3": "MNE", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Montenegro", "adm0_a3": "MNE", "geou_dif": 0, "geounit": "Montenegro", "gu_a3": "MNE", "su_dif": 0, "subunit": "Montenegro", "su_a3": "MNE", "brk_diff": 0, "name": "Montenegro", "name_long": "Montenegro", "brk_a3": "MNE", "brk_name": "Montenegro", "abbrev": "Mont.", "postal": "ME", "formal_en": "Montenegro", "name_sort": "Montenegro", "mapcolor7": 4, "mapcolor8": 1, "mapcolor9": 4, "mapcolor13": 5, "pop_est": 672180, "gdp_md_est": 6816, "pop_year": -99, "lastcensus": 2011, "gdp_year": -99, "economy": "6. Developing region", "income_grp": "3. Upper middle income", "wikipedia": -99, "iso_a2": "ME", "iso_a3": "MNE", "iso_n3": "499", "un_a3": "499", "wb_a2": "ME", "wb_a3": "MNE", "woe_id": -99, "adm0_a3_is": "MNE", "adm0_a3_us": "MNE", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Europe", "region_un": "Europe", "subregion": "Southern Europe", "region_wb": "Europe & Central Asia", "name_len": 10, "long_len": 10, "abbrev_len": 5, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 19.248047, 43.516689 ], [ 19.599609, 43.197167 ], [ 20.302734, 42.875964 ], [ 20.039062, 42.617791 ], [ 19.775391, 42.488302 ], [ 19.775391, 42.682435 ], [ 19.335938, 42.163403 ], [ 19.335938, 41.902277 ], [ 18.457031, 42.488302 ], [ 18.720703, 43.197167 ], [ 19.248047, 43.516689 ] ] ] } }
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 5, "sovereignt": "Georgia", "sov_a3": "GEO", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Georgia", "adm0_a3": "GEO", "geou_dif": 0, "geounit": "Georgia", "gu_a3": "GEO", "su_dif": 0, "subunit": "Georgia", "su_a3": "GEO", "brk_diff": 0, "name": "Georgia", "name_long": "Georgia", "brk_a3": "GEO", "brk_name": "Georgia", "abbrev": "Geo.", "postal": "GE", "formal_en": "Georgia", "name_sort": "Georgia", "mapcolor7": 5, "mapcolor8": 1, "mapcolor9": 3, "mapcolor13": 2, "pop_est": 4615807, "gdp_md_est": 21510, "pop_year": -99, "lastcensus": 2002, "gdp_year": -99, "economy": "6. Developing region", "income_grp": "4. Lower middle income", "wikipedia": -99, "iso_a2": "GE", "iso_a3": "GEO", "iso_n3": "268", "un_a3": "268", "wb_a2": "GE", "wb_a3": "GEO", "woe_id": -99, "adm0_a3_is": "GEO", "adm0_a3_us": "GEO", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Asia", "region_un": "Asia", "subregion": "Western Asia", "region_wb": "Europe & Central Asia", "name_len": 7, "long_len": 7, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 40.078125, 43.580391 ], [ 42.363281, 43.197167 ], [ 43.769531, 42.747012 ], [ 43.945312, 42.553080 ], [ 44.560547, 42.682435 ], [ 45.439453, 42.488302 ], [ 45.791016, 42.098222 ], [ 46.406250, 41.836828 ], [ 46.142578, 41.705729 ], [ 46.669922, 41.178654 ], [ 46.494141, 41.046217 ], [ 45.966797, 41.112469 ], [ 45.175781, 41.442726 ], [ 45.000000, 41.244772 ], [ 43.593750, 41.112469 ], [ 42.626953, 41.574361 ], [ 41.572266, 41.508577 ], [ 41.660156, 41.967659 ], [ 41.484375, 42.617791 ], [ 40.869141, 43.004647 ], [ 40.341797, 43.133061 ], [ 39.990234, 43.452919 ], [ 40.078125, 43.580391 ] ] ] } }
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 3, "sovereignt": "Romania", "sov_a3": "ROU", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Romania", "adm0_a3": "ROU", "geou_dif": 0, "geounit": "Romania", "gu_a3": "ROU", "su_dif": 0, "subunit": "Romania", "su_a3": "ROU", "brk_diff": 0, "name": "Romania", "name_long": "Romania", "brk_a3": "ROU", "brk_name": "Romania", "abbrev": "Rom.", "postal": "RO", "formal_en": "Romania", "name_sort": "Romania", "mapcolor7": 1, "mapcolor8": 4, "mapcolor9": 3, "mapcolor13": 13, "pop_est": 22215421, "gdp_md_est": 271400, "pop_year": -99, "lastcensus": 2011, "gdp_year": -99, "economy": "2. Developed region: nonG7", "income_grp": "3. Upper middle income", "wikipedia": -99, "iso_a2": "RO", "iso_a3": "ROU", "iso_n3": "642", "un_a3": "642", "wb_a2": "RO", "wb_a3": "ROM", "woe_id": -99, "adm0_a3_is": "ROU", "adm0_a3_us": "ROU", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Europe", "region_un": "Europe", "subregion": "Eastern Europe", "region_wb": "Europe & Central Asia", "name_len": 7, "long_len": 7, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 26.630859, 48.224673 ], [ 26.894531, 48.107431 ], [ 28.125000, 46.800059 ], [ 28.037109, 45.951150 ], [ 28.212891, 45.460131 ], [ 28.652344, 45.274886 ], [ 29.179688, 45.460131 ], [ 29.619141, 45.274886 ], [ 29.619141, 45.026950 ], [ 29.179688, 44.840291 ], [ 28.828125, 44.902578 ], [ 28.564453, 43.707594 ], [ 27.949219, 43.834527 ], [ 27.246094, 44.150681 ], [ 26.103516, 43.961191 ], [ 25.576172, 43.707594 ], [ 24.082031, 43.771094 ], [ 23.291016, 43.897892 ], [ 22.939453, 43.834527 ], [ 22.500000, 44.402392 ], [ 22.675781, 44.590467 ], [ 22.500000, 44.715514 ], [ 22.148438, 44.465151 ], [ 21.533203, 44.777936 ], [ 21.445312, 45.151053 ], [ 20.917969, 45.398450 ], [ 20.742188, 45.706179 ], [ 20.214844, 46.134170 ], [ 21.005859, 46.316584 ], [ 22.060547, 47.694974 ], [ 23.115234, 48.107431 ], [ 24.433594, 47.989922 ], [ 24.873047, 47.754098 ], [ 25.224609, 47.872144 ], [ 25.927734, 47.989922 ], [ 26.191406, 48.224673 ], [ 26.630859, 48.224673 ] ] ] } }
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 4, "sovereignt": "Central African Republic", "sov_a3": "CAF", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Central African Republic", "adm0_a3": "CAF", "geou_dif": 0, "geounit": "Central African Republic", "gu_a3": "CAF", "su_dif": 0, "subunit": "Central African Republic", "su_a3": "CAF", "brk_diff": 0, "name": "Central African Rep.", "name_long": "Central African Republic", "brk_a3": "CAF", "brk_name": "Central African Rep.", "abbrev": "C.A.R.", "postal": "CF", "formal_en": "Central African Republic", "name_sort": "Central African Republic", "mapcolor7": 5, "mapcolor8": 6, "mapcolor9": 6, "mapcolor13": 9, "pop_est": 4511488, "gdp_md_est": 3198, "pop_year": -99, "lastcensus": 2003, "gdp_year": -99, "economy": "7. Least developed region", "income_grp": "5. Low income", "wikipedia": -99, "iso_a2": "CF", "iso_a3": "CAF", "iso_n3": "140", "un_a3": "140", "wb_a2": "CF", "wb_a3": "CAF", "woe_id": -99, "adm0_a3_is": "CAF", "adm0_a3_us": "CAF", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Middle Africa", "region_wb": "Sub-Saharan Africa", "name_len": 20, "long_len": 24, "abbrev_len": 6, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 22.851562, 11.178402 ], [ 22.939453, 10.746969 ], [ 23.554688, 10.055403 ], [ 23.378906, 9.275622 ], [ 23.466797, 8.928487 ], [ 25.136719, 7.798079 ], [ 25.136719, 7.536764 ], [ 26.191406, 6.577303 ], [ 26.455078, 5.965754 ], [ 27.246094, 5.528511 ], [ 27.333984, 5.266008 ], [ 27.070312, 5.090944 ], [ 25.664062, 5.266008 ], [ 25.312500, 5.178482 ], [ 25.136719, 4.915833 ], [ 24.785156, 4.915833 ], [ 24.433594, 5.090944 ], [ 23.291016, 4.653080 ], [ 22.851562, 4.740675 ], [ 22.412109, 4.039618 ], [ 20.917969, 4.302591 ], [ 19.511719, 5.003394 ], [ 18.896484, 4.740675 ], [ 18.544922, 4.214943 ], [ 18.457031, 3.513421 ], [ 17.138672, 3.688855 ], [ 16.523438, 3.162456 ], [ 15.996094, 2.284551 ], [ 15.820312, 2.986927 ], [ 15.380859, 3.337954 ], [ 15.029297, 3.864255 ], [ 14.941406, 4.214943 ], [ 14.501953, 4.740675 ], [ 14.589844, 5.003394 ], [ 14.501953, 5.441022 ], [ 14.501953, 6.227934 ], [ 14.765625, 6.402648 ], [ 15.292969, 7.449624 ], [ 16.083984, 7.536764 ], [ 16.259766, 7.710992 ], [ 16.699219, 7.536764 ], [ 17.929688, 7.885147 ], [ 18.896484, 8.667918 ], [ 18.808594, 9.015302 ], [ 20.039062, 9.015302 ], [ 21.005859, 9.449062 ], [ 21.708984, 10.574222 ], [ 22.236328, 11.005904 ], [ 22.851562, 11.178402 ] ] ] } }
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 4, "sovereignt": "Equatorial Guinea", "sov_a3": "GNQ", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Equatorial Guinea", "adm0_a3": "GNQ", "geou_dif": 0, "geounit": "Equatorial Guinea", "gu_a3": "GNQ", "su_dif": 0, "subunit": "Equatorial Guinea", "su_a3": "GNQ", "brk_diff": 0, "name": "Eq. Guinea", "name_long": "Equatorial Guinea", "brk_a3": "GNQ", "brk_name": "Eq. Guinea", "abbrev": "Eq. G.", "postal": "GQ", "formal_en": "Republic of Equatorial Guinea", "name_sort": "Equatorial Guinea", "mapcolor7": 4, "mapcolor8": 1, "mapcolor9": 4, "mapcolor13": 8, "pop_est": 650702, "gdp_md_est": 14060, "pop_year": 0, "lastcensus": 2002, "gdp_year": 0, "economy": "7. Least developed region", "income_grp": "2. High income: nonOECD", "wikipedia": -99, "iso_a2": "GQ", "iso_a3": "GNQ", "iso_n3": "226", "un_a3": "226", "wb_a2": "GQ", "wb_a3": "GNQ", "woe_id": -99, "adm0_a3_is": "GNQ", "adm0_a3_us": "GNQ", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Middle Africa", "region_wb": "Sub-Saharan Africa", "name_len": 10, "long_len": 17, "abbrev_len": 6, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 11.250000, 2.284551 ], [ 11.250000, 1.054628 ], [ 9.492188, 0.966751 ], [ 9.316406, 1.142502 ], [ 9.667969, 2.284551 ], [ 11.250000, 2.284551 ] ] ] } }
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 3, "sovereignt": "Chad", "sov_a3": "TCD", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Chad", "adm0_a3": "TCD", "geou_dif": 0, "geounit": "Chad", "gu_a3": "TCD", "su_dif": 0, "subunit": "Chad", "su_a3": "TCD", "brk_diff": 0, "name": "Chad", "name_long": "Chad", "brk_a3": "TCD", "brk_name": "Chad", "abbrev": "Chad", "postal": "TD", "formal_en": "Republic of Chad", "name_sort": "Chad", "mapcolor7": 6, "mapcolor8": 1, "mapcolor9": 8, "mapcolor13": 6, "pop_est": 10329208, "gdp_md_est": 15860, "pop_year": -99, "lastcensus": 2009, "gdp_year": -99, "economy": "7. Least developed region", "income_grp": "5. Low income", "wikipedia": -99, "iso_a2": "TD", "iso_a3": "TCD", "iso_n3": "148", "un_a3": "148", "wb_a2": "TD", "wb_a3": "TCD", "woe_id": -99, "adm0_a3_is": "TCD", "adm0_a3_us": "TCD", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Middle Africa", "region_wb": "Sub-Saharan Africa", "name_len": 4, "long_len": 4, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 15.820312, 23.402765 ], [ 23.818359, 19.559790 ], [ 23.906250, 15.623037 ], [ 23.027344, 15.707663 ], [ 22.324219, 14.349548 ], [ 22.500000, 14.093957 ], [ 22.148438, 13.752725 ], [ 22.324219, 13.410994 ], [ 21.972656, 12.554564 ], [ 22.324219, 12.640338 ], [ 22.500000, 12.297068 ], [ 22.500000, 11.695273 ], [ 22.851562, 11.350797 ], [ 22.851562, 11.178402 ], [ 22.236328, 11.005904 ], [ 21.708984, 10.574222 ], [ 21.005859, 9.449062 ], [ 20.039062, 9.015302 ], [ 18.808594, 9.015302 ], [ 18.896484, 8.667918 ], [ 17.929688, 7.885147 ], [ 16.699219, 7.536764 ], [ 16.259766, 7.710992 ], [ 16.083984, 7.536764 ], [ 15.292969, 7.449624 ], [ 15.468750, 7.710992 ], [ 14.941406, 8.754795 ], [ 14.501953, 8.928487 ], [ 13.974609, 9.535749 ], [ 14.150391, 10.055403 ], [ 14.589844, 9.882275 ], [ 15.468750, 9.968851 ], [ 14.941406, 10.919618 ], [ 14.853516, 12.211180 ], [ 14.501953, 12.897489 ], [ 14.589844, 13.325485 ], [ 13.974609, 13.325485 ], [ 13.974609, 14.008696 ], [ 13.535156, 14.349548 ], [ 13.974609, 15.707663 ], [ 15.205078, 16.636192 ], [ 15.292969, 17.895114 ], [ 15.644531, 19.973349 ], [ 15.908203, 20.385825 ], [ 15.468750, 20.715015 ], [ 15.468750, 21.043491 ], [ 15.117188, 21.289374 ], [ 14.853516, 22.836946 ], [ 15.820312, 23.402765 ] ] ] } }
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 5, "sovereignt": "Qatar", "sov_a3": "QAT", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Qatar", "adm0_a3": "QAT", "geou_dif": 0, "geounit": "Qatar", "gu_a3": "QAT", "su_dif": 0, "subunit": "Qatar", "su_a3": "QAT", "brk_diff": 0, "name": "Qatar", "name_long": "Qatar", "brk_a3": "QAT", "brk_name": "Qatar", "abbrev": "Qatar", "postal": "QA", "formal_en": "State of Qatar", "name_sort": "Qatar", "mapcolor7": 3, "mapcolor8": 6, "mapcolor9": 2, "mapcolor13": 4, "pop_est": 833285, "gdp_md_est": 91330, "pop_year": -99, "lastcensus": 2010, "gdp_year": -99, "economy": "6. Developing region", "income_grp": "2. High income: nonOECD", "wikipedia": -99, "iso_a2": "QA", "iso_a3": "QAT", "iso_n3": "634", "un_a3": "634", "wb_a2": "QA", "wb_a3": "QAT", "woe_id": -99, "adm0_a3_is": "QAT", "adm0_a3_us": "QAT", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Asia", "region_un": "Asia", "subregion": "Western Asia", "region_wb": "Middle East & North Africa", "name_len": 5, "long_len": 5, "abbrev_len": 5, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 51.328125, 26.115986 ], [ 51.591797, 25.799891 ], [ 51.591797, 25.244696 ], [ 51.416016, 24.607069 ], [ 51.152344, 24.527135 ], [ 50.800781, 24.766785 ], [ 50.712891, 25.482951 ], [ 50.976562, 26.037042 ], [ 51.328125, 26.115986 ] ] ] } }
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 3, "sovereignt": "Sri Lanka", "sov_a3": "LKA", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Sri Lanka", "adm0_a3": "LKA", "geou_dif": 0, "geounit": "Sri Lanka", "gu_a3": "LKA", "su_dif": 0, "subunit": "Sri Lanka", "su_a3": "LKA", "brk_diff": 0, "name": "Sri Lanka", "name_long": "Sri Lanka", "brk_a3": "LKA", "brk_name": "Sri Lanka", "abbrev": "Sri L.", "postal": "LK", "formal_en": "Democratic Socialist Republic of Sri Lanka", "name_sort": "Sri Lanka", "mapcolor7": 3, "mapcolor8": 5, "mapcolor9": 4, "mapcolor13": 9, "pop_est": 21324791, "gdp_md_est": 91870, "pop_year": -99, "lastcensus": 2001, "gdp_year": -99, "economy": "6. Developing region", "income_grp": "4. Lower middle income", "wikipedia": -99, "iso_a2": "LK", "iso_a3": "LKA", "iso_n3": "144", "un_a3": "144", "wb_a2": "LK", "wb_a3": "LKA", "woe_id": -99, "adm0_a3_is": "LKA", "adm0_a3_us": "LKA", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Asia", "region_un": "Asia", "subregion": "Southern Asia", "region_wb": "South Asia", "name_len": 9, "long_len": 9, "abbrev_len": 6, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 80.156250, 9.795678 ], [ 80.859375, 9.275622 ], [ 81.826172, 7.536764 ], [ 81.650391, 6.489983 ], [ 81.210938, 6.227934 ], [ 80.332031, 5.965754 ], [ 79.892578, 6.751896 ], [ 79.716797, 8.233237 ], [ 80.156250, 9.795678 ] ] ] } }
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 2, "sovereignt": "India", "sov_a3": "IND", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "India", "adm0_a3": "IND", "geou_dif": 0, "geounit": "India", "gu_a3": "IND", "su_dif": 0, "subunit": "India", "su_a3": "IND", "brk_diff": 0, "name": "India", "name_long": "India", "brk_a3": "IND", "brk_name": "India", "abbrev": "India", "postal": "IND", "formal_en": "Republic of India", "name_sort": "India", "mapcolor7": 1, "mapcolor8": 3, "mapcolor9": 2, "mapcolor13": 2, "pop_est": 1166079220, "gdp_md_est": 3297000, "pop_year": -99, "lastcensus": 2011, "gdp_year": -99, "economy": "3. Emerging region: BRIC", "income_grp": "4. Lower middle income", "wikipedia": -99, "iso_a2": "IN", "iso_a3": "IND", "iso_n3": "356", "un_a3": "356", "wb_a2": "IN", "wb_a3": "IND", "woe_id": -99, "adm0_a3_is": "IND", "adm0_a3_us": "IND", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Asia", "region_un": "Asia", "subregion": "Southern Asia", "region_wb": "South Asia", "name_len": 5, "long_len": 5, "abbrev_len": 5, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 77.871094, 35.460670 ], [ 78.925781, 34.307144 ], [ 78.837891, 33.504759 ], [ 79.189453, 32.990236 ], [ 79.189453, 32.472695 ], [ 78.486328, 32.620870 ], [ 78.750000, 31.503629 ], [ 81.123047, 30.221102 ], [ 80.507812, 29.764377 ], [ 80.068359, 28.767659 ], [ 83.320312, 27.371767 ], [ 84.638672, 27.215556 ], [ 85.253906, 26.745610 ], [ 87.187500, 26.431228 ], [ 88.066406, 26.431228 ], [ 88.154297, 26.824071 ], [ 88.066406, 27.449790 ], [ 88.154297, 27.839076 ], [ 88.769531, 28.071980 ], [ 88.857422, 27.137368 ], [ 89.736328, 26.745610 ], [ 90.351562, 26.902477 ], [ 92.021484, 26.824071 ], [ 92.109375, 27.449790 ], [ 91.669922, 27.761330 ], [ 92.460938, 27.916767 ], [ 93.427734, 28.613459 ], [ 94.570312, 29.305561 ], [ 95.361328, 28.998532 ], [ 96.152344, 29.458731 ], [ 96.591797, 28.844674 ], [ 96.240234, 28.381735 ], [ 97.294922, 28.226970 ], [ 97.382812, 27.916767 ], [ 97.031250, 27.683528 ], [ 97.119141, 27.059126 ], [ 96.416016, 27.293689 ], [ 95.097656, 26.588527 ], [ 95.185547, 26.037042 ], [ 94.570312, 25.165173 ], [ 94.570312, 24.686952 ], [ 94.130859, 23.885838 ], [ 93.339844, 24.046464 ], [ 93.251953, 23.079732 ], [ 93.076172, 22.674847 ], [ 93.164062, 22.268764 ], [ 92.636719, 22.024546 ], [ 92.109375, 23.644524 ], [ 91.845703, 23.644524 ], [ 91.669922, 22.998852 ], [ 91.142578, 23.483401 ], [ 91.494141, 24.046464 ], [ 91.933594, 24.126702 ], [ 92.373047, 25.005973 ], [ 91.757812, 25.165173 ], [ 89.912109, 25.244696 ], [ 89.824219, 25.958045 ], [ 89.384766, 26.037042 ], [ 88.593750, 26.431228 ], [ 88.242188, 25.799891 ], [ 88.945312, 25.244696 ], [ 88.330078, 24.846565 ], [ 88.066406, 24.527135 ], [ 88.681641, 24.206890 ], [ 88.505859, 23.644524 ], [ 88.857422, 22.917923 ], [ 89.033203, 22.024546 ], [ 88.857422, 21.698265 ], [ 87.011719, 21.534847 ], [ 87.011719, 20.715015 ], [ 86.484375, 20.138470 ], [ 85.078125, 19.476950 ], [ 83.935547, 18.312811 ], [ 82.177734, 17.056785 ], [ 82.177734, 16.551962 ], [ 80.771484, 15.961329 ], [ 80.332031, 15.876809 ], [ 80.068359, 15.114553 ], [ 80.244141, 12.983148 ], [ 79.892578, 12.039321 ], [ 79.892578, 10.314919 ], [ 79.365234, 10.314919 ], [ 78.925781, 9.535749 ], [ 79.189453, 9.188870 ], [ 78.310547, 8.928487 ], [ 77.958984, 8.233237 ], [ 77.519531, 7.972198 ], [ 76.552734, 8.928487 ], [ 75.761719, 11.350797 ], [ 74.882812, 12.726084 ], [ 74.443359, 14.604847 ], [ 73.564453, 15.961329 ], [ 72.861328, 19.228177 ], [ 72.861328, 20.385825 ], [ 72.597656, 21.371244 ], [ 71.191406, 20.797201 ], [ 70.488281, 20.879343 ], [ 69.169922, 22.105999 ], [ 69.609375, 22.431340 ], [ 69.345703, 22.836946 ], [ 68.203125, 23.725012 ], [ 68.818359, 24.367114 ], [ 71.015625, 24.367114 ], [ 70.839844, 25.244696 ], [ 70.312500, 25.720735 ], [ 70.136719, 26.509905 ], [ 69.521484, 26.902477 ], [ 70.576172, 27.994401 ], [ 71.806641, 27.916767 ], [ 72.861328, 28.998532 ], [ 73.476562, 29.993002 ], [ 74.443359, 30.977609 ], [ 74.443359, 31.728167 ], [ 75.234375, 32.249974 ], [ 74.443359, 32.768800 ], [ 73.740234, 34.307144 ], [ 74.267578, 34.741612 ], [ 75.761719, 34.524661 ], [ 76.904297, 34.669359 ], [ 77.871094, 35.460670 ] ] ] } }
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 3, "sovereignt": "Malaysia", "sov_a3": "MYS", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Malaysia", "adm0_a3": "MYS", "geou_dif": 0, "geounit": "Malaysia", "gu_a3": "MYS", "su_dif": 0, "subunit": "Malaysia", "su_a3": "MYS", "brk_diff": 0, "name": "Malaysia", "name_long": "Malaysia", "brk_a3": "MYS", "brk_name": "Malaysia", "abbrev": "Malay.", "postal": "MY", "formal_en": "Malaysia", "name_sort": "Malaysia", "mapcolor7": 2, "mapcolor8": 4, "mapcolor9": 3, "mapcolor13": 6, "pop_est": 25715819, "gdp_md_est": 384300, "pop_year": -99, "lastcensus": 2010, "gdp_year": -99, "economy": "6. Developing region", "income_grp": "3. Upper middle income", "wikipedia": -99, "iso_a2": "MY", "iso_a3": "MYS", "iso_n3": "458", "un_a3": "458", "wb_a2": "MY", "wb_a3": "MYS", "woe_id": -99, "adm0_a3_is": "MYS", "adm0_a3_us": "MYS", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Asia", "region_un": "Asia", "subregion": "South-Eastern Asia", "region_wb": "East Asia & Pacific", "name_len": 8, "long_len": 8, "abbrev_len": 6, "tiny": -99, "homepart": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 117.158203, 6.926427 ], [ 117.685547, 6.402648 ], [ 117.685547, 5.965754 ], [ 119.179688, 5.441022 ], [ 119.091797, 5.003394 ], [ 118.476562, 5.003394 ], [ 118.652344, 4.477856 ], [ 117.861328, 4.127285 ], [ 116.982422, 4.302591 ], [ 115.839844, 4.302591 ], [ 115.488281, 3.162456 ], [ 115.136719, 2.811371 ], [ 114.609375, 1.406109 ], [ 113.818359, 1.230374 ], [ 112.851562, 1.493971 ], [ 112.412109, 1.406109 ], [ 111.796875, 0.878872 ], [ 111.181641, 0.966751 ], [ 110.478516, 0.790990 ], [ 109.863281, 1.318243 ], [ 109.687500, 2.021065 ], [ 110.390625, 1.669686 ], [ 111.181641, 1.845384 ], [ 111.357422, 2.723583 ], [ 113.027344, 3.074695 ], [ 114.169922, 4.565474 ], [ 114.697266, 4.039618 ], [ 114.873047, 4.390229 ], [ 115.312500, 4.302591 ], [ 115.488281, 5.441022 ], [ 116.191406, 6.140555 ], [ 116.718750, 6.926427 ], [ 117.158203, 6.926427 ] ] ], [ [ [ 100.283203, 6.664608 ], [ 101.074219, 6.227934 ], [ 101.162109, 5.703448 ], [ 101.777344, 5.790897 ], [ 102.128906, 6.227934 ], [ 102.919922, 5.528511 ], [ 103.359375, 4.828260 ], [ 103.359375, 3.688855 ], [ 103.535156, 2.811371 ], [ 103.886719, 2.547988 ], [ 104.238281, 1.669686 ], [ 104.238281, 1.318243 ], [ 103.535156, 1.230374 ], [ 101.425781, 2.723583 ], [ 101.250000, 3.250209 ], [ 100.722656, 3.951941 ], [ 100.546875, 4.740675 ], [ 100.195312, 5.353521 ], [ 100.283203, 6.053161 ], [ 100.107422, 6.489983 ], [ 100.283203, 6.664608 ] ] ] ] } }
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 6, "sovereignt": "Brunei", "sov_a3": "BRN", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Brunei", "adm0_a3": "BRN", "geou_dif": 0, "geounit": "Brunei", "gu_a3": "BRN", "su_dif": 0, "subunit": "Brunei", "su_a3": "BRN", "brk_diff": 0, "name": "Brunei", "name_long": "Brunei Darussalam", "brk_a3": "BRN", "brk_name": "Brunei", "abbrev": "Brunei", "postal": "BN", "formal_en": "Negara Brunei Darussalam", "name_sort": "Brunei", "mapcolor7": 4, "mapcolor8": 6, "mapcolor9": 6, "mapcolor13": 12, "pop_est": 388190, "gdp_md_est": 20250, "pop_year": -99, "lastcensus": 2001, "gdp_year": -99, "economy": "6. Developing region", "income_grp": "2. High income: nonOECD", "wikipedia": -99, "iso_a2": "BN", "iso_a3": "BRN", "iso_n3": "096", "un_a3": "096", "wb_a2": "BN", "wb_a3": "BRN", "woe_id": -99, "adm0_a3_is": "BRN", "adm0_a3_us": "BRN", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Asia", "region_un": "Asia", "subregion": "South-Eastern Asia", "region_wb": "East Asia & Pacific", "name_len": 6, "long_len": 17, "abbrev_len": 6, "tiny": 2, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 115.488281, 5.441022 ], [ 115.312500, 4.302591 ], [ 114.873047, 4.390229 ], [ 114.697266, 4.039618 ], [ 114.169922, 4.565474 ], [ 115.488281, 5.441022 ] ] ] } }
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 6, "sovereignt": "Malawi", "sov_a3": "MWI", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Malawi", "adm0_a3": "MWI", "geou_dif": 0, "geounit": "Malawi", "gu_a3": "MWI", "su_dif": 0, "subunit": "Malawi", "su_a3": "MWI", "brk_diff": 0, "name": "Malawi", "name_long": "Malawi", "brk_a3": "MWI", "brk_name": "Malawi", "abbrev": "Mal.", "postal": "MW", "formal_en": "Republic of Malawi", "name_sort": "Malawi", "mapcolor7": 1, "mapcolor8": 3, "mapcolor9": 4, "mapcolor13": 5, "pop_est": 14268711, "gdp_md_est": 11810, "pop_year": -99, "lastcensus": 2008, "gdp_year": -99, "economy": "7. Least developed region", "income_grp": "5. Low income", "wikipedia": -99, "iso_a2": "MW", "iso_a3": "MWI", "iso_n3": "454", "un_a3": "454", "wb_a2": "MW", "wb_a3": "MWI", "woe_id": -99, "adm0_a3_is": "MWI", "adm0_a3_us": "MWI", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Eastern Africa", "region_wb": "Sub-Saharan Africa", "name_len": 6, "long_len": 6, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 32.783203, -9.188870 ], [ 33.750000, -9.449062 ], [ 34.277344, -10.141932 ], [ 34.541016, -11.523088 ], [ 34.277344, -12.297068 ], [ 34.541016, -13.581921 ], [ 34.892578, -13.581921 ], [ 35.244141, -13.923404 ], [ 35.683594, -14.604847 ], [ 35.771484, -15.876809 ], [ 35.332031, -16.130262 ], [ 35.068359, -16.804541 ], [ 34.365234, -16.214675 ], [ 34.277344, -15.453680 ], [ 34.541016, -15.029686 ], [ 34.453125, -14.604847 ], [ 34.101562, -14.349548 ], [ 33.750000, -14.434680 ], [ 32.695312, -13.752725 ], [ 32.958984, -12.811801 ], [ 33.310547, -12.468760 ], [ 33.134766, -11.609193 ], [ 33.486328, -10.487812 ], [ 33.222656, -9.709057 ], [ 32.783203, -9.188870 ] ] ] } }
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 3, "sovereignt": "Zimbabwe", "sov_a3": "ZWE", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Zimbabwe", "adm0_a3": "ZWE", "geou_dif": 0, "geounit": "Zimbabwe", "gu_a3": "ZWE", "su_dif": 0, "subunit": "Zimbabwe", "su_a3": "ZWE", "brk_diff": 0, "name": "Zimbabwe", "name_long": "Zimbabwe", "brk_a3": "ZWE", "brk_name": "Zimbabwe", "abbrev": "Zimb.", "postal": "ZW", "formal_en": "Republic of Zimbabwe", "name_sort": "Zimbabwe", "mapcolor7": 1, "mapcolor8": 5, "mapcolor9": 3, "mapcolor13": 9, "pop_est": 12619600, "gdp_md_est": 9323, "pop_year": 0, "lastcensus": 2002, "gdp_year": 0, "economy": "5. Emerging region: G20", "income_grp": "5. Low income", "wikipedia": -99, "iso_a2": "ZW", "iso_a3": "ZWE", "iso_n3": "716", "un_a3": "716", "wb_a2": "ZW", "wb_a3": "ZWE", "woe_id": -99, "adm0_a3_is": "ZWE", "adm0_a3_us": "ZWE", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Africa", "region_un": "Africa", "subregion": "Eastern Africa", "region_wb": "Sub-Saharan Africa", "name_len": 8, "long_len": 8, "abbrev_len": 5, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 30.234375, -15.538376 ], [ 30.322266, -15.876809 ], [ 31.201172, -15.876809 ], [ 31.816406, -16.299051 ], [ 32.343750, -16.383391 ], [ 32.871094, -16.720385 ], [ 32.871094, -17.978733 ], [ 32.607422, -19.394068 ], [ 32.783203, -19.725342 ], [ 32.695312, -20.303418 ], [ 32.519531, -20.385825 ], [ 32.255859, -21.125498 ], [ 31.201172, -22.268764 ], [ 30.673828, -22.187405 ], [ 30.322266, -22.268764 ], [ 29.443359, -22.105999 ], [ 28.828125, -21.616579 ], [ 28.037109, -21.453069 ], [ 27.685547, -20.879343 ], [ 27.685547, -20.468189 ], [ 27.333984, -20.385825 ], [ 26.191406, -19.311143 ], [ 25.224609, -17.727759 ], [ 27.070312, -17.978733 ], [ 28.476562, -16.467695 ], [ 28.828125, -16.383391 ], [ 28.916016, -16.045813 ], [ 29.531250, -15.623037 ], [ 30.234375, -15.538376 ] ] ] } }
,
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 3, "sovereignt": "Solomon Islands", "sov_a3": "SLB", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Solomon Islands", "adm0_a3": "SLB", "geou_dif": 0, "geounit": "Solomon Islands", "gu_a3": "SLB", "su_dif": 0, "subunit": "Solomon Islands", "su_a3": "SLB", "brk_diff": 0, "name": "Solomon Is.", "name_long": "Solomon Islands", "brk_a3": "SLB", "brk_name": "Solomon Is.", "abbrev": "S. Is.", "postal": "SB", "name_sort": "Solomon Islands", "mapcolor7": 1, "mapcolor8": 4, "mapcolor9": 1, "mapcolor13": 6, "pop_est": 595613, "gdp_md_est": 1078, "pop_year": -99, "lastcensus": 2009, "gdp_year": -99, "economy": "7. Least developed region", "income_grp": "4. Lower middle income", "wikipedia": -99, "iso_a2": "SB", "iso_a3": "SLB", "iso_n3": "090", "un_a3": "090", "wb_a2": "SB", "wb_a3": "SLB", "woe_id": -99, "adm0_a3_is": "SLB", "adm0_a3_us": "SLB", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Oceania", "region_un": "Oceania", "subregion": "Melanesia", "region_wb": "East Asia & Pacific", "name_len": 11, "long_len": 15, "abbrev_len": 6, "tiny": -99, "homepart": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 161.279297, -10.228437 ], [ 162.158203, -10.487812 ], [ 162.421875, -10.833306 ], [ 161.718750, -10.833306 ], [ 161.279297, -10.228437 ] ] ], [ [ [ 159.697266, -9.275622 ], [ 160.400391, -9.362353 ], [ 160.839844, -9.882275 ], [ 159.873047, -9.795678 ], [ 159.609375, -9.622414 ], [ 159.697266, -9.275622 ] ] ], [ [ [ 160.927734, -8.320212 ], [ 161.279297, -9.102097 ], [ 161.718750, -9.622414 ], [ 161.542969, -9.795678 ], [ 160.751953, -8.928487 ], [ 160.576172, -8.320212 ], [ 160.927734, -8.320212 ] ] ], [ [ [ 158.378906, -7.362467 ], [ 159.609375, -8.059230 ], [ 159.960938, -8.581021 ], [ 158.203125, -7.449624 ], [ 158.378906, -7.362467 ] ] ], [ [ [ 156.533203, -6.577303 ], [ 157.500000, -7.362467 ], [ 157.324219, -7.362467 ], [ 156.884766, -7.188101 ], [ 156.533203, -6.751896 ], [ 156.533203, -6.577303 ] ] ] ] } }
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 2, "sovereignt": "Papua New Guinea", "sov_a3": "PNG", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Papua New Guinea", "adm0_a3": "PNG", "geou_dif": 0, "geounit": "Papua New Guinea", "gu_a3": "PNG", "su_dif": 1, "subunit": "Papua New Guinea", "su_a3": "PN1", "brk_diff": 0, "name": "Papua New Guinea", "name_long": "Papua New Guinea", "brk_a3": "PN1", "brk_name": "Papua New Guinea", "abbrev": "P.N.G.", "postal": "PG", "formal_en": "Independent State of Papua New Guinea", "name_sort": "Papua New Guinea", "mapcolor7": 4, "mapcolor8": 2, "mapcolor9": 3, "mapcolor13": 1, "pop_est": 6057263, "gdp_md_est": 13210, "pop_year": -99, "lastcensus": 2000, "gdp_year": -99, "economy": "6. Developing region", "income_grp": "4. Lower middle income", "wikipedia": -99, "iso_a2": "PG", "iso_a3": "PNG", "iso_n3": "598", "un_a3": "598", "wb_a2": "PG", "wb_a3": "PNG", "woe_id": -99, "adm0_a3_is": "PNG", "adm0_a3_us": "PNG", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "Oceania", "region_un": "Oceania", "subregion": "Melanesia", "region_wb": "East Asia & Pacific", "name_len": 16, "long_len": 16, "abbrev_len": 6, "tiny": -99, "homepart": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 140.976562, -2.635789 ], [ 144.580078, -3.864255 ], [ 145.810547, -4.915833 ], [ 145.986328, -5.441022 ], [ 147.656250, -6.053161 ], [ 147.919922, -6.577303 ], [ 146.953125, -6.751896 ], [ 147.216797, -7.362467 ], [ 148.095703, -8.059230 ], [ 148.710938, -9.102097 ], [ 149.326172, -9.102097 ], [ 149.238281, -9.535749 ], [ 150.029297, -9.709057 ], [ 149.765625, -9.882275 ], [ 150.820312, -10.314919 ], [ 150.732422, -10.574222 ], [ 150.029297, -10.660608 ], [ 149.765625, -10.401378 ], [ 147.919922, -10.141932 ], [ 146.601562, -8.928487 ], [ 146.074219, -8.059230 ], [ 144.755859, -7.623887 ], [ 143.261719, -8.233237 ], [ 143.437500, -9.015302 ], [ 142.646484, -9.362353 ], [ 142.031250, -9.188870 ], [ 141.064453, -9.102097 ], [ 140.976562, -2.635789 ] ] ], [ [ [ 152.138672, -4.127285 ], [ 152.314453, -4.302591 ], [ 152.314453, -4.828260 ], [ 151.962891, -5.441022 ], [ 151.435547, -5.528511 ], [ 151.259766, -5.878332 ], [ 150.205078, -6.315299 ], [ 149.677734, -6.315299 ], [ 148.359375, -5.703448 ], [ 148.359375, -5.441022 ], [ 149.326172, -5.615986 ], [ 149.853516, -5.528511 ], [ 150.029297, -5.003394 ], [ 150.117188, -5.003394 ], [ 150.205078, -5.528511 ], [ 150.820312, -5.441022 ], [ 151.611328, -4.740675 ], [ 151.523438, -4.127285 ], [ 152.138672, -4.127285 ] ] ], [ [ [ 154.687500, -5.003394 ], [ 154.775391, -5.353521 ], [ 156.005859, -6.577303 ], [ 155.917969, -6.839170 ], [ 155.566406, -6.926427 ], [ 155.126953, -6.577303 ], [ 154.687500, -5.878332 ], [ 154.511719, -5.178482 ], [ 154.687500, -5.003394 ] ] ], [ [ [ 150.908203, -2.460181 ], [ 152.226562, -3.250209 ], [ 153.017578, -3.951941 ], [ 153.105469, -4.477856 ], [ 152.841797, -4.740675 ], [ 152.402344, -3.776559 ], [ 151.347656, -3.074695 ], [ 150.644531, -2.723583 ], [ 150.908203, -2.460181 ] ] ] ] } }
] }
] }
,
@@ -9,7 +9,7 @@
"maxzoom": "5",
"minzoom": "0",
"name": "tests/ne_110m_admin_0_countries/out/-z5_-M5000_--coalesce-densest-as-needed.json.check.mbtiles",
"strategies": "[{\"coalesced_as_needed\":528,\"detail_reduced\":2,\"tiny_polygons\":2,\"tile_size_desired\":39195},{\"coalesced_as_needed\":212,\"tile_size_desired\":25155},{\"coalesced_as_needed\":190,\"tiny_polygons\":1,\"tile_size_desired\":21206},{\"coalesced_as_needed\":159,\"tile_size_desired\":10751},{\"coalesced_as_needed\":51,\"tile_size_desired\":6591},{\"tiny_polygons\":1}]",
"strategies": "[{\"coalesced_as_needed\":528,\"detail_reduced\":2,\"tiny_polygons\":2,\"tile_size_desired\":39242},{\"coalesced_as_needed\":212,\"tile_size_desired\":25160},{\"coalesced_as_needed\":190,\"tiny_polygons\":1,\"tile_size_desired\":21223},{\"coalesced_as_needed\":159,\"tile_size_desired\":10749},{\"coalesced_as_needed\":51,\"tile_size_desired\":6591},{\"tiny_polygons\":1}]",
"type": "overlay",
"version": "2"
}, "features": [
File diff suppressed because one or more lines are too long
@@ -9,7 +9,7 @@
"maxzoom": "5",
"minzoom": "0",
"name": "tests/ne_110m_admin_0_countries/out/-z5_-M5000_--coalesce-smallest-as-needed.json.check.mbtiles",
"strategies": "[{\"coalesced_as_needed\":1271,\"tiny_polygons\":5,\"tile_size_desired\":39195},{\"coalesced_as_needed\":1189,\"tile_size_desired\":25155},{\"coalesced_as_needed\":727,\"tiny_polygons\":1,\"tile_size_desired\":21206},{\"coalesced_as_needed\":179,\"tile_size_desired\":10751},{\"coalesced_as_needed\":73,\"tile_size_desired\":6591},{\"tiny_polygons\":1}]",
"strategies": "[{\"coalesced_as_needed\":1271,\"tiny_polygons\":5,\"tile_size_desired\":39242},{\"coalesced_as_needed\":1189,\"tile_size_desired\":25160},{\"coalesced_as_needed\":727,\"tiny_polygons\":1,\"tile_size_desired\":21223},{\"coalesced_as_needed\":179,\"tile_size_desired\":10749},{\"coalesced_as_needed\":73,\"tile_size_desired\":6591},{\"tiny_polygons\":1}]",
"type": "overlay",
"version": "2"
}, "features": [
@@ -9,7 +9,7 @@
"maxzoom": "5",
"minzoom": "0",
"name": "tests/ne_110m_admin_0_countries/out/-z5_-M5000_--drop-smallest-as-needed.json.check.mbtiles",
"strategies": "[{\"dropped_as_needed\":174,\"tile_size_desired\":39195},{\"dropped_as_needed\":202,\"tile_size_desired\":25155},{\"dropped_as_needed\":190,\"tile_size_desired\":21206},{\"dropped_as_needed\":155,\"tile_size_desired\":10751},{\"dropped_as_needed\":78,\"tile_size_desired\":6591},{\"tiny_polygons\":1}]",
"strategies": "[{\"dropped_as_needed\":174,\"tile_size_desired\":39242},{\"dropped_as_needed\":202,\"tile_size_desired\":25160},{\"dropped_as_needed\":190,\"tile_size_desired\":21223},{\"dropped_as_needed\":155,\"tile_size_desired\":10749},{\"dropped_as_needed\":78,\"tile_size_desired\":6591},{\"tiny_polygons\":1}]",
"type": "overlay",
"version": "2"
}, "features": [
@@ -9,7 +9,7 @@
"maxzoom": "5",
"minzoom": "0",
"name": "tests/ne_110m_admin_1_states_provinces_lines/out/-z5_-M500_--drop-smallest-as-needed.json.check.mbtiles",
"strategies": "[{\"dropped_as_needed\":92,\"tile_size_desired\":1377},{\"dropped_as_needed\":96,\"tile_size_desired\":1738},{\"dropped_as_needed\":115,\"tile_size_desired\":1303},{\"dropped_as_needed\":127,\"tile_size_desired\":1154},{\"dropped_as_needed\":105,\"tile_size_desired\":1228},{\"dropped_as_needed\":106,\"tile_size_desired\":1077}]",
"strategies": "[{\"dropped_as_needed\":92,\"tile_size_desired\":1385},{\"dropped_as_needed\":96,\"tile_size_desired\":1739},{\"dropped_as_needed\":115,\"tile_size_desired\":1304},{\"dropped_as_needed\":127,\"tile_size_desired\":1154},{\"dropped_as_needed\":105,\"tile_size_desired\":1228},{\"dropped_as_needed\":106,\"tile_size_desired\":1077}]",
"type": "overlay",
"version": "2"
}, "features": [
@@ -9,7 +9,7 @@
"maxzoom": "2",
"minzoom": "0",
"name": "tests/ne_110m_populated_places/out/-z0_-M10000_--drop-densest-as-needed_--extend-zooms-if-still-dropping-maximum_2.json.check.mbtiles",
"strategies": "[{\"dropped_as_needed\":219,\"tile_size_desired\":74691},{\"dropped_as_needed\":207,\"tile_size_desired\":44398},{\"dropped_as_needed\":181,\"tile_size_desired\":35126}]",
"strategies": "[{\"dropped_as_needed\":219,\"tile_size_desired\":74734},{\"dropped_as_needed\":207,\"tile_size_desired\":44415},{\"dropped_as_needed\":181,\"tile_size_desired\":35130}]",
"type": "overlay",
"version": "2"
}, "features": [
@@ -9,7 +9,7 @@
"maxzoom": "1",
"minzoom": "0",
"name": "tests/ne_110m_populated_places/out/-z1_-M10000_--coalesce-smallest-as-needed.json.check.mbtiles",
"strategies": "[{\"dropped_by_rate\":145,\"coalesced_as_needed\":74,\"tile_size_desired\":32932},{\"coalesced_as_needed\":226,\"tile_size_desired\":44398}]",
"strategies": "[{\"dropped_by_rate\":145,\"coalesced_as_needed\":74,\"tile_size_desired\":32942},{\"coalesced_as_needed\":226,\"tile_size_desired\":44415}]",
"type": "overlay",
"version": "2"
}, "features": [
@@ -9,7 +9,7 @@
"maxzoom": "1",
"minzoom": "0",
"name": "tests/ne_110m_populated_places/out/-z1_-M10000_--drop-smallest-as-needed.json.check.mbtiles",
"strategies": "[{\"dropped_by_rate\":145,\"dropped_as_needed\":75,\"tile_size_desired\":32932},{\"dropped_as_needed\":204,\"tile_size_desired\":44398}]",
"strategies": "[{\"dropped_by_rate\":145,\"dropped_as_needed\":75,\"tile_size_desired\":32942},{\"dropped_as_needed\":204,\"tile_size_desired\":44415}]",
"type": "overlay",
"version": "2"
}, "features": [
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+24 -6
View File
@@ -434,7 +434,8 @@ struct tileset_reader {
// 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;
std::vector<std::pair<unsigned, unsigned>> overzoomed_tiles; // tiles at `zoom`
std::vector<std::pair<unsigned, unsigned>> next_overzoomed_tiles; // tiles at `zoom + 1`
bool overzoom_consumed_at_this_zoom = false;
// parent tile cache
@@ -642,12 +643,24 @@ struct tileset_reader {
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));
// If this is the first overzoomed level, we don't know yet
// which tiles will be useful, so spell out all 4 child tiles
// from each parent tile.
//
// If it is further overzoomed than that, we have a list of
// which child tiles will have features in them, so use that.
if (zoom == maxzoom_so_far + 1) {
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));
}
}
}
} else {
overzoomed_tiles = std::move(next_overzoomed_tiles);
next_overzoomed_tiles.clear();
}
std::sort(overzoomed_tiles.begin(), overzoomed_tiles.end(), tilecmp);
@@ -769,7 +782,7 @@ struct tileset_reader {
}
if (source.layers.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>(), false);
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>(), false, &next_overzoomed_tiles);
return ret;
}
@@ -1574,6 +1587,11 @@ int main(int argc, char **argv) {
}
generator_options.append(commandline);
// don't trust the source metadata maxzooms;
// claim the zooms that were actually written
st.maxzoom = INT_MIN;
st.minzoom = INT_MAX;
for (auto &l : layermap) {
if (l.second.minzoom < st.minzoom) {
st.minzoom = l.second.minzoom;
+85 -53
View File
@@ -1898,6 +1898,19 @@ void add_sample_to(std::vector<T> &vals, T val, size_t &increment, size_t seq) {
}
}
void coalesce_geometry(partial &p, serial_feature &sf) {
// if the geometry being coalesced on is an exact duplicate
// of an existing geometry, just drop it
for (size_t i = 0; i < p.geoms.size(); i++) {
if (p.geoms[i] == sf.geometry) {
return;
}
}
p.geoms.push_back(sf.geometry);
}
long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, char *stringpool, int z, const unsigned tx, const unsigned ty, const int detail, int min_detail, sqlite3 *outdb, const char *outdir, int buffer, const char *fname, compressor **geomfile, int minzoom, int maxzoom, double todo, std::atomic<long long> *along, long long alongminus, double gamma, int child_shards, long long *pool_off, unsigned *initial_x, unsigned *initial_y, std::atomic<int> *running, double simplification, std::vector<std::map<std::string, layermap_entry>> *layermaps, std::vector<std::vector<std::string>> *layer_unmaps, size_t tiling_seg, size_t pass, unsigned long long mingap, long long minextent, double fraction, const char *prefilter, const char *postfilter, struct json_object *filter, write_tile_args *arg, atomic_strategy *strategy, bool compressed_input, struct node *shared_nodes_map, size_t nodepos) {
double merge_fraction = 1;
double mingap_fraction = 1;
@@ -2145,7 +2158,7 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
indices.push_back(sf.index);
}
if (sf.index - merge_previndex < mingap && find_partial(partials, sf, which_partial, layer_unmaps, LLONG_MAX)) {
partials[which_partial].geoms.push_back(sf.geometry);
coalesce_geometry(partials[which_partial], sf);
partials[which_partial].coalesced = true;
coalesced_area += sf.extent;
preserve_attributes(arg->attribute_accum, sf, stringpool, pool_off, partials[which_partial]);
@@ -2164,7 +2177,7 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
} else if (additional[A_COALESCE_SMALLEST_AS_NEEDED]) {
add_sample_to(extents, sf.extent, extents_increment, seq);
if (minextent != 0 && sf.extent + coalesced_area <= minextent && find_partial(partials, sf, which_partial, layer_unmaps, minextent)) {
partials[which_partial].geoms.push_back(sf.geometry);
coalesce_geometry(partials[which_partial], sf);
partials[which_partial].coalesced = true;
coalesced_area += sf.extent;
preserve_attributes(arg->attribute_accum, sf, stringpool, pool_off, partials[which_partial]);
@@ -2188,7 +2201,7 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
fraction_accum += fraction;
if (fraction_accum < 1 && find_partial(partials, sf, which_partial, layer_unmaps, LLONG_MAX)) {
if (additional[A_COALESCE_FRACTION_AS_NEEDED]) {
partials[which_partial].geoms.push_back(sf.geometry);
coalesce_geometry(partials[which_partial], sf);
partials[which_partial].coalesced = true;
coalesced_area += sf.extent;
strategy->coalesced_as_needed++;
@@ -2290,11 +2303,19 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
for (; simplified_geometry_through < partials.size(); simplified_geometry_through++) {
simplify_partial(&partials[simplified_geometry_through], dv, shared_nodes_map, nodepos);
for (auto &g : partials[simplified_geometry_through].geoms) {
if (partials[simplified_geometry_through].t == VT_POLYGON) {
// don't scale up because this is still world coordinates
g = clean_or_clip_poly(g, 0, 0, false, false);
if (partials[simplified_geometry_through].t == VT_POLYGON) {
drawvec to_clean;
for (auto &g : partials[simplified_geometry_through].geoms) {
for (auto &d : g) {
to_clean.push_back(d);
}
}
// don't scale up because this is still world coordinates
to_clean = clean_or_clip_poly(to_clean, 0, 0, false, false);
partials[simplified_geometry_through].geoms.clear();
partials[simplified_geometry_through].geoms.push_back(to_clean);
}
}
@@ -2430,7 +2451,8 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
}
}
for (size_t i = 0; i < partials.size(); i++) {
std::reverse(partials.begin(), partials.end());
for (ssize_t i = partials.size() - 1; i >= 0; i--) {
std::vector<drawvec> &pgeoms = partials[i].geoms;
signed char t = partials[i].t;
long long original_seq = partials[i].original_seq;
@@ -2474,6 +2496,8 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
l->second.push_back(c);
}
}
partials.erase(partials.begin() + i);
}
partials.clear();
@@ -2494,56 +2518,64 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
std::sort(layer_features.begin(), layer_features.end());
}
std::vector<coalesce> out;
if (layer_features.size() > 0) {
out.push_back(layer_features[0]);
}
for (size_t x = 1; x < layer_features.size(); x++) {
size_t y = out.size() - 1;
if (additional[A_COALESCE]) {
// coalesce adjacent identical features if requested
#if 0
if (out.size() > 0 && coalcmp(&layer_features[x], &out[y]) < 0) {
fprintf(stderr, "\nfeature out of order\n");
size_t out = 0;
if (layer_features.size() > 0) {
out++;
}
#endif
if (additional[A_COALESCE] && out.size() > 0 && coalcmp(&layer_features[x], &out[y]) == 0) {
for (size_t g = 0; g < layer_features[x].geom.size(); g++) {
out[y].geom.push_back(layer_features[x].geom[g]);
}
out[y].coalesced = true;
} else {
out.push_back(layer_features[x]);
}
}
for (size_t x = 1; x < layer_features.size(); x++) {
size_t y = out - 1;
layer_features = out;
out.clear();
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);
if (!(prevent[P_SIMPLIFY] || (z == maxzoom && prevent[P_SIMPLIFY_LOW]))) {
// XXX revisit: why does this not take zoom into account?
layer_features[x].geom = simplify_lines(layer_features[x].geom, 32, 0, 0, 0,
!(prevent[P_CLIPPING] || prevent[P_DUPLICATION]), simplification, layer_features[x].type == VT_POLYGON ? 4 : 0, shared_nodes, NULL, 0);
if (out > 0 && coalcmp(&layer_features[x], &layer_features[y]) == 0) {
for (size_t g = 0; g < layer_features[x].geom.size(); g++) {
layer_features[y].geom.push_back(layer_features[x].geom[g]);
}
layer_features[y].coalesced = true;
} else {
layer_features[out++] = layer_features[x];
}
}
if (layer_features[x].type == VT_POLYGON) {
if (layer_features[x].coalesced) {
// we can try scaling up because this is tile coordinates
layer_features[x].geom = clean_or_clip_poly(layer_features[x].geom, 0, 0, false, true);
layer_features.resize(out);
}
{
// clean up coalesced linestrings by simplification
// and coalesced polygons by cleaning
//
// then close polygons
size_t out = 0;
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);
if (!(prevent[P_SIMPLIFY] || (z == maxzoom && prevent[P_SIMPLIFY_LOW]))) {
// XXX revisit: why does this not take zoom into account?
layer_features[x].geom = simplify_lines(layer_features[x].geom, 32, 0, 0, 0,
!(prevent[P_CLIPPING] || prevent[P_DUPLICATION]), simplification, layer_features[x].type == VT_POLYGON ? 4 : 0, shared_nodes, NULL, 0);
}
}
layer_features[x].geom = close_poly(layer_features[x].geom);
if (layer_features[x].type == VT_POLYGON) {
if (layer_features[x].coalesced) {
// we can try scaling up because this is tile coordinates
layer_features[x].geom = clean_or_clip_poly(layer_features[x].geom, 0, 0, false, true);
}
layer_features[x].geom = close_poly(layer_features[x].geom);
}
if (layer_features[x].geom.size() > 0) {
layer_features[out++] = layer_features[x];
}
}
if (layer_features[x].geom.size() > 0) {
out.push_back(layer_features[x]);
}
layer_features.resize(out);
}
layer_features = out;
if (prevent[P_INPUT_ORDER]) {
std::sort(layer_features.begin(), layer_features.end(), preservecmp);
@@ -2565,16 +2597,19 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
}
mvt_tile tile;
size_t totalsize = 0;
for (auto layer_iterator = layers.begin(); layer_iterator != layers.end(); ++layer_iterator) {
std::vector<coalesce> &layer_features = layer_iterator->second;
totalsize += layer_features.size();
mvt_layer layer;
layer.name = layer_iterator->first;
layer.version = 2;
layer.extent = 1 << tile_detail;
for (size_t x = 0; x < layer_features.size(); x++) {
std::reverse(layer_features.begin(), layer_features.end());
for (ssize_t x = layer_features.size() - 1; x >= 0; x--) {
mvt_feature feature;
if (layer_features[x].type == VT_LINE || layer_features[x].type == VT_POLYGON) {
@@ -2622,6 +2657,7 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
}
layer.features.push_back(feature);
layer_features.erase(layer_features.begin() + x);
}
if (layer.features.size() > 0) {
@@ -2638,12 +2674,6 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
fprintf(stderr, "Is your data in the wrong projection? It should be in WGS84/EPSG:4326.\n");
}
size_t totalsize = 0;
for (auto layer_iterator = layers.begin(); layer_iterator != layers.end(); ++layer_iterator) {
std::vector<coalesce> &layer_features = layer_iterator->second;
totalsize += layer_features.size();
}
size_t passes = pass + 1;
double progress = floor(((((*geompos_in + *along - alongminus) / (double) todo) + pass) / passes + z) / (maxzoom + 1) * 1000) / 10;
if (progress >= oprogress + 0.1) {
@@ -2744,6 +2774,8 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
std::string compressed;
std::string pbf = tile.encode();
tile.layers.clear();
if (!prevent[P_TILE_COMPRESSION]) {
compress(pbf, compressed, true);
} else {
+1 -1
View File
@@ -1,6 +1,6 @@
#ifndef VERSION_HPP
#define VERSION_HPP
#define VERSION "v2.35.0"
#define VERSION "v2.40.0"
#endif