More information about the Turf for Java library can be found at https://www.mapbox.com/android-docs/java-sdk/overview/turf/
This document tracks the progress being made to port over all of the Turf functionality to Java. This is an on going project and funtions are being added once needed. If you'd like to contribute by adding a Turf function that's missing, please open a GitHub issue still with information relative to why you need this functionality.
Below's an on going list of the Turf functions which currently exist inside the services-turf
module in this project:
- turf-along
- turf-area
- turf-bbox
- turf-bbox-polygon
- turf-bearing
- turf-center
- turf-center-of-mass
- turf-centroid
- turf-destination
- turf-distance
- turf-envelope
- turf-length
- turf-midpoint
- turf-point-on-feature
- turf-polygon-tangents
- turf-point-to-line-distance
- turf-rhumb-bearing
- turf-rhumb-destination
- turf-rhumb-distance
- turf-square
- turf-great-circle
- turf-clean-coords
- turf-flip
- turf-rewind
- turf-truncate
rounduse Math.round() instead
- turf-bbox-clip
- turf-bezier-spline
- turf-buffer
- turf-circle
- turf-clone
- turf-concave
- turf-convex
- turf-difference
- turf-dissolve
- turf-intersect
- turf-line-offset
- turf-simplify
- turf-tesselate
- turf-transform-rotate
- turf-transform-translate
- turf-transform-scale
- turf-union
- turf-voronoi
- turf-combine
- turf-explode
- turf-flatten
- turf-line-to-polygon
- turf-polygonize
- turf-polygon-to-line
- turf-kinks
- turf-line-arc
- turf-line-chunk
- turf-line-intersect
- turf-line-overlap
- turf-line-segment
- turf-line-slice
- turf-line-slice-along
- turf-line-split
- turf-mask
- turf-nearest-point-on-line
- turf-sector
- turf-shortest-parth
- turf-unkink-polygon
The helper functions are all part of the GeoJson module; this class contains unit conversion and additional functionality to help other calculations.
- turf-random-interpolate
- turf-random-isobands
- turf-random-isolines
- turf-random-planepoint
- turf-random-tin
- turf-sample
- turf-inside // not in Turf
- turf-tag
- turf-points-within-polygon
- turf-hex-grid
- turf-point-grid
- turf-square-grid
- turf-triangle-grid
- turf-nearest-point
- turf-collect
- turf-clusters-dbscan
- turf-clusters-kmeans
- coordAll
- coordEach
- coordReduce
- featureEach
- featureReduce
- flattenEach
- flattenReduce
- getCoord
- getCoords
- getGeom
- getType
- geomEach
- geomReduce
- propEach
- propReduce
- segmentEach
- segmentReduce
- getCluster
- clusterEach
- clusterReduce
All of these are already enforced in the GeoJson module
- collectionOf
- containsNumber
- geojsonType
- featureOf
- turf-boolean-clockwise
- turf-boolean-contains
- turf-boolean-crosses
- turf-boolean-disjoint
- turf-boolean-equal
- turf-boolean-overlap
- turf-boolean-parallel
- turf-boolean-point-in-polygon
- turf-boolean-point-on-line
- turf-boolean-within
- bearingToAzimuth
- convertArea
- convertLength
- degreesToRadians
- lengthToRadians
- lengthToDegrees
- radiansToLength
- radiansToDegrees
- toMercator
- toWgs84
-
clusterEachCallback
-
clusterReduceCallback
-
removeEmptyPolygon
-
ab
-
coordEachCallback
-
coordReduceCallback
-
propEachCallback
-
propReduceCallback
-
featureEachCallback
-
featureReduceCallback
-
geomEachCallback
-
geomReduceCallback
-
flattenEachCallback
-
flattenReduceCallback
-
segmentEachCallback
-
segmentReduceCallback
-
turf-invariant
-
turf-helpers
-
turf-projection
-
turf-clean-coords