Skip to content

Ported Functions

The following functions have been ported from turfjs.

Measurement

Coordinate Mutation

  • cleanCoords
  • flip
  • rewind
  • round
    Use round or Math.round from the standard library instead.
  • truncate

Transformation

Feature Conversion

  • combine
  • explode
  • flatten
  • lineToPolygon
  • polygonize
  • polygonToLine

Miscellaneous

Helper

Use the GeoJson DSL instead.

Random

  • randomPosition
  • randomPoint
  • randomLineString
  • randomPolygon

Data

  • sample

Interpolation

  • interpolate
  • isobands
  • isolines
  • planepoint
  • tin

Joins

  • pointsWithinPolygon
  • tag

Grids

Classification

Aggregation

  • collect
  • clustersDbscan
  • clustersKmeans

Meta

  • coordAll
  • coordEach
  • coordReduce
  • featureEach
  • featureReduce
  • flattenEach
  • flattenReduce
  • getCoord
  • getCoords
  • getGeom
  • getType
  • geomEach
  • geomReduce
  • propEach
  • segmentEach
  • segmentReduce
  • getCluster
  • clusterEach
  • clusterReduce

Assertations

  • collectionOf
  • containsNumber
  • geojsonType
  • featureOf

Booleans

Unit Conversion