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.
diff --git a/index.js b/index.js
index 7ca6ceb..8e8af6c 100644
--- a/index.js
+++ b/index.js
@@ -57,7 +57,7 @@
} 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)