File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ def name():
22
22
def description ():
23
23
return "Integrate gdal tools into qgis"
24
24
def version ():
25
- return "Version 1.2.15 "
25
+ return "Version 1.2.16 "
26
26
def qgisMinimumVersion ():
27
27
return "1.0"
28
28
def classFactory (iface ):
Original file line number Diff line number Diff line change @@ -124,12 +124,12 @@ def getRectangle( self, file ):
124
124
info = QString ( arr ).split ( "\n " )
125
125
ulCoord = info [ info .indexOf ( QRegExp ( "^Upper\sLeft.*" ) ) ].simplified ()
126
126
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 ]
133
133
134
134
return QgsRectangle ( xUL , yLR , xLR , yUL )
135
135
You can’t perform that action at this time.
0 commit comments