I have the following line of code:
this.centerPoint = this.graphic.geometry.getCentroid();
When I run the program and step through the code, the value of geometry.rings is:
But when I examine the X and Y values of the resultant centerpoint variable, they look opposite from what I would expect:
X = 81.6392691466801
Y = -32.7237205172898
Which would move the geometry from the southeastern U.S. to somewhere in the Indian ocean. Obviously I'm doing something wrong. Any guesses?