GEOS 3.15.0dev
Public Member Functions | List of all members
geos::noding::Noder Class Referenceabstract

Computes all intersections between segments in a set of SegmentString. More...

#include <Noder.h>

Inheritance diagram for geos::noding::Noder:
geos::noding::BoundaryChainNoder geos::noding::IteratedNoder geos::noding::ScaledNoder geos::noding::SegmentExtractingNoder geos::noding::SinglePassNoder geos::noding::ValidatingNoder geos::noding::snap::SnappingNoder geos::noding::snapround::MCIndexSnapRounder geos::noding::snapround::SnapRoundingNoder

Public Member Functions

virtual void computeNodes (const std::vector< SegmentString * > &segStrings)=0
 Computes the noding for a collection of SegmentStrings.
 
virtual std::vector< std::unique_ptr< SegmentString > > getNodedSubstrings ()=0
 Returns a collection of fully noded SegmentStrings. The SegmentStrings have the same context as their parent.
 

Detailed Description

Computes all intersections between segments in a set of SegmentString.

Intersections found are represented as SegmentNodes and added to the SegmentStrings in which they occur. As a final step in the noding a new set of segment strings split at the nodes may be returned.

Last port: noding/Noder.java rev. 1.8 (JTS-1.7)

Member Function Documentation

◆ computeNodes()

virtual void geos::noding::Noder::computeNodes ( const std::vector< SegmentString * > &  segStrings)
pure virtual

Computes the noding for a collection of SegmentStrings.

Some Noders may add all these nodes to the input SegmentStrings; others may only add some or none at all.

Parameters
segStringsa collection of SegmentStrings to node The caller remains responsible for releasing the memory associated with the SegmentStrings.

Implemented in geos::noding::IteratedNoder, geos::noding::MCIndexNoder, geos::noding::SimpleNoder, geos::noding::ScaledNoder, geos::noding::BoundaryChainNoder, geos::noding::snap::SnappingNoder, geos::noding::snapround::SnapRoundingNoder, geos::noding::SegmentExtractingNoder, geos::noding::snapround::MCIndexSnapRounder, geos::noding::ValidatingNoder, and geos::noding::SinglePassNoder.

◆ getNodedSubstrings()

virtual std::vector< std::unique_ptr< SegmentString > > geos::noding::Noder::getNodedSubstrings ( )
pure virtual

Returns a collection of fully noded SegmentStrings. The SegmentStrings have the same context as their parent.

Returns
a std::vector of SegmentStrings (copies of input, if needs be). Caller is responsible to delete elements of container. This method may only be called once.

Implemented in geos::noding::BoundaryChainNoder, geos::noding::IteratedNoder, geos::noding::MCIndexNoder, geos::noding::ScaledNoder, geos::noding::SegmentExtractingNoder, geos::noding::SimpleNoder, geos::noding::snap::SnappingNoder, geos::noding::snapround::MCIndexSnapRounder, geos::noding::snapround::SnapRoundingNoder, geos::noding::ValidatingNoder, and geos::noding::SinglePassNoder.


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