Populate Datatable Column with Geometry X and Y
Hello-
I've successfully reprojected selected points on a map and retrieved the reprojected X and Y values by using a cast activity of geometry to a MapPoint. The output is a dataTable to CSV file that has the original data from the points selected on the map, and two columns(Reproject_X and Reprojected_Y) I created by using the AddDataTableColumn activity. I would like to select multiple points and populate the corresponding rows in the custom Datatable Columns in the CSV file with each points reprojected X and Y value.
Please help!
Thanks!
Cody
0
-
Hi Cody,
It sounds like you'll need a ForEach activity to cycle through your list of points and update a value. Where do the original selected points come from (ie, query task, capture geometry activity, etc)? If they are already in a featureSet object, you might find it simpler to loop through and modify the features in the featureset rather than the eventual datatable rows.
Amanda0
Please sign in to leave a comment.
Comments
1 comment