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

Method CreateIndex

plugins/pgpointcloud/io/PgWriter.cpp:400–412  ·  view source on GitHub ↗

Make sure you test for the presence of PostGIS before calling this

Source from the content-addressed store, hash-verified

398
399// Make sure you test for the presence of PostGIS before calling this
400void PgWriter::CreateIndex(std::string const& schema_name,
401 std::string const& table_name, std::string const& column_name)
402{
403 std::ostringstream oss;
404
405 oss << "CREATE INDEX ";
406 if (schema_name.size())
407 oss << schema_name << "_";
408 oss << table_name << "_pc_gix";
409 oss << " USING GIST (Geometry(" << column_name << "))";
410
411 pg_execute(m_session, oss.str());
412}
413
414
415void PgWriter::writeTile(const PointViewPtr view)

Callers

nothing calls this directly

Calls 3

pg_executeFunction · 0.85
strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected