GEOS  3.13.0dev
IndexedPointOnLineLocator.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2020 Paul Ramsey <pramsey@cleverelephant.ca>
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 #pragma once
16 
17 #include <geos/export.h>
18 #include <geos/algorithm/locate/PointOnGeometryLocator.h>
19 #include <geos/geom/Location.h>
20 
21 
22 
23 // Forward declarations
24 namespace geos {
25 namespace geom {
26 class Geometry;
27 class Coordinate;
28 }
29 }
30 
31 namespace geos { // geos.
32 namespace operation { // geos.operation
33 namespace overlayng { // geos.operation.overlayng
34 
42 
43 private:
44 
45  // Members
46  const geom::Geometry& inputGeom;
47 
48 
49 
50 public:
51 
52  IndexedPointOnLineLocator(const geom::Geometry& geomLinear)
53  : inputGeom(geomLinear)
54  {}
55 
56  geom::Location locate(const geom::CoordinateXY* p) override;
57 
58 };
59 
60 
61 } // namespace geos.operation.overlayng
62 } // namespace geos.operation
63 } // namespace geos
64 
An interface for classes which determine the Location of points in Polygon or MultiPolygon geometries...
Definition: PointOnGeometryLocator.h:36
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
Definition: IndexedPointOnLineLocator.h:41
geom::Location locate(const geom::CoordinateXY *p) override
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