Announcement: All noncommercial projects registered to use Earth Engine beforeApril 15, 2025 mustverify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.

ee.Projection

  • Theee.Projection function creates a Projection object with a specified base coordinate system and an optional transform.

  • The base coordinate system (crs) can be provided as a well-known authority code (e.g., 'EPSG:4326') or a WKT string.

  • An optional transform can be provided either as a 2x3 affine transform matrix in row-major order using thetransform argument, or as a WKT string using thetransformWkt argument, but not both.

Returns a Projection with the given base coordinate system and the given transform between projected coordinates and the base. If no transform is specified, the identity transform is assumed.

UsageReturns
ee.Projection(crs,transform,transformWkt)Projection
ArgumentTypeDetails
crsObjectThe base coordinate reference system of this Projection, given as a well-known authority code (e.g., 'EPSG:4326') or a WKT string.
transformList, default: nullThe transform between projected coordinates and the base coordinate system, specified as a 2x3 affine transform matrix in row-major order: [xScale, xShearing, xTranslation, yShearing, yScale, yTranslation]. May not specify both this and 'transformWkt'.
transformWktString, default: nullThe transform between projected coordinates and the base coordinate system, specified as a WKT string. May not specify both this and 'transform'.

Examples

Code Editor (JavaScript)

// Construct projections.// Printing the projection will show the EPSG code if it is a direct match.//// e.g. You will see this for the string 'EPSG:3857'//   type: Projection//   crs: EPSG:3857//   transform: [1,0,0,0,1,0]print(ee.Projection('EPSG:3857'));// https://epsg.io/3857print(ee.Projection('EPSG:4326'));// https://epsg.io/4326// WKT projection description for https://epsg.io/27572varproj=ee.Projection('PROJCS["NTF (Paris) / Lambert zone II", '+'  GEOGCS["NTF (Paris)", '+'    DATUM["Nouvelle Triangulation Francaise (Paris)", '+'      SPHEROID["Clarke 1880 (IGN)", 6378249.2, 293.4660212936269,'+'               AUTHORITY["EPSG","7011"]], '+'      AUTHORITY["EPSG","6807"]], '+'    PRIMEM["Paris", 2.5969213, AUTHORITY["EPSG","8903"]], '+'    UNIT["grade", 0.015707963267948967], '+'    AXIS["Geodetic longitude", EAST], '+'    AXIS["Geodetic latitude", NORTH], '+'    AUTHORITY["EPSG","4807"]], '+'  PROJECTION["Lambert_Conformal_Conic_1SP", AUTHORITY["EPSG","9801"]], '+'  PARAMETER["central_meridian", 0.0], '+'  PARAMETER["latitude_of_origin", 52.0], '+'  PARAMETER["scale_factor", 0.99987742], '+'  PARAMETER["false_easting", 600000.0], '+'  PARAMETER["false_northing", 2200000.0], '+'  UNIT["m", 1.0], '+'  AXIS["Easting", EAST], '+'  AXIS["Northing", NORTH], '+'  AUTHORITY["EPSG","27572"]]');print(proj);// crs: EPSG:27572

Python setup

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

importeeimportgeemap.coreasgeemap

Colab (Python)

# Construct projections.# Printing the projection will show the EPSG code if it is a direct match.## e.g. You will see this for the string 'EPSG:3857'#   type: Projection#   crs: EPSG:3857#   transform: [1,0,0,0,1,0]display(ee.Projection('EPSG:3857'))# https://epsg.io/3857display(ee.Projection('EPSG:4326'))# https://epsg.io/4326# WKT projection description for https://epsg.io/27572proj=ee.Projection('PROJCS["NTF (Paris) / Lambert zone II", '+'  GEOGCS["NTF (Paris)", '+'    DATUM["Nouvelle Triangulation Francaise (Paris)", '+'      SPHEROID["Clarke 1880 (IGN)", 6378249.2, 293.4660212936269,'+'               AUTHORITY["EPSG","7011"]], '+'      AUTHORITY["EPSG","6807"]], '+'    PRIMEM["Paris", 2.5969213, AUTHORITY["EPSG","8903"]], '+'    UNIT["grade", 0.015707963267948967], '+'    AXIS["Geodetic longitude", EAST], '+'    AXIS["Geodetic latitude", NORTH], '+'    AUTHORITY["EPSG","4807"]], '+'  PROJECTION["Lambert_Conformal_Conic_1SP", AUTHORITY["EPSG","9801"]], '+'  PARAMETER["central_meridian", 0.0], '+'  PARAMETER["latitude_of_origin", 52.0], '+'  PARAMETER["scale_factor", 0.99987742], '+'  PARAMETER["false_easting", 600000.0], '+'  PARAMETER["false_northing", 2200000.0], '+'  UNIT["m", 1.0], '+'  AXIS["Easting", EAST], '+'  AXIS["Northing", NORTH], '+'  AUTHORITY["EPSG","27572"]]')display(proj)# crs: EPSG:27572

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-07-13 UTC.