toWgs84
Description
Converts a Mercator (EPSG:900913) GeoJSON object into WGS84 projection
Parameters
Name | Type | Description |
---|---|---|
geojson | GeoJSON | Position | Mercator GeoJSON object |
options? | Object | Optional parameters |
options.mutate? | boolean | allows GeoJSON input to be mutated (significant performance increase if true) (default false) |
Returns
GeoJSON Projected GeoJSON
Examples
var pt = turf.point([-7903683.846322424, 5012341.663847514]);
var converted = turf.toWgs84(pt);
Installation
$ npm install @turf/projection
import { toWgs84 } from "@turf/projection";
const result = toWgs84(...);
$ npm install @turf/turf
import * as turf from "@turf/turf";
const result = turf.toWgs84(...);