MCPcopy Create free account
hub / github.com/PDAL/PDAL / KD2Index

Method KD2Index

pdal/KDIndex.cpp:45–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43//
44
45KD2Index::KD2Index(const PointView& buf) :
46 m_buf(buf), m_impl(new KD2Impl(m_buf))
47{
48 if (!m_buf.hasDim(Dimension::Id::X))
49 throw pdal_error("KD2Index: point view missing 'X' dimension.");
50 if (!m_buf.hasDim(Dimension::Id::Y))
51 throw pdal_error("KD2Index: point view missing 'Y' dimension.");
52}
53
54KD2Index::~KD2Index()
55{}

Callers

nothing calls this directly

Calls 1

hasDimMethod · 0.80

Tested by

no test coverage detected