Skip to content

Commit 13b362e

Browse files
committed
avoid gdalconst deprecation warning
1 parent 1212880 commit 13b362e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/sextante/tools/raster.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
__revision__ = '$Format:%H$'
2525

2626
from osgeo import gdal
27-
from gdalconst import *
27+
from osgeo.gdalconst import *
2828
import struct
2929

3030
def scanraster(layer, progress):
@@ -39,4 +39,4 @@ def scanraster(layer, progress):
3939
for value in values:
4040
if value == nodata:
4141
value = None
42-
yield value
42+
yield value

0 commit comments

Comments
 (0)