公告:凡是在
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 。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eA GeoJSON feature object is represented in JSON format with "type", "geometry", and "properties" fields.\u003c/p\u003e\n"],["\u003cp\u003eThe "type" field is a string always set to "Feature".\u003c/p\u003e\n"],["\u003cp\u003eThe "geometry" field contains the feature's geometry data, represented as a \u003ccode\u003egoogle.protobuf.Struct\u003c/code\u003e or \u003ccode\u003egoogle.protobuf.NullValue\u003c/code\u003e if not present.\u003c/p\u003e\n"],["\u003cp\u003eFeature properties are stored in the "properties" field, using the same \u003ccode\u003egoogle.protobuf.Struct\u003c/code\u003e or \u003ccode\u003egoogle.protobuf.NullValue\u003c/code\u003e representation as geometry.\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`. |"]]