Skip to content
Permalink
Browse files

split extent on comma in GdalTools Merge tool, to fix #3092

git-svn-id: http://svn.osgeo.org/qgis/trunk@14513 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler
brushtyler committed Nov 5, 2010
1 parent f25d868 commit 838b614df51c85048a9d6b0918703805a3cf008d
Showing with 7 additions and 7 deletions.
  1. +1 −1 python/plugins/GdalTools/__init__.py
  2. +6 −6 python/plugins/GdalTools/tools/doMerge.py
@@ -22,7 +22,7 @@ def name():
def description():
return "Integrate gdal tools into qgis"
def version():
return "Version 1.2.15"
return "Version 1.2.16"
def qgisMinimumVersion():
return "1.0"
def classFactory(iface):
@@ -124,12 +124,12 @@ def getRectangle( self, file ):
info = QString( arr ).split( "\n" )
ulCoord = info[ info.indexOf( QRegExp( "^Upper\sLeft.*" ) ) ].simplified()
lrCoord = info[ info.indexOf( QRegExp( "^Lower\sRight.*" ) ) ].simplified()
ul = ulCoord.split( " " )
lr = lrCoord.split( " " )
xUL = ul[ 3 ].replace( ",", "" ).toDouble() [ 0 ]
yUL = ul[ 4 ].replace( ")", "" ).toDouble()[ 0 ]
xLR = lr[ 3 ].replace( ",", "" ).toDouble()[ 0 ]
yLR = lr[ 4 ].replace( ")", "" ).toDouble()[ 0 ]
ulCoord = ulCoord[ulCoord.indexOf( "(" ) + 1 : ulCoord.indexOf( ")" ) - 1].split( "," )
lrCoord = lrCoord[lrCoord.indexOf( "(" ) + 1 : lrCoord.indexOf( ")" ) - 1].split( "," )
xUL = ulCoord[0].toDouble()[0]
yUL = ulCoord[1].toDouble()[0]
xLR = lrCoord[0].toDouble()[0]
yLR = lrCoord[1].toDouble()[0]

return QgsRectangle( xUL, yLR, xLR, yUL )

0 comments on commit 838b614

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