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).

Usage Returns
ee.Geometry.Point(coords, proj ) Geometry.Point
Argument Type Details
coords
List<Number> A list of two [x,y] coordinates in the given projection.
proj
Projection, optional The 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 
 ]) 
Create a Mobile Website
View Site in Mobile | Classic
Share by: