mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
cleanup line endings and some typos in fTools
git-svn-id: http://svn.osgeo.org/qgis/trunk@10080 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
c8bfe07de1
commit
79febc8a97
@ -8,7 +8,8 @@ from frmMeanCoords import Ui_Dialog
|
||||
class Dialog(QDialog, Ui_Dialog):
|
||||
def __init__(self, iface, function):
|
||||
QDialog.__init__(self)
|
||||
self.iface = iface
self.function = function
|
||||
self.iface = iface
|
||||
self.function = function
|
||||
self.setupUi(self)
|
||||
self.updateUi()
|
||||
QObject.connect(self.toolOut, SIGNAL("clicked()"), self.outFile)
|
||||
@ -189,7 +190,7 @@ class Dialog(QDialog, Ui_Dialog):
|
||||
if vlayer.isValid():
|
||||
return vlayer
|
||||
|
||||
# Retreive the field map of a vector Layer
|
||||
# Retrieve the field map of a vector Layer
|
||||
def getFieldList(self, vlayer):
|
||||
fProvider = vlayer.dataProvider()
|
||||
feat = QgsFeature()
|
||||
|
@ -192,7 +192,7 @@ class Dialog(QDialog, Ui_Dialog):
|
||||
if layer.name() == unicode(myName):
|
||||
if layer.isValid():
|
||||
return layer
|
||||
# Retreive the field map of a vector Layer
|
||||
# Retrieve the field map of a vector Layer
|
||||
def getFieldList(self, vlayer):
|
||||
fProvider = vlayer.dataProvider()
|
||||
feat = QgsFeature()
|
||||
|
@ -69,7 +69,7 @@ class Dialog(QDialog, Ui_Dialog):
|
||||
format = QString( "<h2>%1</h2>%2 <br/> %3" )
|
||||
header = QString( "Choose output CRS:" )
|
||||
sentence1 = QString( "Please select the projection system to be used by the output layer." )
|
||||
sentence2 = QString( "Ouput layer will be projected from it's current CRS to the output CRS." )
|
||||
sentence2 = QString( "Output layer will be projected from it's current CRS to the output CRS." )
|
||||
self.projSelect = QgsGenericProjectionSelector(self, Qt.Widget)
|
||||
self.projSelect.setMessage( format.arg( header ).arg( sentence1 ).arg( sentence2 ))
|
||||
if self.projSelect.exec_():
|
||||
@ -136,7 +136,7 @@ class Dialog(QDialog, Ui_Dialog):
|
||||
if vlayer.isValid():
|
||||
return vlayer
|
||||
|
||||
#Retreive the field map of a vector Layer
|
||||
#Retrieve the field map of a vector Layer
|
||||
#Return: QgsFieldMap
|
||||
def getFieldList(self, vlayer):
|
||||
fProvider = vlayer.dataProvider()
|
||||
|
@ -257,31 +257,31 @@ class visualThread( QThread ):
|
||||
polygons = geom.asMultiPolygon()
|
||||
for polygon in polygons:
|
||||
if not self.isHoleNested( polygon ):
|
||||
lstErrors.append( self.tr( "Feature " ) + unicode( feat.id() ) + self.tr( " contains an unested hole" ) )
|
||||
lstErrors.append( self.tr( "Feature %1 contains an unnested hole" ).arg( unicode( feat.id() ) ) )
|
||||
count += 1
|
||||
if not self.isPolygonClosed( polygon ):
|
||||
lstErrors.append( self.tr( "Feature " ) + unicode( feat.id() ) + self.tr( " is not closed" ) )
|
||||
lstErrors.append( self.tr( "Feature %1 is not closed" ).arg( unicode( feat.id() ) ) )
|
||||
count += 1
|
||||
if self.isSelfIntersecting( polygon ):
|
||||
lstErrors.append( self.tr( "Feature " ) + unicode( feat.id() ) + self.tr( " is self intersecting" ) )
|
||||
lstErrors.append( self.tr( "Feature %1 is self intersecting" ).arg( unicode( feat.id() ) ) )
|
||||
count += 1
|
||||
if not self.isCorrectOrientation( polygon ):
|
||||
lstErrors.append( self.tr( "Feature " ) + unicode( feat.id() ) + self.tr( " has incorrect node ordering" ) )
|
||||
lstErrors.append( self.tr( "Feature %1 has incorrect node ordering" ).arg( unicode( feat.id() ) ) )
|
||||
count += 1
|
||||
|
||||
else:
|
||||
geom = geom.asPolygon()
|
||||
if not self.isHoleNested( geom ):
|
||||
lstErrors.append( self.tr( "Feature " ) + unicode( feat.id() ) + self.tr( " contains an unested hole" ) )
|
||||
lstErrors.append( self.tr( "Feature %1 contains an unnested hole" ).arg( unicode( feat.id() ) ) )
|
||||
count += 1
|
||||
if not self.isPolygonClosed( geom ):
|
||||
lstErrors.append( self.tr( "Feature " ) + unicode( feat.id() ) + self.tr( " is not closed" ) )
|
||||
lstErrors.append( self.tr( "Feature %1 is not closed" ).arg( unicode( feat.id() ) ) )
|
||||
count += 1
|
||||
if self.isSelfIntersecting( geom ):
|
||||
lstErrors.append( self.tr( "Feature " ) + unicode( feat.id() ) + self.tr( " is self intersecting" ) )
|
||||
lstErrors.append( self.tr( "Feature %1 is self intersecting" ).arg( unicode( feat.id() ) ) )
|
||||
count += 1
|
||||
if not self.isCorrectOrientation( geom ):
|
||||
lstErrors.append( self.tr( "Feature " ) + unicode( feat.id() ) + self.tr( " has incorrect node ordering" ) )
|
||||
lstErrors.append( self.tr( "Feature %1 has incorrect node ordering" ).arg( unicode( feat.id() ) ) )
|
||||
count += 1
|
||||
return ( lstErrors, count )
|
||||
|
||||
|
@ -125,7 +125,7 @@ class Ui_Dialog(object):
|
||||
Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Projection Management Tool", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label_3.setText(QtGui.QApplication.translate("Dialog", "Input vector layer", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label_4.setText(QtGui.QApplication.translate("Dialog", "Input spatial reference system", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.groupBox.setTitle(QtGui.QApplication.translate("Dialog", "Ouput spatial reference system", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.groupBox.setTitle(QtGui.QApplication.translate("Dialog", "Output spatial reference system", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.rdoProjection.setText(QtGui.QApplication.translate("Dialog", "Use predefined spatial reference system", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.btnProjection.setText(QtGui.QApplication.translate("Dialog", "Choose", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.radioButton_2.setText(QtGui.QApplication.translate("Dialog", "Import spatial reference system from existing layer", None, QtGui.QApplication.UnicodeUTF8))
|
||||
|
@ -46,7 +46,7 @@
|
||||
<item row="4" column="0" colspan="2" >
|
||||
<widget class="QGroupBox" name="groupBox" >
|
||||
<property name="title" >
|
||||
<string>Ouput spatial reference system</string>
|
||||
<string>Output spatial reference system</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" >
|
||||
<item row="0" column="0" >
|
||||
|
Loading…
x
Reference in New Issue
Block a user