Skip to content

Commit be29ad9

Browse files
author
brushtyler
committedNov 5, 2010
split extent on comma in GdalTools Merge tool, to fix #3092
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14513 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 974773d commit be29ad9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
 

‎python/plugins/GdalTools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def name():
2222
def description():
2323
return "Integrate gdal tools into qgis"
2424
def version():
25-
return "Version 1.2.15"
25+
return "Version 1.2.16"
2626
def qgisMinimumVersion():
2727
return "1.0"
2828
def classFactory(iface):

‎python/plugins/GdalTools/tools/doMerge.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ def getRectangle( self, file ):
124124
info = QString( arr ).split( "\n" )
125125
ulCoord = info[ info.indexOf( QRegExp( "^Upper\sLeft.*" ) ) ].simplified()
126126
lrCoord = info[ info.indexOf( QRegExp( "^Lower\sRight.*" ) ) ].simplified()
127-
ul = ulCoord.split( " " )
128-
lr = lrCoord.split( " " )
129-
xUL = ul[ 3 ].replace( ",", "" ).toDouble() [ 0 ]
130-
yUL = ul[ 4 ].replace( ")", "" ).toDouble()[ 0 ]
131-
xLR = lr[ 3 ].replace( ",", "" ).toDouble()[ 0 ]
132-
yLR = lr[ 4 ].replace( ")", "" ).toDouble()[ 0 ]
127+
ulCoord = ulCoord[ulCoord.indexOf( "(" ) + 1 : ulCoord.indexOf( ")" ) - 1].split( "," )
128+
lrCoord = lrCoord[lrCoord.indexOf( "(" ) + 1 : lrCoord.indexOf( ")" ) - 1].split( "," )
129+
xUL = ulCoord[0].toDouble()[0]
130+
yUL = ulCoord[1].toDouble()[0]
131+
xLR = lrCoord[0].toDouble()[0]
132+
yLR = lrCoord[1].toDouble()[0]
133133

134134
return QgsRectangle( xUL, yLR, xLR, yUL )
135135

0 commit comments

Comments
 (0)