Skip to content

v0.2.53..v0.2.54 changeset PoiPolygonDistanceExtractor.cpp

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/poi-polygon/PoiPolygonDistanceExtractor.cpp b/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/poi-polygon/PoiPolygonDistanceExtractor.cpp
index 52f183d..3199557 100644
--- a/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/poi-polygon/PoiPolygonDistanceExtractor.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/poi-polygon/PoiPolygonDistanceExtractor.cpp
@@ -54,23 +54,23 @@ double PoiPolygonDistanceExtractor::extract(const OsmMap& /*map*/, const ConstEl
     throw HootException("No cache passed to extractor.");
   }
 
-  try
-  {
+  //try
+  //{
     LOG_VART(poi->getElementId());
     LOG_VART(poly->getElementId());
 
     //to suppress the ElementConverter poly warnings...warnings worth looking into at some point
-    DisableLog dl(Log::Warn);
+    //DisableLog dl(Log::Warn);
 
     return _infoCache->getDistance(poly, poi);
-  }
-  catch (const geos::util::TopologyException& e)
-  {
-    LOG_TRACE(
-      "Feature(s) passed to PoiPolygonMatchCreator caused topology exception on conversion "
-      "to a geometry: " << poly->toString() << "\n" << poi->toString() << "\n" << e.what());
-    return -1.0;
-  }
+//  }
+//  catch (const geos::util::TopologyException& e)
+//  {
+//    LOG_TRACE(
+//      "Feature(s) passed to PoiPolygonMatchCreator caused topology exception on conversion "
+//      "to a geometry: " << poly->toString() << "\n" << poi->toString() << "\n" << e.what());
+//    return -1.0;
+//  }
 }
 
 }
Clone this wiki locally