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

Method CheckPostGISExists

plugins/pgpointcloud/io/PgWriter.cpp:340–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338
339
340bool PgWriter::CheckPostGISExists()
341{
342 log()->get(LogLevel::Debug) << "checking for PostGIS existence ... " <<
343 std::endl;
344
345 std::string q = "SELECT PostGIS_Version()";
346 try
347 {
348 pg_execute(m_session, q);
349 }
350 catch (pdal_error const &)
351 {
352 return false;
353 }
354 return true;
355}
356
357
358bool PgWriter::CheckTableExists(std::string const& name)

Callers

nothing calls this directly

Calls 3

pg_executeFunction · 0.85
logFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected