ee.Geometry.Point

  • ee.Geometry.Point creates a point geometry in Earth Engine.

  • Points can be constructed using a list of [x,y] coordinates and an optional projection (defaults to EPSG:4326).

  • Conveniently, points in EPSG:4326 can be created using ee.Geometry.Point(lng, lat).

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
coordsList<Number>A 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])