AnsweredAssumed Answered

How to get a centroid with java SDK from a Polygon after inquiry an on-demand feature layer?

Question asked by on Jul 30, 2016
Latest reply on Aug 4, 2016 by

Hi guys,





I'm a completly newbie with Esri arcgis SDK for Java. I have some experience with the Javascript API, but not much. In any case, due to a requirement we developed an small piece of code intended to locate incidences in a map. In order to do so, we needed to get the centroid of an specific shape coming from a Futurelayer deployed within an Esri server.


In order to do so, we found a really useful javascript instruction; features[0].geometry.getExtent().getCenter(). Right now,  I'm trying to find something similar in Java. I didn't manage to find anything meaningful for me, assuming my 'incompetence' due to the fact of a lack of skills. For that reason, in a despair I'm trying to ask this question in this forum and many others.


Hoping you don't you consider it as stupid question, but as I mentioned before I was unable to find any solution yet.


Any help on this will be really welcomed!!! I'm so sorry, if this question or a similar one wes already answered. I'll appreciate a link o guideline in order to help sort out this issue.




Many thanks and best regards.