opengeos/whitebox-python

VectorPolygonsToRaster issue

mlavy opened this issue · 1 comments

mlavy commented
  • whitebox version: 0.9.0
  • Python version: 3.7.3
  • Operating System: Windows 10

Description

The whitebox tool "VectorPolygonsToRaster" return a different result compare to the Whitebox GAT -win tool "Vector polygons to raster" . The output .tif has gaps!!!

What I Did

from whitebox import WhiteboxTools

# Set up the environment
wbt = WhiteboxTools()
data_dir = "/../whitebox_issue"
wbt.work_dir = (data_dir) 

i_vector = "poly.shp"
fieldZ = "Value"
out_raster = "poly2raster_PYTHON.tif"

wbt.vector_polygons_to_raster(
    i=i_vector,
    output=out_raster,
    field=fieldZ,
    nodata=True,
    cell_size=1,
   # base=None,
   # callback=default_callback
)

Vector Polygons To Raster - GAT-win

poly2raster_GAT-win
poly2raster_PYTHON

@mlavy This is an issue that belongs in the WhiteboxTools repository, and not this repository. This repo simply holds the Python frontend for the WhiteboxTools project. I would ask that you please open an issue in the WhiteboxTools repository.