IndexedPointOnLineLocator.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2020 Paul Ramsey <pramsey@cleverelephant.ca>
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <geos/algorithm/locate/PointOnGeometryLocator.h>
#include <geos/geom/Location.h>
// Forward declarations
namespace geos {
namespace geom {
class Geometry;
class Coordinate;
}
}
namespace geos { // geos.
namespace operation { // geos.operation
namespace overlayng { // geos.operation.overlayng
class IndexedPointOnLineLocator : public algorithm::locate::PointOnGeometryLocator {
private:
// Members
const geom::Geometry& inputGeom;
public:
IndexedPointOnLineLocator(const geom::Geometry& geomLinear)
: inputGeom(geomLinear)
{}
geom::Location locate(const geom::CoordinateXY* p) override;
};
} // namespace geos.operation.overlayng
} // namespace geos.operation
} // namespace geos
geos::algorithm::locate::PointOnGeometryLocator
An interface for classes which determine the Location of points in Polygon or MultiPolygon geometries...
Definition PointOnGeometryLocator.h:36
geos::geom::Coordinate
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:217
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::operation::overlayng::IndexedPointOnLineLocator::locate
geom::Location locate(const geom::CoordinateXY *p) override
geos::geom
Definition Angle.h:26
geos::geom::Location
Location
Constants representing the location of a point relative to a geometry.
Definition Location.h:32
geos::operation
Provides classes for implementing operations on geometries.
Definition CleanCoverage.h:34
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38