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

Method outputDensity

kernels/DensityKernel.cpp:79–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78
79void DensityKernel::outputDensity(pdal::SpatialReference const& reference)
80{
81 HexBin* hexbin = dynamic_cast<HexBin*>(m_hexbinStage);
82 if (!hexbin)
83 throw pdal::pdal_error("unable to fetch filters.hexbin stage!");
84
85 hexer::BaseGrid* grid = hexbin->grid();
86
87 OGR writer(m_outputFile, reference.getWKT(), m_driverName, m_layerName);
88 writer.writeDensity(*grid);
89}
90
91
92int DensityKernel::execute()

Callers

nothing calls this directly

Calls 3

gridMethod · 0.80
getWKTMethod · 0.80
writeDensityMethod · 0.80

Tested by

no test coverage detected