GEOS
3.12.0
include
geos
operation
overlayng
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
41
class
IndexedPointOnLineLocator
:
public
algorithm::locate::PointOnGeometryLocator
{
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
geos::geom::Location
Location
Constants representing the location of a point relative to a geometry.
Definition:
Location.h:32
geos
Basic namespace for all GEOS functionalities.
Definition:
Angle.h:25
geos::operation::overlayng::IndexedPointOnLineLocator
Definition:
IndexedPointOnLineLocator.h:41
geos::operation::overlayng::IndexedPointOnLineLocator::locate
geom::Location locate(const geom::CoordinateXY *p) override
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition:
Geometry.h:186
geos::algorithm::locate::PointOnGeometryLocator
An interface for classes which determine the Location of points in Polygon or MultiPolygon geometries...
Definition:
PointOnGeometryLocator.h:36
Generated by
1.8.20