aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorEvan Siroky <evan.siroky@yahoo.com>2016-07-07 16:44:01 -0700
committerEvan Siroky <evan.siroky@yahoo.com>2016-07-07 16:44:01 -0700
commit783532da1235f9a91952761396d3709ba51997fa (patch)
tree47890be9823ca484a277c15048124b8e03c71ded /index.js
parentbecb56e871d8130aa5c7c8f902b7d0b80305465f (diff)
downloadtimezone-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.
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index 7ca6ceb..8e8af6c 100644
--- a/index.js
+++ b/index.js
@@ -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)