AnsweredAssumed Answered

How to get coordinates of each vertex of a polygon?

Question asked by siyakubeka on Jun 23, 2020
Latest reply on Jun 29, 2020 by siyakubeka

Hi All


I am trying to get the coordinates of each vertex and separate they by putting all the latitudes on one field and all the longitudes on one field. This is who I tried to do it but it is not dong what I want it to do:


for (var i = 0; i < gra.geometry.rings.length; i++){
for (var p = 0; p < gra.geometry.rings[i].length; p++){
crmLatitude = String(gra.geometry.rings[i]);
crmLongitude = String(gra.geometry.rings[p]);
var LatLon = String(gra.geometry.rings[i][p]);
latlon = LatLon;



How can I do it? Please assist.


Kind Regards

Siyabonga Kubeka