Skip to content
Permalink
Browse files

oops, didn't see patch, patch implementation more elegant (qt-ish), t…

…hanks alexbruy

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13026 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
cfarmer
cfarmer committed Mar 8, 2010
1 parent 6ebbf8b commit 9482e68044ac6b79afb2444f68141dc3ff589989
Showing with 6 additions and 8 deletions.
  1. +6 −8 python/plugins/fTools/tools/doDefineProj.py
@@ -79,16 +79,14 @@ def accept(self):
self.progressBar.setValue(60)
outputWkt = srsDefine.toWkt()
self.progressBar.setValue(65)
outputPrj = open(unicode("%s.prj" % inPath), "w")
outputFile = QFile( inPath + ".prj" )
outputFile.open( QIODevice.WriteOnly | QIODevice.Text )
outputPrj = QTextStream( outputFile )
self.progressBar.setValue(70)
outputPrj.write(outputWkt)
outputPrj << outputWkt
self.progressBar.setValue(75)
outputPrj.close()
#mLayer = self.getMapLayerByName(inName)
#self.progressBar.setValue(90)
#if not mLayer.isValid():
#QMessageBox.information(self, self.tr("Define current projection"), self.tr("Unable to dynamically define projection.\nPlease reload layer manually for projection definition to take effect."))
#else:
outputPrj.flush()
outputFile.close()
self.progressBar.setValue(95)
vLayer.setCrs(srsDefine)
self.progressBar.setValue(100)

0 comments on commit 9482e68

Please sign in to comment.
You can’t perform that action at this time.