diff options
author | Evan Siroky <evan.siroky@yahoo.com> | 2016-07-07 16:44:01 -0700 |
---|---|---|
committer | Evan Siroky <evan.siroky@yahoo.com> | 2016-07-07 16:44:01 -0700 |
commit | 783532da1235f9a91952761396d3709ba51997fa (patch) | |
tree | 47890be9823ca484a277c15048124b8e03c71ded | |
parent | becb56e871d8130aa5c7c8f902b7d0b80305465f (diff) | |
download | timezone-boundary-builder-783532da1235f9a91952761396d3709ba51997fa.tar.gz |
America/Chicago
- Able to work with precision reduction in experimental build of jsts
that should ultimately be fixed in jsts 1.2.1.
- Updating intersecting polygon to work as best as possible w/ efele and
osm boundaries. It's slightly off near the town of Mexico Beach, FL.
-rw-r--r-- | index.js | 2 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | timezones.json | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -57,7 +57,7 @@ debugGeo = function(op, a, b) { } catch(e) { if(e.name === 'TopologyException') { console.log('retry with GeometryPrecisionReducer') - var precisionModel = new jsts.geom.PrecisionModel(6), + var precisionModel = new jsts.geom.PrecisionModel(10000), precisionReducer = new jsts.precision.GeometryPrecisionReducer(precisionModel) a = precisionReducer.reduce(a) diff --git a/package.json b/package.json index 7c2373e..aff726c 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "license": "MIT", "dependencies": { "async": "^2.0.0-rc.5", - "jsts": "^1.1.2", + "jsts": "^1.2.1", "query-overpass": "^1.1.0", "shpjs": "^3.3.2", "turf-polygon": "^1.0.3" diff --git a/timezones.json b/timezones.json index 6e795e7..203cea3 100644 --- a/timezones.json +++ b/timezones.json @@ -207,7 +207,7 @@ }, { "op": "intersect", "source": "manual-polygon", - "data": [[[-104.150390625,49.66762782262192],[-105.3369140625,29.420460341013133],[-97.119140625,25.16517336866393],[-84.605712890625,29.248063243796576],[-83.14453125,37.16031654673677],[-85.7373046875,49.439556958940855],[-104.150390625,49.66762782262192]]] + "data": [[[-95,49.5],[-89.48193,48.1],[-89.48193,48],[-85,45],[-85,40.5],[-86.73,38.5],[-86.73,38.22],[-86.4,38],[-83,37],[-84.5,30],[-85,29.75],[-85.15,29.75],[-85.38921,29.92616],[-85.3891,29.92404],[-85.774,29.769],[-97,25],[-105,28],[-105,30.63],[-104.95,30.66],[-104.95,49],[-95,49.5]]] }, { "op": "difference", "source": "efele", |