GEOS 3.9.1
PointOnGeometryLocator.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2006 Refractions Research Inc.
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
16#ifndef GEOS_ALGORITHM_LOCATE_POINTONGEOMETRYLOCATOR_H
17#define GEOS_ALGORITHM_LOCATE_POINTONGEOMETRYLOCATOR_H
18
19#include <geos/geom/Location.h>
20
21namespace geos {
22namespace geom {
23class Coordinate;
24}
25}
26
27namespace geos {
28namespace algorithm { // geos::algorithm
29namespace locate { // geos::algorithm::locate
30
37class GEOS_DLL PointOnGeometryLocator {
38private:
39protected:
40public:
41 virtual
43 { }
44
51 virtual geom::Location locate(const geom::Coordinate* /*const*/ p) = 0;
52};
53
54} // geos::algorithm::locate
55} // geos::algorithm
56} // geos
57
58#endif // GEOS_ALGORITHM_LOCATE_POINTONGEOMETRYLOCATOR_H
An interface for classes which determine the Location of points in Polygon or MultiPolygon geometries...
Definition PointOnGeometryLocator.h:37
virtual geom::Location locate(const geom::Coordinate *p)=0
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
Location
Constants representing the location of a point relative to a geometry.
Definition Location.h:34
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:26