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

Method CheckPointCloudExists

plugins/pgpointcloud/io/PgWriter.cpp:322–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320
321
322bool PgWriter::CheckPointCloudExists()
323{
324 log()->get(LogLevel::Debug) << "checking for pointcloud existence ... " <<
325 std::endl;
326
327 std::string q = "SELECT PC_Version()";
328 try
329 {
330 pg_execute(m_session, q);
331 }
332 catch (pdal_error const &)
333 {
334 return false;
335 }
336 return true;
337}
338
339
340bool PgWriter::CheckPostGISExists()

Callers

nothing calls this directly

Calls 3

pg_executeFunction · 0.85
logFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected