Skip to content

Commit

Permalink
[sextante] added import check for gdal sieve algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Mar 15, 2013
1 parent f195121 commit 40ad11d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions python/plugins/sextante/gdal/scripts/sieve.py
Expand Up @@ -29,12 +29,17 @@
##[GDAL] Analysis=group
##src_filename=raster
##dst_filename=output raster
##connectedness=selection 4;8
##threshold=number 2
##connectedness=selection 4;8
from sextante.gdal.GdalUtils import GdalUtils

from osgeo import gdal, ogr
try:
from osgeo import gdal, ogr
except ImportError:
import gdal
import ogr

threshold = int(threshold)
connectedness=int(connectedness)
options = []

Expand Down

0 comments on commit 40ad11d

Please sign in to comment.