ee.Geometry.Point

建構描述點的 ee.Geometry。

為方便起見,如果所有引數都是數字,可以使用 varargs。這樣就能建立 EPSG:4326 點,例如 ee.Geometry.Point(lng, lat)。

用量傳回
ee.Geometry.Point(coords, proj)Geometry.Point
引數類型詳細資料
coordsList<Number>指定投影中的兩個 [x,y] 座標清單。
proj投影 (選用)這個幾何圖形的投影,如未指定,則為 EPSG:4326。

範例

程式碼編輯器 (JavaScript)

// Construct a point from coordinates.
var point = ee.Geometry.Point([-122.08412, 37.42189]);

Python 設定

請參閱 Python 環境頁面,瞭解 Python API 和如何使用 geemap 進行互動式開發。

import ee
import geemap.core as geemap

Colab (Python)

# Construct a point from coordinates.
point = ee.Geometry.Point([-122.08412, 37.42189])