Class: GeoCircleResampler
Resamples projected great- and small-circle paths between defined endpoints into series of straight line segments and circular arcs.
Constructors
constructor
• new GeoCircleResampler(minDistance
, dpTolerance
, maxDepth
): GeoCircleResampler
Constructor.
Parameters
Name | Type | Description |
---|---|---|
minDistance | number | The minimum great-circle distance this resampler enforces between two adjacent resampled points, in great-arc radians. |
dpTolerance | number | The Douglas-Peucker tolerance, in pixels, this resampler uses when deciding whether to discard a resampled point during the simplification process. |
maxDepth | number | The maximum depth of the resampling algorithm used by this resampler. The number of resampled points is bounded from above by 2^[maxDepth] - 1 . |
Returns
Defined in
src/sdk/geo/GeoCircleResampler.ts:162
Properties
dpTolerance
• Readonly
dpTolerance: number
The Douglas-Peucker tolerance, in pixels, this resampler uses when deciding whether to discard a resampled point during the simplification process.
Defined in
src/sdk/geo/GeoCircleResampler.ts:162
maxDepth
• Readonly
maxDepth: number
The maximum depth of the resampling algorithm used by this resampler. The number of resampled
points is bounded from above by 2^[maxDepth] - 1
.
Defined in
src/sdk/geo/GeoCircleResampler.ts:162
minDistance
• Readonly
minDistance: number
The minimum great-circle distance this resampler enforces between two adjacent resampled points, in great-arc radians.
Defined in
src/sdk/geo/GeoCircleResampler.ts:162
Methods
resample
▸ resample(projection
, circle
, start
, end
, handler
): void
Resamples a projected great- or small-circle path.
Parameters
Name | Type | Description |
---|---|---|
projection | GeoProjection | The projection to use. |
circle | GeoCircle | The geo circle along which the path lies. |
start | Readonly <Omit <Float64Array , "set" | "sort" | "copyWithin" >> | LatLonInterface | The start of the path. |
end | Readonly <Omit <Float64Array , "set" | "sort" | "copyWithin" >> | LatLonInterface | The end of the path. |
handler | GeoCircleResamplerHandler | A function to handle the resampled points. The function is called once for each resampled point, in order. |
Returns
void
Defined in
src/sdk/geo/GeoCircleResampler.ts:176