point
描述
¥Description
Creates a 点 特性 from a Position.
¥Creates a Point Feature from a Position.
参数
¥Parameters
名称 | 类型 | 描述 |
---|---|---|
coordinates | 位置 | longitude, latitude position (each in decimal degrees) |
properties? | GeoJsonProperties | an Object of key-value pairs to add as properties (default ) |
options? | 对象 | 可选参数(默认 ) |
options.bbox? | BBox | Bounding Box Array [west, south, east, north] associated with the Feature |
options.id? | ID | Identifier associated with the Feature |
返回
¥Returns
特性<点, GeoJsonProperties> a Point feature
¥Feature<Point, GeoJsonProperties> a Point feature
示例
¥Examples
var point = turf.point([-75.343, 39.984]);
//=point
安装
¥Installation
$ npm install @turf/helpers
import { point } from "@turf/helpers";
const result = point(...);
$ npm install @turf/turf
import * as turf from "@turf/turf";
const result = turf.point(...);