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 | 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
// 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
# Construct a point from coordinates.
point = ee.Geometry.Point([-122.08412, 37.42189])
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["`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)`."]]],["The `ee.Geometry.Point` function creates a point geometry. It accepts a list of two coordinates `[x, y]` and an optional projection. If no projection is given, it defaults to EPSG:4326. Multiple numerical arguments can be used to specify longitude and latitude for EPSG:4326. The function returns a `Geometry.Point` object. Example usage: `ee.Geometry.Point([-122.08412, 37.42189])` constructs a point using longitude and latitude coordinates.\n"]]