MCPcopy Create free account
hub / github.com/OSGeo/gdal / InsertIntoTree

Method InsertIntoTree

apps/gdalalg_vector_sort.cpp:482–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480
481 private:
482 bool InsertIntoTree(const OGREnvelope &oGeomExtent, std::uintptr_t i)
483 {
484 GEOSGeometry *poEnv = CreateGEOSEnvelope(oGeomExtent);
485 if (poEnv == nullptr)
486 {
487 return false;
488 }
489 GEOSSTRtree_insert_r(m_geosContext, m_poTree, poEnv,
490 reinterpret_cast<void *>(i));
491 GEOSGeom_destroy_r(m_geosContext, poEnv);
492
493 return true;
494 }
495
496 bool BuildTree()
497 {

Callers

nothing calls this directly

Calls 1

CreateGEOSEnvelopeFunction · 0.85

Tested by

no test coverage detected