ee.Image.pixelLonLat

Stay organized with collections Save and categorize content based on your preferences.
Creates an image with two bands named 'longitude' and 'latitude', containing the longitude and latitude at each pixel, in degrees.

UsageReturns
ee.Image.pixelLonLat()Image

No arguments.

Examples

Code Editor (JavaScript)

// https://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system
var longitude = ee.Image.pixelLonLat().select('longitude');
var utmZones = longitude.add(180).divide(6).int();
Map.addLayer(utmZones, {min:0, max: 60}, 'UTM zones');