ValidatingNoder.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/noding/Noder.h>
#include <memory> // for unique_ptr
// Forward declarations
namespace geos {
namespace algorithm {
class LineIntersector;
}
namespace geom {
class Geometry;
}
}
namespace geos {
namespace noding { // geos.noding
class GEOS_DLL ValidatingNoder : public Noder {
private:
std::vector<SegmentString*>* nodedSS;
noding::Noder& noder;
public:
ValidatingNoder(Noder& noderArg)
: noder(noderArg)
{}
void computeNodes(std::vector<SegmentString*>* segStrings) override;
void validate();
std::vector<SegmentString*>* getNodedSubstrings() const override;
};
} // namespace geos.noding
} // namespace geos
geos::algorithm::LineIntersector
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition LineIntersector.h:53
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::noding::Noder
Computes all intersections between segments in a set of SegmentString.
Definition Noder.h:46
geos::noding::ValidatingNoder::getNodedSubstrings
std::vector< SegmentString * > * getNodedSubstrings() const override
Returns a collection of fully noded SegmentStrings. The SegmentStrings have the same context as their...
geos::noding::ValidatingNoder::computeNodes
void computeNodes(std::vector< SegmentString * > *segStrings) override
Computes the noding for a collection of SegmentStrings.
geos::algorithm
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Definition Angle.h:32
geos::geom
Definition Angle.h:26
geos::noding
Classes to compute nodings for arrangements of line segments and line segment sequences.
Definition CoverageCleaner.h:42
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38