Skip to content

Class SFCGAL::detail::SegmentStore#

ClassList > detail > SegmentStore

Collection of segments from a geometry for interpolation.

  • #include <SegmentStore.h>

Public Functions#

Type Name
SegmentStore ()
void addSegment (const Segment & segment)
Point createPoint (double x, double y, CoordinateType dimension) const
Create a point with interpolated Z and M values.
void extractSegments (const LineString & lineString)
Extract segments from a LineString for interpolation.
void extractSegments (const Polygon & polygon)
Extract segments from a Polygon for interpolation.
void extractSegments (const Geometry & geometry)
Extract segments from all geometry types.
Segment findNearestSegment (double x, double y) const
bool hasM () const
bool hasZ () const
std::tuple< double, double > interpolateZM (double x, double y) const
Interpolate Z and M values for a point.

Public Functions Documentation#

function SegmentStore#

inline detail::SegmentStore::SegmentStore () 

function addSegment#

inline void detail::SegmentStore::addSegment (
    const Segment & segment
) 

function createPoint#

Create a point with interpolated Z and M values.

inline Point detail::SegmentStore::createPoint (
    double x,
    double y,
    CoordinateType dimension
) const

function extractSegments [1/3]#

Extract segments from a LineString for interpolation.

inline void detail::SegmentStore::extractSegments (
    const LineString & lineString
) 

function extractSegments [2/3]#

Extract segments from a Polygon for interpolation.

inline void detail::SegmentStore::extractSegments (
    const Polygon & polygon
) 

function extractSegments [3/3]#

Extract segments from all geometry types.

inline void detail::SegmentStore::extractSegments (
    const Geometry & geometry
) 

function findNearestSegment#

inline Segment detail::SegmentStore::findNearestSegment (
    double x,
    double y
) const

function hasM#

inline bool detail::SegmentStore::hasM () const

function hasZ#

inline bool detail::SegmentStore::hasZ () const

function interpolateZM#

Interpolate Z and M values for a point.

inline std::tuple< double, double > detail::SegmentStore::interpolateZM (
    double x,
    double y
) const

Parameters:

  • x X-coordinate of the point
  • y Y-coordinate of the point

Returns:

Tuple with interpolated (z, m) values, NaN if not applicable



The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/detail/SegmentStore.h