Select to view content in your preferred language

Project Graphics loses attributes

720
1
07-19-2010 05:45 AM
RobertMEIER
Regular Contributor
Apparently this is designed behavior, projecting a list of graphics with attributes, cleans them of the attributes?

I have a seen another post on the old forums about this issue and that is what is says.

So how am I supposed to preserve attributes when I project a feature of list of features?
0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor
The REST service does not preserve attributes, however it does preserve the order the features were sent in, so its guaranteed that the first feature you used as input will be the first result you get back. That way you can quickly set the geometry back.
So something along the lines of:

 
for(int i = 0;i<results.Count;i++)
     myLayer.Graphics.Geometry = results.Geometry;
0 Kudos