Select to view content in your preferred language

How do I retrieve the xy coordinates of a newly created point graphic?

2270
2
Jump to solution
08-22-2012 08:28 AM
deleted-user-4bdbdJY7UQ_i
Deactivated User
Hi All,

I am trying to send the xy coordinates information from a newly created point feature to pre-populate a couple of fields in my form.

I am pulling my hair out trying to figure out how to get the xy data at the time of point creation (without additional screen taps).

Any help is welcome!

Mark
0 Kudos
1 Solution

Accepted Solutions
NimeshJarecha
Esri Regular Contributor
Here is how you can get that...

AGSPoint *point = (AGSPoint*)pointGraphic.geometry;
NSLog(x: %.6f,point.x);
NSLog(y: %.6f,point.y);

Hope this helps!

Regards,
Nimesh

View solution in original post

0 Kudos
2 Replies
NimeshJarecha
Esri Regular Contributor
Here is how you can get that...

AGSPoint *point = (AGSPoint*)pointGraphic.geometry;
NSLog(x: %.6f,point.x);
NSLog(y: %.6f,point.y);

Hope this helps!

Regards,
Nimesh
0 Kudos
deleted-user-4bdbdJY7UQ_i
Deactivated User
Got it, Thanks so much!
0 Kudos