clipper / io.marauder.charged / Clipper / clip

clip

fun clip(fc: GeoJSON, scale: Double, k1: Double, k2: Double, k3: Double, k4: Double, checkBoundingBox: Boolean = true): GeoJSON

Clip a feature collection at given boundaries and a scaling factor

Parameters

fc - Feature Collection to clip

scale - Scaling factor to use before clipping

k1 - low horizontal boundary

k2 - high horizontal boundary

k3 - low vertical boundary

k4 - high vertical boundary

Return
Clipped Feature Collection

fun clip(f: Feature, scale: Double, k1: Double, k2: Double, k3: Double, k4: Double, checkBoundingBox: Boolean = true): Feature?

Clip a feature at given boundaries and a scaling factor

Parameters

f - Feature to clip

k1 - low horizontal boundary

k2 - high horizontal boundary

k3 - low vertical boundary

k4 - high vertical boundary

Return
Clipped Feature