doPointDistance.py.diff

Proposed patch - Alexander Bruy, 2010-03-07 09:11 AM

Download (2.17 KB)

View differences:

python/plugins/fTools/tools/doPointDistance.py (working copy)
1 1
#-----------------------------------------------------------
2
# 
2
#
3 3
# Create Point Distance Matrix
4 4
#
5
# A QGIS plugin for measuring distances between points. Measure 
5
# A QGIS plugin for measuring distances between points. Measure
6 6
# distances between two point layers, and output the results
7 7
# as: a) Standard distance matrix, b) Linear distance matrix
8 8
# or c) Summary distance matrix
......
13 13
# WEB  : www.geog.uvic.ca/spar/carson
14 14
#
15 15
#-----------------------------------------------------------
16
# 
16
#
17 17
# licensed under the terms of GNU GPL 2
18
# 
18
#
19 19
# This program is free software; you can redistribute it and/or modify
20 20
# it under the terms of the GNU General Public License as published by
21 21
# the Free Software Foundation; either version 2 of the License, or
22 22
# (at your option) any later version.
23
# 
23
#
24 24
# This program is distributed in the hope that it will be useful,
25 25
# but WITHOUT ANY WARRANTY; without even the implied warranty of
26 26
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27 27
# GNU General Public License for more details.
28
# 
28
#
29 29
# You should have received a copy of the GNU General Public License along
30 30
# with this program; if not, write to the Free Software Foundation, Inc.,
31 31
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
32
# 
32
#
33 33
#---------------------------------------------------------------------
34 34

  
35 35
from PyQt4.QtCore import *
......
60 60
					self.inPoint2.addItem(layer.name())
61 61

  
62 62
	def update1(self, inputLayer):
63
		self.inField1.clear()
63 64
		changedLayer = self.getVectorLayerByName(unicode(inputLayer))
64 65
		changedField = self.getFieldList(changedLayer)
65 66
		for i in changedField:
......
67 68
				self.inField1.addItem(unicode(changedField[i].name()))
68 69

  
69 70
	def update2(self, inputLayer):
71
		self.inField2.clear()
70 72
		changedLayer = self.getVectorLayerByName(unicode(inputLayer))
71 73
		changedField = self.getFieldList(changedLayer)
72 74
		for i in changedField: