GEOS 3.14.0dev
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#pragma once
17
18#include <geos/geom/Location.h>
19
20namespace geos {
21namespace geom {
22class CoordinateXY;
23}
24}
25
26namespace geos {
27namespace algorithm { // geos::algorithm
28namespace locate { // geos::algorithm::locate
29
36class GEOS_DLL PointOnGeometryLocator {
37private:
38protected:
39public:
40 virtual
42 { }
43
50 virtual geom::Location locate(const geom::CoordinateXY* /*const*/ p) = 0;
51};
52
53} // geos::algorithm::locate
54} // geos::algorithm
55} // geos
56
An interface for classes which determine the Location of points in Polygon or MultiPolygon geometries...
Definition PointOnGeometryLocator.h:36
virtual geom::Location locate(const geom::CoordinateXY *p)=0
Location
Constants representing the location of a point relative to a geometry.
Definition Location.h:32
Basic namespace for all GEOS functionalities.
Definition geos.h:39