jan: thuban/Extensions/gns2shp gns2shp.py,1.3,1.4

cvs@intevation.de cvs at intevation.de
Tue Sep 28 21:27:00 CEST 2004


Author: jan

Update of /thubanrepository/thuban/Extensions/gns2shp
In directory doto:/tmp/cvs-serv11117

Modified Files:
	gns2shp.py 
Log Message:
Added registration of the extension.


Index: gns2shp.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/gns2shp/gns2shp.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- gns2shp.py	18 May 2004 21:09:50 -0000	1.3
+++ gns2shp.py	28 Sep 2004 19:26:58 -0000	1.4
@@ -23,7 +23,7 @@
 
 import os, sys
 
-# only import GUI when not called as command line tool
+# only import GUI and register when not called as command line tool
 if __name__ != '__main__':
     from wxPython.wx import *
 
@@ -32,8 +32,21 @@
     from Thuban import _
     from Thuban.Model.layer import Layer
 
+from Thuban.UI.extensionregistry import ExtensionDesc, ext_registry
+
 import shapelib
 import dbflib
+
+
+ext_registry.add(ExtensionDesc(
+    name = 'gns2shp',
+    version = '1.0.0',
+    authors= [ 'Jan-Oliver Wagner' ],
+    copyright = '2003, 2004 Intevation GmbH',
+    desc = _("Converts GNS (Geographical Name Service\n" \
+             "of NIMA) to Shapefile format and\n" \
+             "displays the data.")))
+
 
 def gns2shp(src_fname, dest_fname):
     """Convert a file from gns textformat into a Shapefile.





More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)