Make sure you test for the presence of PostGIS before calling this
| 398 | |
| 399 | // Make sure you test for the presence of PostGIS before calling this |
| 400 | void 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 | |
| 415 | void PgWriter::writeTile(const PointViewPtr view) |
nothing calls this directly
no test coverage detected