Код: Выделить всё
gdal.Polygonize() not available. You are likely using "old gen"
bindings or an older version of the next gen bindings.
Геоинформационные системы (ГИС) и Дистанционное зондирование Земли
Код: Выделить всё
gdal.Polygonize() not available. You are likely using "old gen"
bindings or an older version of the next gen bindings.
Из OSGeo4W тоже самое, замена на snv-овскую версию не помогает.Creating output test of format GML.
Traceback (most recent call last):
File "gdal_polygonize.py", line 182, in ?
result = gdal.Polygonize( srcband, maskband, dst_layer, dst_field, options,
AttributeError: 'module' object has no attribute 'Polygonize'
Код: Выделить всё
C:\OSGeo4W\apps\gdal-dev\bin>gdal_polygonize
gdal_polygonize [-o name=value] [-nomask] [-mask filename] raster_file [-b band] [-q] [-f ogr_format] out_file [layer] [fieldname]
Код: Выделить всё
C:\OSGeo4W\apps\gdal-dev\bin>gdal_polygonize 1.tif -f "ESRI Shapefile" 1.shp
Creating output 1.shp of format ESRI Shapefile.
0...10...20...30...40...50...60...70...80...90...100 - done.
gdal_polygonize is not supported in FWTools as FWTools is distributed using
the "old generation" python bindings (for OpenEV compatability), and there
are no plans to introduce new functions - like polygonize - into the old
bindings.
OSGeo4W (the gdal-dev package) is the best bet for pre-built binaries that
includes gdal_polygonize.
Код: Выделить всё
C:\Gis\OSGeo4W\apps\gdal-dev\bin>gdal_polygonize.py
Traceback (most recent call last):
File "C:\Gis\OSGeo4W\apps\gdal-dev\bin\gdal_polygonize.py", line 34, in <modul
e>
import gdal, ogr, osr
ImportError: No module named gdal
Сейчас этот форум просматривают: нет зарегистрированных пользователей и 16 гостей
© GIS-Lab и авторы, 2002-2017. При использовании материалов сайта, ссылка на GIS-Lab и авторов обязательна. Содержание материалов - ответственность авторов (подробнее).