当前位置:   article > 正文

Web Features Service GeoJson数据汇总_featureservice多个数据集

featureservice多个数据集

WFS(Web Feature Service)是一种基于HTTP的地图服务,它允许用户查询、插入、更新和删除地理要素。GeoJSON(Geographic JavaScript Object Notation)是一种轻量级的数据交换格式,通常用于在Web上传输地理信息。

  1. {
  2. "type": "FeatureCollection", // 要素集合,一般都是这个值
  3. "crs": { // 意思是当前坐标的信息,这个属性一般返回的值里面没有,至少我没遇到过
  4. "type": "name",
  5. "properties": {
  6. "name": "urn:ogc:def:crs:OGC:1.3:CRS84"
  7. }
  8. },
  9. "features": [ // 要素集合
  10. {
  11. "type": "Feature",
  12. "id": 1103,
  13. "properties": {
  14. "_draw_type": "point"
  15. },
  16. "geometry": {
  17. // 集合类型:Point、LineString、Polgon、MultiPoint、MultiLineString、MultiPolgon、GeometryCollection
  18. "type": "Point",
  19. "coordinates": [
  20. 102.90336351,
  21. 40.79200619
  22. ]
  23. },
  24. "bbox": [
  25. 102.90336351,
  26. 40.79200619,
  27. 102.90336351,
  28. 40.79200619
  29. ]
  30. },
  31. {
  32. "type": "Feature",
  33. "geometry": {
  34. "type": "GeometryCollection",// 这种类型返回多种几个类型的要素数据
  35. "geometries": [
  36. {
  37. "type": "Point",
  38. "coordinates": [-118.2437, 34.0522]
  39. },
  40. {
  41. "type": "LineString",
  42. "coordinates": [
  43. [-118.2437, 34.0522],
  44. [-74.0059, 40.7128]
  45. ]
  46. }
  47. ]
  48. },
  49. "properties": {
  50. "name": "Los Angeles to New York"
  51. }
  52. }
  53. ]
  54. }

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号