GEOS 3.14.0dev
ItemDistance.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2016 Daniel Baston
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************
14 *
15 * Last port: index/strtree/ItemDistance.java (JTS-1.14)
16 *
17 **********************************************************************/
18
19#pragma once
20
21#include <geos/index/strtree/ItemBoundable.h>
22
23namespace geos {
24namespace index {
25namespace strtree {
26
33class GEOS_DLL ItemDistance {
34public:
44 virtual double distance(const ItemBoundable* item1, const ItemBoundable* item2) = 0;
45};
46}
47}
48}
49
Boundable wrapper for a non-Boundable spatial object. Used internally by AbstractSTRtree.
Definition ItemBoundable.h:32
A function method which computes the distance between two ItemBoundables in an STRtree....
Definition ItemDistance.h:33
virtual double distance(const ItemBoundable *item1, const ItemBoundable *item2)=0
Computes the distance between two items.
Basic namespace for all GEOS functionalities.
Definition geos.h:39