Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Feature.geometry
Stay organized with collections
Save and categorize content based on your preferences.
Returns the geometry of a given feature in a given projection.
Usage | Returns | Feature.geometry(maxError, proj, geodesics) | Geometry |
Argument | Type | Details | this: feature | Element | The feature from which the geometry is taken. |
maxError | ErrorMargin, default: null | The maximum amount of error tolerated when performing any necessary reprojection. |
proj | Projection, default: null | If specified, the geometry will be in this projection. If unspecified, the geometry will be in its default projection. |
geodesics | Boolean, default: null | If true, the geometry will have geodesic edges. If false, it will have edges as straight lines in the specified projection. If null, the edge interpretation will be the same as the original geometry. This argument is ignored if proj is not specified. |
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."],[[["\u003cp\u003eReturns the geometry of a specified feature, optionally reprojecting it.\u003c/p\u003e\n"],["\u003cp\u003eAllows control over reprojection accuracy using the \u003ccode\u003emaxError\u003c/code\u003e parameter.\u003c/p\u003e\n"],["\u003cp\u003eAccepts an optional projection (\u003ccode\u003eproj\u003c/code\u003e) to define the geometry's output projection.\u003c/p\u003e\n"],["\u003cp\u003eEnables specifying geodesic edges or straight lines in the projected geometry using the \u003ccode\u003egeodesics\u003c/code\u003e parameter.\u003c/p\u003e\n"]]],[],null,["# ee.Feature.geometry\n\nReturns the geometry of a given feature in a given projection.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------------------------------------|----------|\n| Feature.geometry`(`*maxError* `, `*proj* `, `*geodesics*`)` | Geometry |\n\n| Argument | Type | Details |\n|-----------------|----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `feature` | Element | The feature from which the geometry is taken. |\n| `maxError` | ErrorMargin, default: null | The maximum amount of error tolerated when performing any necessary reprojection. |\n| `proj` | Projection, default: null | If specified, the geometry will be in this projection. If unspecified, the geometry will be in its default projection. |\n| `geodesics` | Boolean, default: null | If true, the geometry will have geodesic edges. If false, it will have edges as straight lines in the specified projection. If null, the edge interpretation will be the same as the original geometry. This argument is ignored if proj is not specified. |"]]