I have around 300 polygons spread across a large area and wish to create a set of points, one for each polygon, that represents the maximum elevation value along the edge (or within) the polygon.
I tried this in ArcGIS Pro with a 10m resolution DEM, but the results weren't good enough (see below). I have the 1m resolution DEM for the whole country loaded in GEE, but have only added points as centroids to polygons before, and am not sure how to approach this in GEE. I have seen examples how to make a table of the max elevation using zonal statistics, but I don't know how to go from there to a point.
Here is an example script with a DEM and some polygons:
https://code.earthengine.google.com/bf8f8e77e7ca5d53f6c0a14f45c30ca8
var DEM = ee.Image("CGIAR/SRTM90_V4")
var VisParam = {"opacity":1,"bands":["elevation"],"min":-1,"max":3021,"palette":["4731ff","5ee1ff","41ff47","f3ff35","ff3925"]};
Map.addLayer (DEM, VisParam, 'DEM')```