
turf-to-geometries:任意 GeoJSON 转换为几何图形
5星
- 浏览量: 0
- 大小:None
- 文件类型:ZIP
简介:
将草皮转换为几何图形
该方法接收一个 GeoJSON 特征、几何体或集合,并返回对应的 Geometry 对象。
参数:接收一个 GeoJSON 特征(特征类型)、单个 GeoJSON 几何体(geometry 类型)或多个 GeoJSON 特征的数组(type: FeatureCollection)、以及多个 GeoJSON 几何体的数组(type: GeometryCollection)
范围:
- geojson:特征、几何、特征集合或几何集合
类型:
- feature
- geometry
- featurecollection
- geometries
描述:
该函数将任意 GeoJSON 对象转换为 Geometry 或 GeometryCollection 类型,支持单个和多个对象的批量处理。例如,输入一个 GeoJSON 特征将返回对应的 Geometry 对象。
示例:
var poly = {
type : Feature ,
properties : {
fill : #0f0
} ,
geometry : {
type : Polygon ,
coordinates : [ [
[ - 122.801742 , 45.48565 ] ,
[ - 122.801742 , 45.60491 ] ,
[ - 122.5847
]]]
}
全部评论 (0)
还没有任何评论哟~


