GEOS  3.9.1dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
geos::operation::overlay::validate::FuzzyPointLocator Class Reference

Finds the most likely Location of a point relative to the polygonal components of a geometry, using a tolerance value. More...

#include <FuzzyPointLocator.h>

Collaboration diagram for geos::operation::overlay::validate::FuzzyPointLocator:
[legend]

Public Member Functions

 FuzzyPointLocator (const geom::Geometry &geom, double nTolerance)
 
geom::Location getLocation (const geom::Coordinate &pt)
 

Private Member Functions

std::unique_ptr< geom::GeometrygetLineWork (const geom::Geometry &geom)
 
std::unique_ptr< geom::GeometryextractLineWork (const geom::Geometry &geom)
 
 FuzzyPointLocator (const FuzzyPointLocator &other)=delete
 
FuzzyPointLocatoroperator= (const FuzzyPointLocator &rhs)=delete
 

Private Attributes

const geom::Geometryg
 
double tolerance
 
algorithm::PointLocator ptLocator
 
std::unique_ptr< geom::Geometrylinework
 

Detailed Description

Finds the most likely Location of a point relative to the polygonal components of a geometry, using a tolerance value.

If a point is not clearly in the Interior or Exterior, it is considered to be on the Boundary. In other words, if the point is within the tolerance of the Boundary, it is considered to be on the Boundary; otherwise, whether it is Interior or Exterior is determined directly.

Definition at line 58 of file FuzzyPointLocator.h.

Constructor & Destructor Documentation

geos::operation::overlay::validate::FuzzyPointLocator::FuzzyPointLocator ( const geom::Geometry geom,
double  nTolerance 
)
geos::operation::overlay::validate::FuzzyPointLocator::FuzzyPointLocator ( const FuzzyPointLocator other)
privatedelete

Member Function Documentation

std::unique_ptr<geom::Geometry> geos::operation::overlay::validate::FuzzyPointLocator::extractLineWork ( const geom::Geometry geom)
private

Extracts linework for polygonal components.

Parameters
geomthe geometry from which to extract
Returns
a lineal geometry containing the extracted linework
std::unique_ptr<geom::Geometry> geos::operation::overlay::validate::FuzzyPointLocator::getLineWork ( const geom::Geometry geom)
private
geom::Location geos::operation::overlay::validate::FuzzyPointLocator::getLocation ( const geom::Coordinate pt)
FuzzyPointLocator& geos::operation::overlay::validate::FuzzyPointLocator::operator= ( const FuzzyPointLocator rhs)
privatedelete

Member Data Documentation

const geom::Geometry& geos::operation::overlay::validate::FuzzyPointLocator::g
private

Definition at line 68 of file FuzzyPointLocator.h.

std::unique_ptr<geom::Geometry> geos::operation::overlay::validate::FuzzyPointLocator::linework
private

Definition at line 74 of file FuzzyPointLocator.h.

algorithm::PointLocator geos::operation::overlay::validate::FuzzyPointLocator::ptLocator
private

Definition at line 72 of file FuzzyPointLocator.h.

double geos::operation::overlay::validate::FuzzyPointLocator::tolerance
private

Definition at line 70 of file FuzzyPointLocator.h.


The documentation for this class was generated from the following file: