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

Method write

io/RasterWriter.cpp:81–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79
80
81void RasterWriter::write(const PointViewPtr view)
82{
83 // If we're using the default raster, check if this view has one and use it unless we
84 // already have one.
85 if (m_rasterNames.empty())
86 {
87 if (m_rasters.empty() && view->raster())
88 m_rasters.push_back(view->raster());
89 }
90 else
91 {
92 for (std::string& name : m_rasterNames)
93 {
94 Rasterd *r = view->raster(name);
95 if (r)
96 m_rasters.push_back(r);
97 }
98 }
99}
100
101void RasterWriter::done(PointTableRef table)
102{

Callers

nothing calls this directly

Calls 2

rasterMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected