Back to floating point Douglas-Peucker to fix undersimplification

This commit is contained in:
Erica Fischer
2023-09-14 11:22:05 -07:00
parent afef561cf0
commit 01d1de243c
76 changed files with 20061 additions and 20031 deletions
+4 -4
View File
@@ -27,7 +27,7 @@
,
{ "type": "FeatureCollection", "properties": { "zoom": 2, "x": 3, "y": 1 }, "features": [
{ "type": "FeatureCollection", "properties": { "layer": "in", "version": 2, "extent": 4096 }, "features": [
{ "type": "Feature", "properties": { "adm1_code": "FSM-4943", "OBJECTID_1": 6464, "diss_me": 4943, "adm1_cod_1": "FSM-4943", "iso_3166_2": "FM-YAP", "wikipedia": "http://en.wikipedia.org/wiki/Yap_State", "iso_a2": "FM", "adm0_sr": 5, "name": "Yap", "code_hasc": "FM.YA", "provnum_ne": 0, "gadm_level": 0, "check_me": 0, "scalerank": 10, "datarank": 10, "area_sqkm": 0, "sameascity": -99, "labelrank": 20, "featurecla": "Admin-1 scale rank", "name_len": 3, "mapcolor9": 4, "mapcolor13": 13, "fips": "FM04", "woe_id": 2345343, "woe_label": "Yap, FM, Federated States of Micronesia", "woe_name": "Yap", "latitude": 9.581009, "longitude": 138.114, "sov_a3": "FSM", "adm0_a3": "FSM", "adm0_label": 5, "admin": "Federated States of Micronesia", "geonunit": "Federated States of Micronesia", "gu_a3": "FSM", "gn_id": 2081175, "gn_name": "State of Yap", "gns_id": -3741502, "gns_name": "Yap, State of", "gn_level": 1, "gn_a1_code": "FM.04", "gns_level": 1, "gns_adm1": "FM04" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 143.942871, 7.406048 ], [ 143.942871, 7.362467 ], [ 143.898926, 7.362467 ], [ 143.898926, 7.406048 ], [ 143.942871, 7.406048 ] ] ], [ [ [ 138.186035, 9.579084 ], [ 138.186035, 9.535749 ], [ 138.208008, 9.535749 ], [ 138.208008, 9.514079 ], [ 138.186035, 9.514079 ], [ 138.186035, 9.492408 ], [ 138.164062, 9.514079 ], [ 138.164062, 9.535749 ], [ 138.142090, 9.514079 ], [ 138.076172, 9.427387 ], [ 138.076172, 9.405710 ], [ 138.054199, 9.427387 ], [ 138.076172, 9.470736 ], [ 138.098145, 9.492408 ], [ 138.098145, 9.514079 ], [ 138.120117, 9.514079 ], [ 138.120117, 9.557417 ], [ 138.142090, 9.579084 ], [ 138.142090, 9.557417 ], [ 138.164062, 9.557417 ], [ 138.186035, 9.579084 ] ] ] ] } }
{ "type": "Feature", "properties": { "adm1_code": "FSM-4943", "OBJECTID_1": 6464, "diss_me": 4943, "adm1_cod_1": "FSM-4943", "iso_3166_2": "FM-YAP", "wikipedia": "http://en.wikipedia.org/wiki/Yap_State", "iso_a2": "FM", "adm0_sr": 5, "name": "Yap", "code_hasc": "FM.YA", "provnum_ne": 0, "gadm_level": 0, "check_me": 0, "scalerank": 10, "datarank": 10, "area_sqkm": 0, "sameascity": -99, "labelrank": 20, "featurecla": "Admin-1 scale rank", "name_len": 3, "mapcolor9": 4, "mapcolor13": 13, "fips": "FM04", "woe_id": 2345343, "woe_label": "Yap, FM, Federated States of Micronesia", "woe_name": "Yap", "latitude": 9.581009, "longitude": 138.114, "sov_a3": "FSM", "adm0_a3": "FSM", "adm0_label": 5, "admin": "Federated States of Micronesia", "geonunit": "Federated States of Micronesia", "gu_a3": "FSM", "gn_id": 2081175, "gn_name": "State of Yap", "gns_id": -3741502, "gns_name": "Yap, State of", "gn_level": 1, "gn_a1_code": "FM.04", "gns_level": 1, "gns_adm1": "FM04" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 143.942871, 7.406048 ], [ 143.942871, 7.362467 ], [ 143.898926, 7.362467 ], [ 143.898926, 7.406048 ], [ 143.942871, 7.406048 ] ] ], [ [ [ 138.164062, 9.579084 ], [ 138.186035, 9.535749 ], [ 138.229980, 9.557417 ], [ 138.186035, 9.492408 ], [ 138.164062, 9.535749 ], [ 138.076172, 9.405710 ], [ 138.054199, 9.427387 ], [ 138.142090, 9.579084 ], [ 138.142090, 9.535749 ], [ 138.164062, 9.579084 ] ] ] ] } }
] }
] }
,
@@ -39,15 +39,15 @@
,
{ "type": "FeatureCollection", "properties": { "zoom": 3, "x": 7, "y": 4 }, "features": [
{ "type": "FeatureCollection", "properties": { "layer": "in", "version": 2, "extent": 4096 }, "features": [
{ "type": "Feature", "properties": { "adm1_code": "KIR+99?", "OBJECTID_1": 3643, "diss_me": 10097, "adm1_cod_1": "KIR+99?", "iso_3166_2": "KI-", "iso_a2": "KI", "adm0_sr": 5, "code_hasc": "-99", "note": "KIR-99 (Kiribati minor island)", "provnum_ne": 0, "gadm_level": 0, "check_me": 0, "scalerank": 11, "datarank": 11, "area_sqkm": 0, "sameascity": -99, "labelrank": 20, "featurecla": "Admin-1 minor island", "name_len": 0, "mapcolor9": 6, "mapcolor13": 12, "woe_id": -99, "latitude": -4.689669, "longitude": -174.511, "sov_a3": "KIR", "adm0_a3": "KIR", "adm0_label": 7, "admin": "Kiribati", "geonunit": "Kiribati", "gu_a3": "KIR", "gn_id": 0, "gns_id": 0, "gn_level": 0, "gn_a1_code": "KI.", "gns_level": 0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 173.353271, 0.274657 ], [ 173.353271, 0.252685 ], [ 173.331299, 0.252685 ], [ 173.331299, 0.274657 ], [ 173.353271, 0.274657 ] ] ], [ [ [ 173.935547, 0.395505 ], [ 173.957520, 0.351560 ], [ 173.957520, 0.329588 ], [ 173.935547, 0.307616 ], [ 173.935547, 0.395505 ] ] ] ] } }
{ "type": "Feature", "properties": { "adm1_code": "KIR+99?", "OBJECTID_1": 3643, "diss_me": 10097, "adm1_cod_1": "KIR+99?", "iso_3166_2": "KI-", "iso_a2": "KI", "adm0_sr": 5, "code_hasc": "-99", "note": "KIR-99 (Kiribati minor island)", "provnum_ne": 0, "gadm_level": 0, "check_me": 0, "scalerank": 11, "datarank": 11, "area_sqkm": 0, "sameascity": -99, "labelrank": 20, "featurecla": "Admin-1 minor island", "name_len": 0, "mapcolor9": 6, "mapcolor13": 12, "woe_id": -99, "latitude": -4.689669, "longitude": -174.511, "sov_a3": "KIR", "adm0_a3": "KIR", "adm0_label": 7, "admin": "Kiribati", "geonunit": "Kiribati", "gu_a3": "KIR", "gn_id": 0, "gns_id": 0, "gn_level": 0, "gn_a1_code": "KI.", "gns_level": 0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 173.353271, 0.274657 ], [ 173.353271, 0.252685 ], [ 173.331299, 0.252685 ], [ 173.331299, 0.274657 ], [ 173.353271, 0.274657 ] ] ], [ [ [ 173.935547, 0.395505 ], [ 173.957520, 0.351560 ], [ 173.935547, 0.307616 ], [ 173.935547, 0.395505 ] ] ] ] } }
] }
] }
,
{ "type": "FeatureCollection", "properties": { "zoom": 3, "x": 7, "y": 3 }, "features": [
{ "type": "FeatureCollection", "properties": { "layer": "in", "version": 2, "extent": 4096 }, "features": [
{ "type": "Feature", "properties": { "adm1_code": "KIR+99?", "OBJECTID_1": 3643, "diss_me": 10097, "adm1_cod_1": "KIR+99?", "iso_3166_2": "KI-", "iso_a2": "KI", "adm0_sr": 5, "code_hasc": "-99", "note": "KIR-99 (Kiribati minor island)", "provnum_ne": 0, "gadm_level": 0, "check_me": 0, "scalerank": 11, "datarank": 11, "area_sqkm": 0, "sameascity": -99, "labelrank": 20, "featurecla": "Admin-1 minor island", "name_len": 0, "mapcolor9": 6, "mapcolor13": 12, "woe_id": -99, "latitude": -4.689669, "longitude": -174.511, "sov_a3": "KIR", "adm0_a3": "KIR", "adm0_label": 7, "admin": "Kiribati", "geonunit": "Kiribati", "gu_a3": "KIR", "gn_id": 0, "gns_id": 0, "gn_level": 0, "gn_a1_code": "KI.", "gns_level": 0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 173.353271, 0.274657 ], [ 173.353271, 0.252685 ], [ 173.331299, 0.252685 ], [ 173.331299, 0.274657 ], [ 173.353271, 0.274657 ] ] ], [ [ [ 173.935547, 0.395505 ], [ 173.957520, 0.351560 ], [ 173.957520, 0.329588 ], [ 173.935547, 0.307616 ], [ 173.935547, 0.395505 ] ] ] ] } }
{ "type": "Feature", "properties": { "adm1_code": "KIR+99?", "OBJECTID_1": 3643, "diss_me": 10097, "adm1_cod_1": "KIR+99?", "iso_3166_2": "KI-", "iso_a2": "KI", "adm0_sr": 5, "code_hasc": "-99", "note": "KIR-99 (Kiribati minor island)", "provnum_ne": 0, "gadm_level": 0, "check_me": 0, "scalerank": 11, "datarank": 11, "area_sqkm": 0, "sameascity": -99, "labelrank": 20, "featurecla": "Admin-1 minor island", "name_len": 0, "mapcolor9": 6, "mapcolor13": 12, "woe_id": -99, "latitude": -4.689669, "longitude": -174.511, "sov_a3": "KIR", "adm0_a3": "KIR", "adm0_label": 7, "admin": "Kiribati", "geonunit": "Kiribati", "gu_a3": "KIR", "gn_id": 0, "gns_id": 0, "gn_level": 0, "gn_a1_code": "KI.", "gns_level": 0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 173.353271, 0.274657 ], [ 173.353271, 0.252685 ], [ 173.331299, 0.252685 ], [ 173.331299, 0.274657 ], [ 173.353271, 0.274657 ] ] ], [ [ [ 173.935547, 0.395505 ], [ 173.957520, 0.351560 ], [ 173.935547, 0.307616 ], [ 173.935547, 0.395505 ] ] ] ] } }
,
{ "type": "Feature", "properties": { "adm1_code": "FSM-4943", "OBJECTID_1": 6464, "diss_me": 4943, "adm1_cod_1": "FSM-4943", "iso_3166_2": "FM-YAP", "wikipedia": "http://en.wikipedia.org/wiki/Yap_State", "iso_a2": "FM", "adm0_sr": 5, "name": "Yap", "code_hasc": "FM.YA", "provnum_ne": 0, "gadm_level": 0, "check_me": 0, "scalerank": 10, "datarank": 10, "area_sqkm": 0, "sameascity": -99, "labelrank": 20, "featurecla": "Admin-1 scale rank", "name_len": 3, "mapcolor9": 4, "mapcolor13": 13, "fips": "FM04", "woe_id": 2345343, "woe_label": "Yap, FM, Federated States of Micronesia", "woe_name": "Yap", "latitude": 9.581009, "longitude": 138.114, "sov_a3": "FSM", "adm0_a3": "FSM", "adm0_label": 5, "admin": "Federated States of Micronesia", "geonunit": "Federated States of Micronesia", "gu_a3": "FSM", "gn_id": 2081175, "gn_name": "State of Yap", "gns_id": -3741502, "gns_name": "Yap, State of", "gn_level": 1, "gn_a1_code": "FM.04", "gns_level": 1, "gns_adm1": "FM04" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 138.186035, 9.579084 ], [ 138.186035, 9.535749 ], [ 138.208008, 9.535749 ], [ 138.208008, 9.514079 ], [ 138.186035, 9.514079 ], [ 138.186035, 9.492408 ], [ 138.164062, 9.514079 ], [ 138.164062, 9.535749 ], [ 138.142090, 9.514079 ], [ 138.076172, 9.405710 ], [ 138.054199, 9.427387 ], [ 138.076172, 9.470736 ], [ 138.098145, 9.492408 ], [ 138.098145, 9.514079 ], [ 138.120117, 9.514079 ], [ 138.120117, 9.557417 ], [ 138.142090, 9.579084 ], [ 138.142090, 9.557417 ], [ 138.164062, 9.557417 ], [ 138.164062, 9.579084 ], [ 138.186035, 9.579084 ] ] ] } }
{ "type": "Feature", "properties": { "adm1_code": "FSM-4943", "OBJECTID_1": 6464, "diss_me": 4943, "adm1_cod_1": "FSM-4943", "iso_3166_2": "FM-YAP", "wikipedia": "http://en.wikipedia.org/wiki/Yap_State", "iso_a2": "FM", "adm0_sr": 5, "name": "Yap", "code_hasc": "FM.YA", "provnum_ne": 0, "gadm_level": 0, "check_me": 0, "scalerank": 10, "datarank": 10, "area_sqkm": 0, "sameascity": -99, "labelrank": 20, "featurecla": "Admin-1 scale rank", "name_len": 3, "mapcolor9": 4, "mapcolor13": 13, "fips": "FM04", "woe_id": 2345343, "woe_label": "Yap, FM, Federated States of Micronesia", "woe_name": "Yap", "latitude": 9.581009, "longitude": 138.114, "sov_a3": "FSM", "adm0_a3": "FSM", "adm0_label": 5, "admin": "Federated States of Micronesia", "geonunit": "Federated States of Micronesia", "gu_a3": "FSM", "gn_id": 2081175, "gn_name": "State of Yap", "gns_id": -3741502, "gns_name": "Yap, State of", "gn_level": 1, "gn_a1_code": "FM.04", "gns_level": 1, "gns_adm1": "FM04" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 138.186035, 9.579084 ], [ 138.186035, 9.535749 ], [ 138.229980, 9.557417 ], [ 138.208008, 9.514079 ], [ 138.186035, 9.514079 ], [ 138.186035, 9.492408 ], [ 138.164062, 9.535749 ], [ 138.076172, 9.427387 ], [ 138.076172, 9.405710 ], [ 138.054199, 9.427387 ], [ 138.098145, 9.514079 ], [ 138.120117, 9.514079 ], [ 138.120117, 9.557417 ], [ 138.142090, 9.579084 ], [ 138.142090, 9.535749 ], [ 138.164062, 9.579084 ], [ 138.186035, 9.579084 ] ] ] } }
] }
] }
,