mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:30:05 +00:00
USe a common default geodesic object instead of duplicate copies.
All used functions are constant, and don't require unique instantiations for thread safety.
This commit is contained in:
parent
4a31cf6d3e
commit
90c8c0183a
10 changed files with 89 additions and 47 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include <scwx/qt/view/level3_raster_view.hpp>
|
||||
#include <scwx/qt/util/geographic_lib.hpp>
|
||||
#include <scwx/common/constants.hpp>
|
||||
#include <scwx/util/logger.hpp>
|
||||
#include <scwx/util/threads.hpp>
|
||||
|
|
@ -7,7 +8,6 @@
|
|||
|
||||
#include <boost/range/irange.hpp>
|
||||
#include <boost/timer/timer.hpp>
|
||||
#include <GeographicLib/Geodesic.hpp>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
|
|
@ -202,12 +202,12 @@ void Level3RasterView::ComputeSweep()
|
|||
p->longitude_ = descriptionBlock->longitude_of_radar();
|
||||
p->range_ = descriptionBlock->range();
|
||||
p->sweepTime_ =
|
||||
util::TimePoint(descriptionBlock->volume_scan_date(),
|
||||
descriptionBlock->volume_scan_start_time() * 1000);
|
||||
scwx::util::TimePoint(descriptionBlock->volume_scan_date(),
|
||||
descriptionBlock->volume_scan_start_time() * 1000);
|
||||
p->vcp_ = descriptionBlock->volume_coverage_pattern();
|
||||
|
||||
GeographicLib::Geodesic geodesic(GeographicLib::Constants::WGS84_a(),
|
||||
GeographicLib::Constants::WGS84_f());
|
||||
const GeographicLib::Geodesic& geodesic =
|
||||
util::GeographicLib::DefaultGeodesic();
|
||||
|
||||
const uint16_t xResolution = descriptionBlock->x_resolution_raw();
|
||||
const uint16_t yResolution = descriptionBlock->y_resolution_raw();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue