Select to view content in your preferred language

Georeferencing with Python?

950
3
07-26-2013 09:24 AM
MichaelGlassman2
Deactivated User
Is it possible for me to georeference a CAD file in ArcMap using Python? I know the projection, rotation angle, the X and Y shift distances, and the scale value.
Tags (2)
0 Kudos
3 Replies
JimCousins
MVP Alum
You could use the information you have to create a CAD World file.
0 Kudos
MichaelGlassman2
Deactivated User
Would it be possible to use ArcPy to access/utilize the World File
0 Kudos
JimCousins
MVP Alum
Yes. You need to:
1) Create a new text file with the appropriate name in the same directory as the CAD file.
2) Use open(outputfilename, "w") to open the new text file for writing.
3) Write your information in the appropriate format a line at a time
4) Close your output file.

If you have never worked with file I/O:
http://en.wikibooks.org/wiki/Non-Programmer's_Tutorial_for_Python_3/File_IO
Regards,
Jim
0 Kudos