GeoJSON数据格式及几何类型

GeoJSON是一种对各种地理数据结构进行编码的格式,基于Javascript对象表示法(JavaScript Object Notation, 简称JSON)的地理空间信息数据交换格式。GeoJSON对象可以表示几何、特征或者特征集合。GeoJSON支持下面几何类型:点、线、面、多点、多线、多面和几何集合。

GEOJSON是一种地理上的数据格式:

{
“type”: “Feature”,
“geometry”: {
“type”: “Point”,
“coordinates”: [125.6, 10.1]
},
“properties”: {
“name”: “Dinagat Islands”
}
}

几何图形类型包括:

Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon

GeoJSON特征集合:

{
“type”: “FeatureCollection”,
“features”: [{
“type”: “Feature”,
“geometry”: {
“type”: “Point”,
“coordinates”: [102.0, 0.5]
},
“properties”: {
“prop0”: “value0”
}
}, {
“type”: “Feature”,
“geometry”: {
“type”: “LineString”

猜你喜欢

转载自blog.csdn.net/cuclife/article/details/131262867
今日推荐