But the query was how to do it with a file. I would say:
g.proj -c location=newloc georef=filename
Ah, my bad. Sorry for the misunderstanding.
Unfortunately that command needs GRASS already to be running to use it.
If the start-up GUI were written in C it would be really easy to add
this functionality (e.g. by copying some of the code from g.proj) -
currently though it is in Tcl/Tk.
Paul
Yes, that would be really nice functionality to have. Maybe it should be
submitted as a wish?
~ Eric.