赞
踩
WFS(Web Feature Service)是一种基于HTTP的地图服务,它允许用户查询、插入、更新和删除地理要素。GeoJSON(Geographic JavaScript Object Notation)是一种轻量级的数据交换格式,通常用于在Web上传输地理信息。
- {
- "type": "FeatureCollection", // 要素集合,一般都是这个值
- "crs": { // 意思是当前坐标的信息,这个属性一般返回的值里面没有,至少我没遇到过
- "type": "name",
- "properties": {
- "name": "urn:ogc:def:crs:OGC:1.3:CRS84"
- }
- },
- "features": [ // 要素集合
- {
- "type": "Feature",
- "id": 1103,
- "properties": {
- "_draw_type": "point"
- },
- "geometry": {
- // 集合类型:Point、LineString、Polgon、MultiPoint、MultiLineString、MultiPolgon、GeometryCollection
- "type": "Point",
- "coordinates": [
- 102.90336351,
- 40.79200619
- ]
- },
- "bbox": [
- 102.90336351,
- 40.79200619,
- 102.90336351,
- 40.79200619
- ]
- },
- {
- "type": "Feature",
- "geometry": {
- "type": "GeometryCollection",// 这种类型返回多种几个类型的要素数据
- "geometries": [
- {
- "type": "Point",
- "coordinates": [-118.2437, 34.0522]
- },
- {
- "type": "LineString",
- "coordinates": [
- [-118.2437, 34.0522],
- [-74.0059, 40.7128]
- ]
- }
- ]
- },
- "properties": {
- "name": "Los Angeles to New York"
- }
- }
- ]
- }
![](https://csdnimg.cn/release/blogv2/dist/pc/img/newCodeMoreWhite.png)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。