Collection of segments from a geometry for interpolation.
More...
#include <SegmentStore.h>
Collection of segments from a geometry for interpolation.
| SFCGAL::detail::SegmentStore::SegmentStore |
( |
| ) |
|
|
default |
| void SFCGAL::detail::SegmentStore::addSegment |
( |
const Segment & |
segment | ) |
|
|
inline |
Add a segment to the store.
- Parameters
-
| segment | The segment to add |
| auto SFCGAL::detail::SegmentStore::createPoint |
( |
double |
x, |
|
|
double |
y, |
|
|
CoordinateType |
dimension |
|
) |
| const -> Point
|
|
inline |
Create a point with interpolated Z and M values.
- Parameters
-
| x | X-coordinate of the point |
| y | Y-coordinate of the point |
| dimension | The coordinate type for the point |
- Returns
- Point with interpolated Z and M values
| auto SFCGAL::detail::SegmentStore::extractSegments |
( |
const LineString & |
lineString | ) |
-> void
|
|
inline |
Extract segments from a LineString for interpolation.
- Parameters
-
| lineString | The linestring to extract segments from |
| auto SFCGAL::detail::SegmentStore::extractSegments |
( |
const Polygon & |
polygon | ) |
-> void
|
|
inline |
Extract segments from a Polygon for interpolation.
- Parameters
-
| polygon | The polygon to extract segments from |
| auto SFCGAL::detail::SegmentStore::extractSegments |
( |
const Geometry & |
geometry | ) |
-> void
|
|
inline |
Extract segments from all geometry types.
- Parameters
-
| geometry | The geometry to extract segments from |
| auto SFCGAL::detail::SegmentStore::findNearestSegment |
( |
double |
x, |
|
|
double |
y |
|
) |
| const -> Segment
|
|
inline |
Find the nearest segment to a point.
- Parameters
-
| x | X-coordinate of the point |
| y | Y-coordinate of the point |
- Returns
- The nearest segment to the given point
| auto SFCGAL::detail::SegmentStore::hasM |
( |
| ) |
const -> bool
|
|
inline |
Check if store contains segments with M values.
- Returns
- True if any segment has M values
| auto SFCGAL::detail::SegmentStore::hasZ |
( |
| ) |
const -> bool
|
|
inline |
Check if store contains segments with Z coordinates.
- Returns
- True if any segment has Z coordinates
| auto SFCGAL::detail::SegmentStore::interpolateZM |
( |
double |
x, |
|
|
double |
y |
|
) |
| const -> std::tuple<double, double>
|
|
inline |
Interpolate Z and M values for a point.
- Parameters
-
| x | X-coordinate of the point |
| y | Y-coordinate of the point |
- Returns
- Tuple with interpolated (z, m) values, NaN if not applicable