Skip to content

v0.2.49..v0.2.50 changeset OsmApiReader.cpp

Garret Voltz edited this page Nov 6, 2019 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/io/OsmApiReader.cpp b/hoot-core/src/main/cpp/hoot/core/io/OsmApiReader.cpp
index b0be5e1..d6ae922 100644
--- a/hoot-core/src/main/cpp/hoot/core/io/OsmApiReader.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/io/OsmApiReader.cpp
@@ -72,6 +72,9 @@ void OsmApiReader::setConfiguration(const Settings& conf)
   ConfigOptions configOptions(conf);
   //  Get the bounds of the query
   setBounds(GeometryUtils::envelopeFromConfigString(configOptions.getConvertBoundingBox()));
+  setMaxThreads(configOptions.getReaderHttpBboxThreadCount());
+  setCoordGridSize(configOptions.getReaderHttpBboxMaxSize());
+  setMaxGridSize(configOptions.getReaderHttpBboxMaxDownloadSize());
 }
 
 void OsmApiReader::setUseDataSourceIds(bool /*useDataSourceIds*/)
@@ -103,7 +106,7 @@ bool OsmApiReader::isSupported(const QString& url)
 void OsmApiReader::open(const QString& url)
 {
   //  Save off the URL
-  _url = url;
+  OsmMapReader::open(url);
 }
 
 void OsmApiReader::read(const OsmMapPtr& map)
@@ -122,6 +125,7 @@ void OsmApiReader::read(const OsmMapPtr& map)
   _numRead = 0;
   finalizePartial();
   _map = map;
+  _map->appendSource(_url);
 
   //  Spin up the threads
   beginRead(_url, _bounds);
Clone this wiki locally