geo-registry

turf.pointOnFeature

How Turf.js runs Centroid: turf.pointOnFeature.

About this implementation
Engine Turf.js
Tool name turf.pointOnFeature
Interface js
Implements Centroid
Documentation Not stated
Effects modifies input: no, network: no
Notes From @turf/point-on-feature.
Status active

Parameters

Name Type Required Default Choices Note
geojson AllGeoJSON yes Not stated Not stated Not stated

How it maps to the operation

Operation parameter Parameter here Note
layer geojson Not stated
inside Not stated always yes. Use turf.centroid for the geometric centroid.

Differences from the operation

  • Turf works on GeoJSON in longitude/latitude (WGS 84); data in another CRS must be reprojected first.

Harvested by the turf harvester from engine version 7.4.0. Names can change when an engine is harvested again.