report - add x,y coordinate of feature
I feel this is easy. I am creating a report for a cemetery viewer and for the selected feature, I wish to add the x,y coordinate of the feature location in latitude,longitude on the report somewhere. Could be in the map or could just be some text on the report - I don't care.
The service is in WGS 84 (and so is app) but the original data is state plane. In theory, I was thinking something like SHAPE.X for the Data Field on the report for x-coord. But I know that won't work.
Any ideas? I apologize if this is somewhere easy and I have missed it.
Thanks,
Carmen
0
-
The easiest way is to add the coordinates to your dataset and just grab the attribute fields. However, you can take the geometry (assuming a point) and project it, then pull the coordinates. Lastly, we have an unreleased Workflow Module that will take coordinates and utilize the GeometryServer to/fromGeoCoordinateString funtion, which we use to get USNG coordinates.
Bunch of different ways to do it. Personally, the more that can be preprocessed the better, so if you can I recommend adding the coordinates to your featureclass.0 -
I was afraid you would say that (adding fields) would be the easiest. I may have to create the report from a workflow anyway so maybe I will consider the the other option. Your answer made me push it lower on the "have to have on the report" before releasing the app. ha.
After all, they could use the geolocate on their phone and find it also.
thanks for the quick reply.0 -
It is always funny to search for something and come across your own post from 10 yrs ago but with GCE. I know some of you know the feeling.
1
Please sign in to leave a comment.
Comments
3 comments