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

Method createRaster

pdal/PointView.cpp:194–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192
193
194Rasterd *PointView::createRaster(const std::string& name, const RasterLimits& limits,
195 double nodata)
196{
197 if (Utils::contains(m_rasters, name))
198 return nullptr;
199 Rasterd *r = new Rasterd(limits, name, nodata);
200 auto res = m_rasters.insert(std::make_pair(name, std::unique_ptr<Rasterd>(r)));
201 if (res.second)
202 return res.first->second.get();
203 return nullptr;
204}
205
206
207Rasterd *PointView::raster(const std::string& name)

Callers 1

filterMethod · 0.80

Calls 3

containsFunction · 0.50
insertMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected