公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
Feature
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
一个 GeoJSON 地图项对象(请参阅 RFC 7946),其中包含以下内容:一个名为“type”的字段中的字符串“Feature”;一个名为“geometry”的字段中的几何图形;以及一个名为“properties”的字段中的键/值属性。
JSON 表示法 |
{
"type": string,
"geometry": value,
"properties": value
} |
字段 |
type |
string
此字符串始终存在,且等于“Feature”。
|
geometry |
value (Value format)
地图项的几何图形。如果相应功能具有几何图形,则此属性将包含 google.protobuf.Struct 。否则,它将包含 google.protobuf.NullValue 。
|
properties |
value (Value format)
功能的属性。如果此功能存在属性,则会包含 google.protobuf.Struct 。否则,它将包含 google.protobuf.NullValue 。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eRepresents geographical features using a JSON object with "type", "geometry", and "properties" fields.\u003c/p\u003e\n"],["\u003cp\u003eThe "type" field is always a string with the value "Feature".\u003c/p\u003e\n"],["\u003cp\u003eGeometry and properties are stored in "geometry" and "properties" fields respectively, utilizing the \u003ccode\u003egoogle.protobuf.Value\u003c/code\u003e format.\u003c/p\u003e\n"],["\u003cp\u003eThese fields will contain a \u003ccode\u003egoogle.protobuf.Struct\u003c/code\u003e if data is present and \u003ccode\u003egoogle.protobuf.NullValue\u003c/code\u003e if not.\u003c/p\u003e\n"]]],["The core content describes a GeoJSON feature object structured with three fields: `type`, `geometry`, and `properties`. The `type` field always contains the string \"Feature\". The `geometry` field holds the feature's geometry data as a `google.protobuf.Struct` or `google.protobuf.NullValue`. The `properties` field stores key/value pairs as a `google.protobuf.Struct` or `google.protobuf.NullValue`. Both `geometry` and `properties` use the [Value](https://protobuf.dev/reference/protobuf/google.protobuf/#value) format.\n"],null,["# Feature\n\nA GeoJSON feature object (see RFC 7946) containing the string \"Feature\" in a field named \"type\", the geometry in a field named \"geometry\", and key/value properties in a field named \"properties\".\n\n| JSON representation |\n|--------------------------------------------------------------------|\n| ``` { \"type\": string, \"geometry\": value, \"properties\": value } ``` |\n\n| Fields ||\n|--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `type` | `string` This string is always present and equal to \"Feature\". |\n| `geometry` | `value (`[Value](https://protobuf.dev/reference/protobuf/google.protobuf/#value)` format)` The geometry of the feature. This will contain a `google.protobuf.Struct` if geometry is present for this feature. Otherwise, it will hold a `google.protobuf.NullValue`. |\n| `properties` | `value (`[Value](https://protobuf.dev/reference/protobuf/google.protobuf/#value)` format)` The properties of the feature. This will contain a `google.protobuf.Struct` if properties are present for this feature. Otherwise, it will hold a `google.protobuf.NullValue`. |"]]