Python Console

The python console lets you interface with the python bindings for TrLib allowing you to automatise trivial tasks by simple python scripts.

For example you can type:

x,y,z=Transform("geoEwgs84","utm32Eed50",11.75,55.10,100.0)

and hit enter. Now the variables x,y and z will hold output coordinates, which you can the use further in your sripting session. For example you could write them to an output file:

f=open("myfile.txt","w")
f.write("Output was: %.4f, %,4f, %.4f\n" %(x,y,z))
f.close()

If you are doing more complicated things like defining new classes or functions, uncheck the  'Run command on enter' check box, and use the 'compile' button the parse the python code.

Plugins

You can extend the functionality by placing plugins in subfolders in a folder named:
~/.kmstrans2/plugins 
On win32, the users home directory ~ is typically: C:\Documents and Settings\<my_user_name>

A plugin must be a python package (see http://docs.python.org/2/tutorial/modules.html ) i.e. a collection of scripts in a folder which contains a __init__.py script. This file can be completely blank in which case it just marks that the files in the folder should be considered a package.

More detailed developer oriented information is available in the repository wiki.