I am trying to draw an elevation profile of a road in Google Earth Engine. What I want is that I give a line to GEE and it gives me a plot of the underlying/intersecting pixel values.

I know GEE provides reducers to aggregate data but by point or a polygon in the form of mean, median, mode etc. Reducer do not allow you to get the raw pixel values from the image.

Does any one know about a method to extract specific raw pixel values from a raster based upon the line drawn over it.

What I am specifically trying to achieve is somewhat mimicking the Google Earth's Show Elevation profile functionality. enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.