All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.geom.flat.simplify.d.ts Maven / Gradle / Ivy

The newest version!
/**
 * @param {Array} flatCoordinates Flat coordinates.
 * @param {number} offset Offset.
 * @param {number} end End.
 * @param {number} stride Stride.
 * @param {number} squaredTolerance Squared tolerance.
 * @param {boolean} highQuality Highest quality.
 * @param {Array} [simplifiedFlatCoordinates] Simplified flat
 *     coordinates.
 * @return {Array} Simplified line string.
 */
export function simplifyLineString(flatCoordinates: Array, offset: number, end: number, stride: number, squaredTolerance: number, highQuality: boolean, simplifiedFlatCoordinates?: number[] | undefined): Array;
/**
 * @param {Array} flatCoordinates Flat coordinates.
 * @param {number} offset Offset.
 * @param {number} end End.
 * @param {number} stride Stride.
 * @param {number} squaredTolerance Squared tolerance.
 * @param {Array} simplifiedFlatCoordinates Simplified flat
 *     coordinates.
 * @param {number} simplifiedOffset Simplified offset.
 * @return {number} Simplified offset.
 */
export function douglasPeucker(flatCoordinates: Array, offset: number, end: number, stride: number, squaredTolerance: number, simplifiedFlatCoordinates: Array, simplifiedOffset: number): number;
/**
 * @param {Array} flatCoordinates Flat coordinates.
 * @param {number} offset Offset.
 * @param {Array} ends Ends.
 * @param {number} stride Stride.
 * @param {number} squaredTolerance Squared tolerance.
 * @param {Array} simplifiedFlatCoordinates Simplified flat
 *     coordinates.
 * @param {number} simplifiedOffset Simplified offset.
 * @param {Array} simplifiedEnds Simplified ends.
 * @return {number} Simplified offset.
 */
export function douglasPeuckerArray(flatCoordinates: Array, offset: number, ends: Array, stride: number, squaredTolerance: number, simplifiedFlatCoordinates: Array, simplifiedOffset: number, simplifiedEnds: Array): number;
/**
 * @param {Array} flatCoordinates Flat coordinates.
 * @param {number} offset Offset.
 * @param {Array>} endss Endss.
 * @param {number} stride Stride.
 * @param {number} squaredTolerance Squared tolerance.
 * @param {Array} simplifiedFlatCoordinates Simplified flat
 *     coordinates.
 * @param {number} simplifiedOffset Simplified offset.
 * @param {Array>} simplifiedEndss Simplified endss.
 * @return {number} Simplified offset.
 */
export function douglasPeuckerMultiArray(flatCoordinates: Array, offset: number, endss: Array>, stride: number, squaredTolerance: number, simplifiedFlatCoordinates: Array, simplifiedOffset: number, simplifiedEndss: Array>): number;
/**
 * @param {Array} flatCoordinates Flat coordinates.
 * @param {number} offset Offset.
 * @param {number} end End.
 * @param {number} stride Stride.
 * @param {number} squaredTolerance Squared tolerance.
 * @param {Array} simplifiedFlatCoordinates Simplified flat
 *     coordinates.
 * @param {number} simplifiedOffset Simplified offset.
 * @return {number} Simplified offset.
 */
export function radialDistance(flatCoordinates: Array, offset: number, end: number, stride: number, squaredTolerance: number, simplifiedFlatCoordinates: Array, simplifiedOffset: number): number;
/**
 * @param {number} value Value.
 * @param {number} tolerance Tolerance.
 * @return {number} Rounded value.
 */
export function snap(value: number, tolerance: number): number;
/**
 * Simplifies a line string using an algorithm designed by Tim Schaub.
 * Coordinates are snapped to the nearest value in a virtual grid and
 * consecutive duplicate coordinates are discarded.  This effectively preserves
 * topology as the simplification of any subsection of a line string is
 * independent of the rest of the line string.  This means that, for examples,
 * the common edge between two polygons will be simplified to the same line
 * string independently in both polygons.  This implementation uses a single
 * pass over the coordinates and eliminates intermediate collinear points.
 * @param {Array} flatCoordinates Flat coordinates.
 * @param {number} offset Offset.
 * @param {number} end End.
 * @param {number} stride Stride.
 * @param {number} tolerance Tolerance.
 * @param {Array} simplifiedFlatCoordinates Simplified flat
 *     coordinates.
 * @param {number} simplifiedOffset Simplified offset.
 * @return {number} Simplified offset.
 */
export function quantize(flatCoordinates: Array, offset: number, end: number, stride: number, tolerance: number, simplifiedFlatCoordinates: Array, simplifiedOffset: number): number;
/**
 * @param {Array} flatCoordinates Flat coordinates.
 * @param {number} offset Offset.
 * @param {Array} ends Ends.
 * @param {number} stride Stride.
 * @param {number} tolerance Tolerance.
 * @param {Array} simplifiedFlatCoordinates Simplified flat
 *     coordinates.
 * @param {number} simplifiedOffset Simplified offset.
 * @param {Array} simplifiedEnds Simplified ends.
 * @return {number} Simplified offset.
 */
export function quantizeArray(flatCoordinates: Array, offset: number, ends: Array, stride: number, tolerance: number, simplifiedFlatCoordinates: Array, simplifiedOffset: number, simplifiedEnds: Array): number;
/**
 * @param {Array} flatCoordinates Flat coordinates.
 * @param {number} offset Offset.
 * @param {Array>} endss Endss.
 * @param {number} stride Stride.
 * @param {number} tolerance Tolerance.
 * @param {Array} simplifiedFlatCoordinates Simplified flat
 *     coordinates.
 * @param {number} simplifiedOffset Simplified offset.
 * @param {Array>} simplifiedEndss Simplified endss.
 * @return {number} Simplified offset.
 */
export function quantizeMultiArray(flatCoordinates: Array, offset: number, endss: Array>, stride: number, tolerance: number, simplifiedFlatCoordinates: Array, simplifiedOffset: number, simplifiedEndss: Array>): number;
//# sourceMappingURL=simplify.d.ts.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy