-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.54..v0.2.55 changeset PointPolygon.js
Garret Voltz edited this page Aug 14, 2020
·
1 revision
diff --git a/rules/PointPolygon.js b/rules/PointPolygon.js
index 9c2ee1e..698d763 100644
--- a/rules/PointPolygon.js
+++ b/rules/PointPolygon.js
@@ -7,12 +7,14 @@
exports.candidateDistanceSigma = 1.0; // 1.0 * (CE95 + Worst CE95);
exports.description = "Matches generic points with polygons";
exports.experimental = false;
+
// 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.point.polygon"));
exports.tagThreshold = parseFloat(hoot.get("generic.point.polygon.tag.threshold"));
exports.writeDebugTags = hoot.get("writer.include.debug.tags");
@@ -20,6 +22,9 @@ exports.writeDebugTags = hoot.get("writer.include.debug.tags");
// Logic has been added to ScriptMatchCreator to handle this, so they can remain empty.
//exports.baseFeatureType = ""; //
//exports.geometryType = "";
+
+// 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::PointCriterion;hoot::PolygonCriterion";
var distanceExtractor =
@@ -29,9 +34,6 @@ var distanceExtractor =
* 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)
{