bcgov / bcgov/bcdata

Use json format instead of xml for describe_feature

未关闭
#284 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement wfs
主要语言
R
星标
87
派生
14
PR 合并指标
30 天内没有已合并 PR

描述

[This is probably unnecessarily convoluted](https://github.com/bcgov/bcdata/blob/master/R/describe-feature.R#L78), and there is an `outputFormat=application/json` option that is probably easier to parse than the xml and has more info. There are some differences in the fields however (eg. https://openmaps.gov.bc.ca/geo/pub/wfs?SERVICE=WFS&VERSION=2.0.0&REQUEST=DescribeFeatureType&outputFormat=application/json&typeNames=WHSE_ENVIRONMENTAL_MONITORING.EMS_MONITORING_LOCN_GROUPS_SVW) - notably the `GEOEMETRY` field is `gml:Geometry`, whereas the xml output `type="gml:GeometryPropertyType"`. The json has a "local type" which the xml does not.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。