Skip to content

v0.2.53..v0.2.54 changeset ParallelBoundedApiReader.cpp

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/io/ParallelBoundedApiReader.cpp b/hoot-core/src/main/cpp/hoot/core/io/ParallelBoundedApiReader.cpp
index bc3cb77..628e461 100644
--- a/hoot-core/src/main/cpp/hoot/core/io/ParallelBoundedApiReader.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/io/ParallelBoundedApiReader.cpp
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 
 #include "ParallelBoundedApiReader.h"
@@ -31,6 +31,7 @@
 #include <hoot/core/io/HootNetworkRequest.h>
 #include <hoot/core/util/FileUtils.h>
 #include <hoot/core/util/GeometryUtils.h>
+#include <hoot/core/util/HootNetworkUtils.h>
 #include <hoot/core/util/StringUtils.h>
 
 //  Qt
@@ -206,7 +207,7 @@ void ParallelBoundedApiReader::_process()
       QString result = QString::fromUtf8(request.getResponseContent().data());
       switch (status)
       {
-      case 200:
+      case HttpResponseCode::HTTP_OK:
         //  Store the result and increment the number of results received
         _resultsMutex.lock();
         _resultsList.append(result);
@@ -215,7 +216,7 @@ void ParallelBoundedApiReader::_process()
         //  Write out a "debug map" for each result that comes in
         writeDebugMap(result, "bounded-reader-result");
         break;
-      case 400:
+      case HttpResponseCode::HTTP_BAD_REQUEST:
         //  Split the envelope in quarters and push them all back on the queue
         {
           double lon1 = envelope.getMinX();
Clone this wiki locally