SAMExamples.h File Reference

Several examples on how to use Spatial Access Methods in TerraLib. More...

Go to the source code of this file.

Functions

void IndexPointUsingKdTree ()
 This example shows how to index a set of points using the K-d tree spatial access method. More...
 
void IndexPointUsingRTree ()
 This example shows how to index a set of points using the R-tree spatial access method. More...
 

Detailed Description

Several examples on how to use Spatial Access Methods in TerraLib.

Definition in file SAMExamples.h.

Function Documentation

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 IndexPointUsingRTree ( )

This example shows how to index a set of points using the R-tree spatial access method.

Definition at line 37 of file RTreeExamples.cpp.

References te::common::FreeContents(), te::gm::Geometry::getMBR(), te::sam::rtree::Index< DATATYPE, MAXNODES, MINNODES >::insert(), and te::sam::rtree::Index< DATATYPE, MAXNODES, MINNODES >::search().

Referenced by main().