Skip to content

Commit

Permalink
fix: VectorDataset.create does not use arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
habibutsu committed Apr 17, 2024
1 parent 4e6c0a9 commit 5925cae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gdal_boots/gdal.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,8 @@ def to_vector(self, field_id=-1, callback: Callable[[float, str, Any], None] = N
https://gis.stackexchange.com/questions/328358/gdal-warp-memory-datasource-as-cutline
"""
vds = VectorDataset.create(self.geoinfo.epsg)
vds = VectorDataset.create()
vds.add_layer("test", VectorDataset.GeometryType.Polygon, self.geoinfo.epsg)
band = self.ds.GetRasterBand(1)
gdal.Polygonize(band, band, vds.layers.first().ref_layer, field_id, [], callback=callback)
vds.ds.FlushCache()
Expand Down

0 comments on commit 5925cae

Please sign in to comment.