Python Console

The python console lets you interface with the python bindings for trlib allowing you to automatise trivial tasks using python commands and 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 scripting session. For example you could write them to an output file: 


f=open("myfile.txt","w")

f.write("Output: {0:.4f} {1:.4f} {2:.4f}\n".format(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 to parse the python code.

Plugins

You can extend the functionality by placing plugins in sub folders of the folder:
~/.kmstrans2/plugins 
On windows, the users home directory ~ is typically: C:\Documents and Settings\<my_user_name> or C:\Users\<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.