You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FeatureCollection.to_dataset
when converting a feature collection object (vector) to a dataset and using a dataset as a parameter, not a cell_size, if the dataset does not have the same top left corner as the polygon, the conversion will not work.
To Reproduce
Steps to reproduce the behavior:
try to convert the top brown polygon into a raster and use the bottom raster as a parameter to the to_dataset method
the result dataset will be identical to the input dataset
Expected behavior
the resulting dataset should cover only the polygon
Additional context
possible error, when using a dataset as an input, the function uses it as a source for the number of columns, rows, cell_size, and the pivot point (top left corner, point 1), so if the original pivot point (point 2 ) of the polygon is out of the created domain (blue) of the newly created raster gdal can not create an array that fits the original polygon (green)
The text was updated successfully, but these errors were encountered:
FeatureCollection.to_dataset
when converting a feature collection object (vector) to a dataset and using a dataset as a parameter, not a cell_size, if the dataset does not have the same top left corner as the polygon, the conversion will not work.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
the resulting dataset should cover only the polygon
Additional context
possible error, when using a dataset as an input, the function uses it as a source for the number of columns, rows, cell_size, and the pivot point (top left corner, point 1), so if the original pivot point (point 2 ) of the polygon is out of the created domain (blue) of the newly created raster gdal can not create an array that fits the original polygon (green)
The text was updated successfully, but these errors were encountered: