Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am attempting to fully automate the process of georeferencing a load of .png files - i have xml file containing the co-ordinates - but how can i use them?

Does anyone have any advice?

share|improve this question
use a .bat [dos batch] to rename the .xml to a .pgw - if you give an example of the structure of the .xml file it would be easy to see what other factors you require or need. Scale factor/pixel size & rotation. – Mapperz Dec 15 '10 at 14:55
Did you see: Work flow for georeferencing imagery using open source tools? <…;. – Regan Sarwas Dec 16 '10 at 6:51
Well, scripting (python, model builder) requires the georeference toolbar's functions available as tool(s) in the toolbar. However, the tool we were looking for is named "Warp" (Data Managment, Raster) and can be easily automated. To make it not too easy, it's not able to accept a same-styled txt file as the georeferencing toolbar will export, but a list of source points and a list of of target points. Regards, Daniel – user23698 Nov 6 '13 at 17:08
up vote 4 down vote accepted

I assume you will have to create a script in modelbuilder.

The georeference tool has a way to load the match pairs from txt file.

The format is simple...

1359096.642582 353463.253614 1343639.244522 360489.343642

1513436.420187 348310.787594 1531938.457260 360957.749644

source xy, and map xy.

You should also specify the transformation type. That will depend on how many points you have for each image. 1st, 2nd, or 3rd order polynomial or adjust.

Wish I could help more.

share|improve this answer
@Alice Did you find a way to use your xml? I'm sure my answer didn't get you all the way there. Successful implementation would be helpful to others. – Brad Nesom Feb 18 '11 at 16:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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