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

Method initialize

io/LasWriter.cpp:180–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180void LasWriter::initialize()
181{
182 std::string ext = FileUtils::extension(filename());
183 ext = Utils::tolower(ext);
184 if (ext == ".laz")
185 d->opts.compression = las::Compression::True;
186
187 if (!d->opts.aSrs.empty())
188 setSpatialReference(d->opts.aSrs);
189 if (d->opts.compression == las::Compression::True)
190 d->header.setDataCompressed();
191
192 try
193 {
194 m_extraDims = las::parse(d->opts.extraDimSpec, true);
195 }
196 catch (const las::error& err)
197 {
198 throwError(err.what());
199 }
200 fillForwardList();
201}
202
203
204bool LasWriter::srsOverridden() const

Callers

nothing calls this directly

Calls 7

extensionFunction · 0.85
tolowerFunction · 0.85
setDataCompressedMethod · 0.80
setSpatialReferenceFunction · 0.50
parseFunction · 0.50
emptyMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected