AnsweredAssumed Answered

Easiest Way to get a Point from a Geometry

Question asked by gigeo on Aug 22, 2013
Latest reply on Sep 19, 2013 by gigeo
Hey @all,

I am pretty new to android programming and i am not able to get a point from a geometry object (of type point). What is the easiest way to do so?

Here is my code so far (the featureSet results from a successful Query):

Graphic[] help = featureSet.getGraphics();
Graphic graphic = help[0]; // I just need the first Graphic that is returned
Geometry geo = graphic.getGeometry();

// How can I transform the Geometry geo to a Point p for zooming the map?

Thank you very much.