This file contains several examples on how to use the K-d tree spatial access method. More...
#include <terralib_buildconfig.h>#include <terralib/common.h>#include <terralib/geometry.h>#include <terralib/sam.h>#include "SAMExamples.h"#include <limits>#include <vector>#include <utility>Go to the source code of this file.
Functions | |
| void | AdaptativeKdTree () |
| void | IndexPointUsingKdTree () |
| This example shows how to index a set of points using the K-d tree spatial access method. More... | |
| void | KdTree () |
This file contains several examples on how to use the K-d tree spatial access method.
Definition in file KdTreeExamples.cpp.
| void AdaptativeKdTree | ( | ) |
Definition at line 66 of file KdTreeExamples.cpp.
References te::sam::kdtree::AdaptativeIndex< KdTreeNode >::build(), te::gm::Geometry::getMBR(), te::sam::kdtree::AdaptativeIndex< KdTreeNode >::nearestNeighborSearch(), te::sam::kdtree::AdaptativeIndex< KdTreeNode >::search(), te::gm::Envelope::Union(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by IndexPointUsingKdTree().
| void IndexPointUsingKdTree | ( | ) |
This example shows how to index a set of points using the K-d tree spatial access method.
Definition at line 108 of file KdTreeExamples.cpp.
References AdaptativeKdTree(), and KdTree().
Referenced by main().
| void KdTree | ( | ) |
Definition at line 39 of file KdTreeExamples.cpp.
References te::sam::kdtree::Index< KdTreeNode >::insert(), and te::sam::kdtree::Index< KdTreeNode >::search().
Referenced by IndexPointUsingKdTree().