Skip to content

v0.2.54..v0.2.55 changeset Polygon.js

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/rules/Polygon.js b/rules/Polygon.js
index 9a5743a..2670f29 100644
--- a/rules/Polygon.js
+++ b/rules/Polygon.js
@@ -6,18 +6,23 @@
 
 exports.candidateDistanceSigma = 1.0; // 1.0 * (CE95 + Worst CE95);
 exports.description = "Matches polygons";
+
 // This matcher only sets match/miss/review values to 1.0, therefore the score thresholds aren't used. 
 // If that ever changes, then the generic score threshold configuration options used below should 
 // be replaced with custom score threshold configuration options.
 exports.matchThreshold = parseFloat(hoot.get("conflate.match.threshold.default"));
 exports.missThreshold = parseFloat(hoot.get("conflate.miss.threshold.default"));
 exports.reviewThreshold = parseFloat(hoot.get("conflate.review.threshold.default"));
+
 exports.searchRadius = parseFloat(hoot.get("search.radius.generic.polygon"));
 exports.tagThreshold = parseFloat(hoot.get("generic.polygon.tag.threshold"));
 exports.experimental = false;
 exports.baseFeatureType = "Polygon";
 exports.writeMatchedBy = hoot.get("writer.include.matched.by.tag");
 exports.geometryType = "polygon";
+
+// This is needed for disabling superfluous conflate ops. In the future, it may also
+// be used to replace exports.isMatchCandidate (see #3047).
 exports.matchCandidateCriterion = "hoot::PolygonCriterion";
 
 var overlapExtractor = 
@@ -27,9 +32,6 @@ var overlapExtractor =
  * Returns true if e is a candidate for a match. Implementing this method is
  * optional, but may dramatically increase speed if you can cull some features
  * early on. E.g. no need to check nodes for a polygon to polygon match.
- *
- * exports.matchCandidateCriterion takes precedence over this function and must
- * be commented out before using it.
  */
 exports.isMatchCandidate = function(map, e)
 {
Clone this wiki locally