python - 如何验证geojson中的属性键
问题描述
我想知道为什么下面发布的 geojson 格式无效。我试图在 http://geojson.io中可视化它的数据
但什么都没有显示。
geojson
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[[7.85563468082516,49.90287230375267],[7.855636808249913,49.902782379662085],[7.855776033932631,49.902783753651605],[7.855773906766568,49.902873677746555]]
]
]
},"properties": {"areaOfCoverage":"30"}},
}
解决方案
尝试这个:
{
"type": "FeatureCollection",
"features": [
{
"properties":{"areaOfCoverage":"30"},
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
7.85563468082516,
49.90287230375267
],
[
7.855636808249913,
49.902782379662085
],
[
7.855776033932631,
49.902783753651605
],
[
7.85563468082516,
49.90287230375267
]
]
]
}
}
]
}
推荐阅读
- html - CSS网格透视/变换
- angular - 如何在使用 setTimeout() 完全加载网页之前在模板中使用引导微调器?
- database - Laravel Virgin:在参与关系的模型的 mutator 中访问逆模型关系
- c++ - 忽略流中输入字符的最佳方法
- python - 前 N 行,直到找到值不为空
- terraform - Terraform:以合理的方式填充对象,然后部分覆盖?
- version - 如何将 cdm.exe 中的 firebase-tools 降级到 6.0.0?
- angular - 导航到其他组件并返回不会再次触发 ngFor
- node.js - 带有 Browserify 的反应式友好库?
- c - 如何将流从一个文件修改到另一个文件