Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Image.pixelCoordinates
Stay organized with collections
Save and categorize content based on your preferences.
Creates a two-band image containing the x and y coordinates of each pixel in the given projection.
Usage | Returns | ee.Image.pixelCoordinates(projection) | Image |
Argument | Type | Details | projection | Projection | The projection in which to provide pixels. |
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 2024-09-19 UTC.
[null,null,["Last updated 2024-09-19 UTC."],[[["\u003cp\u003eGenerates an image with two bands representing the x and y coordinates of each pixel.\u003c/p\u003e\n"],["\u003cp\u003eThe output image uses the specified projection for coordinate calculations.\u003c/p\u003e\n"],["\u003cp\u003eUseful for spatial analysis and referencing pixel locations within the image.\u003c/p\u003e\n"]]],[],null,["# ee.Image.pixelCoordinates\n\nCreates a two-band image containing the x and y coordinates of each pixel in the given projection.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------|---------|\n| `ee.Image.pixelCoordinates(projection)` | Image |\n\n| Argument | Type | Details |\n|--------------|------------|--------------------------------------------|\n| `projection` | Projection | The projection in which to provide pixels. |"]]