0

There is geoTransformation named:

WGS_1984_Major_Auxiliary_Sphere_To_WGS_1984

I know it exists because I can access it with Projection Tool in ArcToolbox. But for the life of me I cannot find it any of the geoTransformation constant lists (esriSRGeoTransformationType, esriSRGeoTransformation2Type, esriSRGeoTransformation3Type). How do I access the enum for this geotransformation with ArcObjects?

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
rgwozdz
  • 807
  • 8
  • 22
  • Still not sure what the enum is, but its value is 108100. This code:

    `ISpatialReferenceFactory2 spatialReferenceFactory2 = new SpatialReferenceEnvironmentClass();

    IGeoTransformation geoTransformation = spatialReferenceFactory2.CreateGeoTransformation(108100) as IGeoTransformation;

    Console.Write(geoTransformation.Name);`

    Will print: "WGS_1984_Major_Auxiliary_Sphere_To_WGS_1984" ESRI appears to have omitted this enum from the ArcObjects Library Reference (Geometry). Very annoying.

    – rgwozdz Sep 17 '11 at 05:09
  • 1
    The code here could be adapted to find a geotransformation by name. – Kirk Kuykendall Sep 19 '11 at 01:35

1 Answers1

0

As rgwozdz states, it's 108100. The enums have not been kept up-to-date. Up-to-date geographic/datum transformation lists are here. I'm actively working on publishing up-to-date documentation for all the various projection engine objects for ArcGIS 10.1.

Note: I work for Esri.

mkennedy
  • 18,916
  • 2
  • 38
  • 60