AnsweredAssumed Answered

ArcGIS Engine 10.0 / updated feature not saving new spatial reference

Question asked by GlennNead on Jun 26, 2012
Latest reply on Jul 11, 2012 by GlennNead
I am using a feature cursor to reproject each feature in a feature layer to a different datum. The ProjectEx() conversion works and the stored feature has the new location (ie, underlying Point.X, Point.Y), but the new spatial reference is not saved along with it.  If I loop through checking for the old spatial reference a second time, I end up with a double projection rather than skipping it.

// geo has new SpatialReference and new X, Y
feature.set_Value(shapeIdx, geo as object);
geo = feature.get_value(shapeIdx) as IGeometry5;
// geo has original Spatial reference, but new X, Y.