#6853 closed defect (fixed)
GRASS G_set_window => Rast_set_window
Reported by: | hcho | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: | martinl |
Description
The GRASS GIS driver needs to be updated so that it calls Rast_[gs]et_window instead of G_[gs]et_window for GRASS 7. Please refer to the attached patch.
Attachments (1)
Change History (6)
by , 7 years ago
Attachment: | grass57dataset.cpp.patch added |
---|
comment:1 by , 7 years ago
From which GRASS version is this needed ? I think the current driver compiles fine with 7.0
comment:2 by , 7 years ago
It compiles fine with 7 because there are both G_[gs]et_window and Rast_[gs]et_window, but the Rast_ version was added in 7 to handle the window for raster reading/writing. This issue was discussed before in https://trac.osgeo.org/gdal/ticket/2953#comment:26. G_set_window doesn't change the window for raster reading and can produce an image outside the requested region.
comment:5 by , 7 years ago
I've committed the patch in trunk. Would probably deserve a backport in 2.1.3 but I'd prefer having confirmation that's OK.
Patch for GRASS 7