from rsgislib import vectorutils
# Create variables for input and output datasets
inputImg = 'C:/input/Small_clumps_elim_final.kea'
outShp = 'C:/output/5band_shape.shp'
vectorutils.polygoniseRaster(inputImg, outShp, imgBandNo=1,
maskImg=inputImg, imgMaskBandNo=1)
Using maskTraceback (most recent call last): File "C:/shape_generator.py", line 8, in <module> maskImg=inputImg, imgMaskBandNo=1) File "C:\Anaconda3\lib\site-packages\rsgislib\vectorutils\__init__.py", line 176, in polygoniseRaster gdal.Polygonize(imgBand, imgMaskBand, outLayer, dstFieldIdx, [], callback=gdal.TermProgress ) File "C:\Anaconda3\lib\site-packages\osgeo\gdal.py", line 2679, in PolygonizePolygonising... return _gdal.Polygonize(*args, **kwargs)RuntimeError: Object given is not a Python function
--
You received this message because you are subscribed to the Google Groups "RSGISLib Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsgislib-suppo...@googlegroups.com.
To post to this group, send email to rsgislib...@googlegroups.com.
Visit this group at https://groups.google.com/group/rsgislib-support.
For more options, visit https://groups.google.com/d/optout.
gdal.Polygonize(temp_band, None, dst_layer, -1, [], callback=None)