[GRASS-SVN] r42588 - grass-addons/gui/wxpython/wx.path
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jun 19 08:23:55 EDT 2010
Author: rashadkm
Date: 2010-06-19 12:23:55 +0000 (Sat, 19 Jun 2010)
New Revision: 42588
Added:
grass-addons/gui/wxpython/wx.path/myroads.dbf
grass-addons/gui/wxpython/wx.path/myroads.prj
grass-addons/gui/wxpython/wx.path/myroads.shp
grass-addons/gui/wxpython/wx.path/myroads.shx
Modified:
grass-addons/gui/wxpython/wx.path/mapdisplay_window.py
grass-addons/gui/wxpython/wx.path/wx.path.py
Log:
added vector file
Modified: grass-addons/gui/wxpython/wx.path/mapdisplay_window.py
===================================================================
--- grass-addons/gui/wxpython/wx.path/mapdisplay_window.py 2010-06-19 11:55:19 UTC (rev 42587)
+++ grass-addons/gui/wxpython/wx.path/mapdisplay_window.py 2010-06-19 12:23:55 UTC (rev 42588)
@@ -108,6 +108,7 @@
self.select = {} # selecting/unselecting decorations for dragging
self.textdict = {} # text, font, and color indexed by id
self.currtxtid = None # PseudoDC id for currently selected text
+ self.flag =False
#
# Zoom objects
@@ -147,6 +148,7 @@
return
self.counter = self.counter + 1
+ self.flag=True
point =("%.*f|%.*f" % (precision, e, precision, n))
self.points.append(point + '|point')
if self.counter == 2:
@@ -176,6 +178,9 @@
self.Map.AddLayer(type='vector', name=self.mapname, command=self.cmd)
self.UpdateMap(render=True)
self.counter =0
+ self.points=[]
+ #os.remove("tmp1")
+ #os.remove("tmp2")
def DefinePseudoDC(self, vdigit = False):
"""!Define PseudoDC class to use
@@ -913,7 +918,7 @@
### self.OnPaint(None)
# update statusbar
- self.parent.StatusbarUpdate()
+# self.parent.StatusbarUpdate()
self.Refresh()
self.processMouse = True
Added: grass-addons/gui/wxpython/wx.path/myroads.dbf
===================================================================
(Binary files differ)
Property changes on: grass-addons/gui/wxpython/wx.path/myroads.dbf
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: grass-addons/gui/wxpython/wx.path/myroads.prj
===================================================================
--- grass-addons/gui/wxpython/wx.path/myroads.prj (rev 0)
+++ grass-addons/gui/wxpython/wx.path/myroads.prj 2010-06-19 12:23:55 UTC (rev 42588)
@@ -0,0 +1 @@
+PROJCS["UTM Zone 13, Northern Hemisphere",GEOGCS["clark66",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-105],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]
\ No newline at end of file
Added: grass-addons/gui/wxpython/wx.path/myroads.shp
===================================================================
(Binary files differ)
Property changes on: grass-addons/gui/wxpython/wx.path/myroads.shp
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: grass-addons/gui/wxpython/wx.path/myroads.shx
===================================================================
(Binary files differ)
Property changes on: grass-addons/gui/wxpython/wx.path/myroads.shx
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: grass-addons/gui/wxpython/wx.path/wx.path.py
===================================================================
--- grass-addons/gui/wxpython/wx.path/wx.path.py 2010-06-19 11:55:19 UTC (rev 42587)
+++ grass-addons/gui/wxpython/wx.path/wx.path.py 2010-06-19 12:23:55 UTC (rev 42588)
@@ -92,7 +92,7 @@
self.Maximize()
- wx.MessageBox('Development has only started. currently works with spearfish data (myroads vector file). Kindly bear with me, Thankyou', 'Info')
+ wx.MessageBox('Development has only started. currently works with spearfish data (myroads vector file given in folder). Kindly bear with me, Thankyou', 'Info')
@@ -202,6 +202,8 @@
return
self.statusbar.SetStatusText("%.*f; %.*f" % (precision, e, precision, n), 0)
+ p = self.statusbar.GetStatusText()
+ self.statusbar.SetStatusText(p + " Double Click to select Points")
event.Skip()
More information about the grass-commit
mailing list