ee.Geometry.Point

Constructs an ee.Geometry describing a point.

For convenience, varargs may be used when all arguments are numbers. This allows creating EPSG:4326 points, e.g. ee.Geometry.Point(lng, lat).

UsageReturns
ee.Geometry.Point(coords, proj)Geometry.Point
ArgumentTypeDetails
coordsListA list of two [x,y] coordinates in the given projection.
projProjection, optionalThe projection of this geometry, or EPSG:4326 if unspecified.

Examples

Code Editor (JavaScript)

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

Python setup

See the Python Environment page for information on the Python API and using geemap for interactive development.

import ee
import geemap.core as geemap

Colab (Python)

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