I have a custom extension which adds some custom transformations to the map. When turned off, the extension is supposed to remove all the added transformations.
However, when calling IGeoTransformationOperationSet.RemoveAll(), nothing happens. The transformations are removed from the set but nothing changes in the map - the transformed features stay in the same place and do not move back to their original position.

I'm using Arcgis desktop 10.0 and my code is written in c#.

How can I turn off/on the custom transformations? What am I missing? Thanks.

  • Stupid question, but you are forcing a refresh of the data frame/active view, right?
    – mkennedy
    Commented Apr 24, 2013 at 16:05
  • Not stupid at all, and yes I do.
    – ItayMaoz
    Commented Apr 25, 2013 at 15:07

1 Answer 1


As far as I know, there are two GeoTransformationOperationSet objects and you should remove both of it. The sample code is,

//Remove from Map Object
IMapGeographicTransformations pMapGeoTrans = pMap as IMapGeographicTransformations;
IGeoTransformationOperationSet pGeoTransSet =  pMapGeoTrans.GeographicTransformations;

//Remove from SpatialReferenceEnvironment Object
ISpatialReferenceFactory2 pSRF = new SpatialReferenceEnvironmentClass();
pGeoTransSet = pSRF.GeoTransformationDefaults;

//Refresh view
IActiveView pActiveView = pMap as IActiveView;

Hope this helps you.

  • Thanks, It works now. I needed to remove the transformations from the spatial reference environment class.
    – ItayMaoz
    Commented Apr 28, 2013 at 11:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.