ItemDistance.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2016 Daniel Baston
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************
*
* Last port: index/strtree/ItemDistance.java (JTS-1.14)
*
**********************************************************************/
#pragma once
#include <geos/index/strtree/ItemBoundable.h>
namespace geos {
namespace index {
namespace strtree {
class GEOS_DLL ItemDistance {
public:
virtual double distance(const ItemBoundable* item1, const ItemBoundable* item2) = 0;
};
}
}
}
geos::index::strtree::ItemBoundable
Boundable wrapper for a non-Boundable spatial object. Used internally by AbstractSTRtree.
Definition ItemBoundable.h:32
geos::index::strtree::ItemDistance
A function method which computes the distance between two ItemBoundables in an STRtree....
Definition ItemDistance.h:33
geos::index::strtree::ItemDistance::distance
virtual double distance(const ItemBoundable *item1, const ItemBoundable *item2)=0
Computes the distance between two items.
geos::index::strtree
Contains 2-D and 1-D versions of the Sort-Tile-Recursive (STR) tree, a query-only R-tree.
Definition AbstractNode.h:31
geos::index
Provides classes for various kinds of spatial indexes.
Definition CleanCoverage.h:39
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38