Could Esri consider adding a Arcade function that could convert multipart feature vertices to points?
Doesn't Centroid do the trick? Maybe combined with MultiPartToSinglePart?
@jcarlson I updated the idea to clarify what I meant: convert feature vertices to points. Thanks.
var geo = Geometry($feature) var vertices = [] for(var p in geo.rings) { for(var q in geo.rings[p]) { Push(vertices, geo.rings[p][q]) } } Console(vertices[0].type) Console(vertices)
Point [{"x":-9812667.6540304,"y":5129910.50665289,"spatialReference":{"wkid":102100}}, {"x":-9812667.66625145,"y":5129910.50667924,"spatialReference":{"wkid":102100}}, // ... {"x":-9812667.6540304,"y":5129910.50665289,"spatialReference":{"wkid":102100}}]
Sign in to post, follow content, and more. New here? Register for free.