Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed May 2, 2019
2 parents 19d73a4 + b757697 commit d865c04
Show file tree
Hide file tree
Showing 27 changed files with 192 additions and 338 deletions.
20 changes: 10 additions & 10 deletions filters/ChipperFilter.cpp
Expand Up @@ -91,6 +91,15 @@ PointViewSet ChipperFilter::run(PointViewPtr view)
return m_outViews;

m_inView = view;
m_partitions.resize(0);
m_xvec.resize(0);
m_yvec.resize(0);
m_spare.resize(view->size());
m_outViews.clear();

m_xvec.reserve(view->size());
m_yvec.reserve(view->size());

load(*view.get(), m_xvec, m_yvec, m_spare);
partition(m_xvec.size());
decideSplit(m_xvec, m_yvec, m_spare, 0, m_partitions.size() - 1);
Expand All @@ -101,13 +110,6 @@ PointViewSet ChipperFilter::run(PointViewPtr view)
void ChipperFilter::load(PointView& view, ChipRefList& xvec, ChipRefList& yvec,
ChipRefList& spare)
{
point_count_t idx;
std::vector<ChipPtRef>::iterator it;

xvec.reserve(view.size());
yvec.reserve(view.size());
spare.resize(view.size());

for (PointId i = 0; i < view.size(); ++i)
{
ChipPtRef xref;
Expand All @@ -127,7 +129,7 @@ void ChipperFilter::load(PointView& view, ChipRefList& xvec, ChipRefList& yvec,
std::stable_sort(xvec.begin(), xvec.end());
for (size_t i = 0; i < xvec.size(); ++i)
{
idx = xvec[i].m_ptindex;
point_count_t idx = xvec[i].m_ptindex;
yvec[idx].m_oindex = i;
}

Expand All @@ -140,8 +142,6 @@ void ChipperFilter::load(PointView& view, ChipRefList& xvec, ChipRefList& yvec,
}




#ifdef _WIN32
inline long lround(double d)
{
Expand Down
2 changes: 1 addition & 1 deletion filters/CropFilter.cpp
Expand Up @@ -34,11 +34,11 @@

#include "CropFilter.hpp"

#include <pdal/Bounds.hpp>
#include <pdal/GDALUtils.hpp>
#include <pdal/PointView.hpp>
#include <pdal/StageFactory.hpp>
#include <pdal/Polygon.hpp>
#include <pdal/util/Bounds.hpp>
#include <pdal/util/ProgramArgs.hpp>

#include "private/Point.hpp"
Expand Down
2 changes: 1 addition & 1 deletion io/EptReader.hpp
Expand Up @@ -41,9 +41,9 @@
#include <mutex>
#include <set>

#include <pdal/Bounds.hpp>
#include <pdal/Reader.hpp>
#include <pdal/Streamable.hpp>
#include <pdal/util/Bounds.hpp>

#include <nlohmann/json.hpp>

Expand Down
2 changes: 1 addition & 1 deletion io/GDALWriter.hpp
Expand Up @@ -34,10 +34,10 @@

#include <algorithm>

#include <pdal/Bounds.hpp>
#include <pdal/FlexWriter.hpp>
#include <pdal/PointView.hpp>
#include <pdal/Streamable.hpp>
#include <pdal/util/Bounds.hpp>
#include <pdal/util/ProgramArgs.hpp>

namespace pdal
Expand Down
2 changes: 1 addition & 1 deletion io/LasHeader.hpp
Expand Up @@ -40,7 +40,7 @@

#include <pdal/Dimension.hpp>
#include <pdal/Log.hpp>
#include <pdal/util/Box.hpp>
#include <pdal/util/Bounds.hpp>
#include <pdal/util/Uuid.hpp>
#include <pdal/pdal_config.hpp>
#include <pdal/gitsha.h>
Expand Down
2 changes: 1 addition & 1 deletion io/private/EptSupport.hpp
Expand Up @@ -52,7 +52,7 @@
#include <pdal/PointLayout.hpp>
#include <pdal/PointTable.hpp>
#include <pdal/Stage.hpp>
#include <pdal/util/Box.hpp>
#include <pdal/util/Bounds.hpp>
#include <pdal/util/Utils.hpp>

#include <arbiter/arbiter.hpp>
Expand Down
123 changes: 0 additions & 123 deletions pdal/Bounds.cpp

This file was deleted.

74 changes: 0 additions & 74 deletions pdal/Bounds.hpp

This file was deleted.

2 changes: 1 addition & 1 deletion pdal/EigenUtils.cpp
Expand Up @@ -37,7 +37,7 @@
#include <pdal/KDIndex.hpp>
#include <pdal/PointView.hpp>
#include <pdal/SpatialReference.hpp>
#include <pdal/util/Box.hpp>
#include <pdal/util/Bounds.hpp>
#include <pdal/util/Utils.hpp>

#include <Eigen/Dense>
Expand Down
2 changes: 1 addition & 1 deletion pdal/GDALUtils.hpp
Expand Up @@ -44,7 +44,7 @@
#include <pdal/Dimension.hpp>
#include <pdal/Log.hpp>
#include <pdal/SpatialReference.hpp>
#include <pdal/util/Box.hpp>
#include <pdal/util/Bounds.hpp>

#include <cpl_conv.h>
#include <gdal_priv.h>
Expand Down
2 changes: 1 addition & 1 deletion pdal/Metadata.cpp
Expand Up @@ -34,7 +34,7 @@

#include <pdal/Metadata.hpp>
#include <pdal/SpatialReference.hpp>
#include <pdal/util/Box.hpp>
#include <pdal/util/Bounds.hpp>

namespace pdal
{
Expand Down
2 changes: 1 addition & 1 deletion pdal/Metadata.hpp
Expand Up @@ -36,7 +36,7 @@

#include <pdal/pdal_internal.hpp>

#include <pdal/util/Box.hpp>
#include <pdal/util/Bounds.hpp>
#include <pdal/util/Utils.hpp>
#include <pdal/util/Uuid.hpp>

Expand Down
2 changes: 1 addition & 1 deletion pdal/PDALUtils.hpp
Expand Up @@ -37,7 +37,7 @@
#include <pdal/Metadata.hpp>
#include <pdal/Dimension.hpp>
#include <pdal/pdal_export.hpp>
#include <pdal/util/Box.hpp>
#include <pdal/util/Bounds.hpp>
#include <pdal/util/Inserter.hpp>
#include <pdal/util/Extractor.hpp>

Expand Down
2 changes: 1 addition & 1 deletion pdal/QuadIndex.hpp
Expand Up @@ -38,7 +38,7 @@
#include <memory>

#include <pdal/pdal_types.hpp>
#include <pdal/util/Box.hpp>
#include <pdal/util/Bounds.hpp>

namespace pdal
{
Expand Down
2 changes: 1 addition & 1 deletion pdal/QuickInfo.hpp
Expand Up @@ -36,7 +36,7 @@

#include <vector>

#include <pdal/util/Box.hpp>
#include <pdal/util/Bounds.hpp>
#include <pdal/SpatialReference.hpp>

namespace pdal
Expand Down

0 comments on commit d865c04

Please sign in to comment.