GEOS  3.13.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 
20 namespace geos {
21 namespace geom {
22 class CoordinateXY;
23 }
24 }
25 
26 namespace geos {
27 namespace algorithm { // geos::algorithm
28 namespace locate { // geos::algorithm::locate
29 
36 class GEOS_DLL PointOnGeometryLocator {
37 private:
38 protected:
39 public:
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: Angle.h:25