SFCGAL  2.2.0
Public Member Functions | List of all members
SFCGAL::detail::SegmentStore Class Reference

Collection of segments from a geometry for interpolation. More...

#include <SegmentStore.h>

Public Member Functions

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

Detailed Description

Collection of segments from a geometry for interpolation.

Constructor & Destructor Documentation

SFCGAL::detail::SegmentStore::SegmentStore ( )
inline

Member Function Documentation

void SFCGAL::detail::SegmentStore::addSegment ( const Segment segment)
inline
Point SFCGAL::detail::SegmentStore::createPoint ( double  x,
double  y,
CoordinateType  dimension 
) const
inline

Create a point with interpolated Z and M values.

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

Extract segments from a LineString for interpolation.

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

Extract segments from a Polygon for interpolation.

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

Extract segments from all geometry types.

Segment SFCGAL::detail::SegmentStore::findNearestSegment ( double  x,
double  y 
) const
inline
bool SFCGAL::detail::SegmentStore::hasM ( ) const
inline
bool SFCGAL::detail::SegmentStore::hasZ ( ) const
inline
std::tuple<double, double> SFCGAL::detail::SegmentStore::interpolateZM ( double  x,
double  y 
) const
inline

Interpolate Z and M values for a point.

Parameters
xX-coordinate of the point
yY-coordinate of the point
Returns
Tuple with interpolated (z, m) values, NaN if not applicable