GEOS 3.14.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
24namespace geos {
25namespace geom {
26class Geometry;
27class Coordinate;
28}
29}
30
31namespace geos { // geos.
32namespace operation { // geos.operation
33namespace overlayng { // geos.operation.overlayng
34
42
43private:
44
45 // Members
46 const geom::Geometry& inputGeom;
47
48
49
50public:
51
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:197
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 geos.h:39