3

I have created control points (i.e. links) using ArcMap's Georeferencing toolbar. How can I programmatically retrieve a list of these points? I'm looking for something like an enum of the links you would see in the Link Table (which is visible through the Georeferencing toolbar).

Preferably, I would then be able to step through these points and delete any one.

I am working with the ArcObjects SDK for C# .NET.

  • In the aux.xml file that is modified by ArcMap during georeferencing, GCPs are stored in SourceGCP and TargetGCP tags as an array of doubles. I've used python to parse the xml file for these tags and their values. I'm assuming the file can be rewritten to remove GCPs if you wish. – Barbarossa May 19 '16 at 12:57
2

I do not think the API to do this is publicly available. From the GeoreferenceUI library documentation:

The GeoReferenceUI library implements commands, tools, and dialog boxes that expose functionality used when rectifying spatial data. This library is meant for internal use only. There is no public API exposed.

  • That's too bad! Looks to be the case though. Thank you. You can, however, access some of the controls on the Georeferencing Toolbar through their GUIDS. – Blazinator Nov 26 '13 at 17:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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