Skip to content

Commit

Permalink
fixups for hexer
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Apr 18, 2013
1 parent c629853 commit 7c01f1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hobu-config.sh
Expand Up @@ -34,7 +34,7 @@ cmake -G "$CONFIG" \
-DWITH_P2G=ON \
-DWITH_HEXER=ON \
-DHEXER_INCLUDE_DIR=../hexer/include \
-DHEXER_LIBRARY=../hexer/bin/Debug/libhexer.dylib \
-DHEXER_LIBRARY=../hexer/bin/libhexer.dylib \
-DGEOTIFF_INCLUDE_DIR=${GEOTIFF_HOME}/include/ \
-DGEOTIFF_LIBRARY=${GEOTIFF_HOME}/lib/libgeotiff.${SO_EXT} \
-DICONV_INCLUDE_DIR=/usr/include \
Expand Down
8 changes: 4 additions & 4 deletions src/filters/HexBin.cpp
Expand Up @@ -130,7 +130,7 @@ boost::uint32_t HexBin::readBufferImpl(PointBuffer& buffer)
double y = m_dim_y->applyScaling<int32_t>(yi);
#ifdef PDAL_HAVE_HEXER

m_samples.push_back(Pshape::Point(x,y));
m_samples.push_back(hexer::Point(x,y));
#endif
}

Expand All @@ -140,14 +140,14 @@ boost::uint32_t HexBin::readBufferImpl(PointBuffer& buffer)
void HexBin::readBufferEndImpl(PointBuffer&)
{

// double hexsize = Pshape::computeHexSize(samples);
// double hexsize = hexer::computeHexSize(samples);
double hexsize =5 ;
int dense_limit = 10;

#ifdef PDAL_HAVE_HEXER

m_grid = new Pshape::HexGrid(hexsize, dense_limit);
for (std::vector<Pshape::Point>::size_type i = 0; i < m_samples.size(); ++i)
m_grid = new hexer::HexGrid(hexsize, dense_limit);
for (std::vector<hexer::Point>::size_type i = 0; i < m_samples.size(); ++i)
{
m_grid->addPoint(m_samples[i]);
}
Expand Down

0 comments on commit 7c01f1a

Please sign in to comment.