Changes between Version 2 and Version 3 of Ticket #37289


Ignore:
Timestamp:
Aug 19, 2026, 8:46:14 AM (62 minutes ago)
Author:
Jacob Walls
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37289 – Description

    v2 v3  
    2424Thanks "garden_" for the informative report.
    2525----
    26 `GDALRaster` defaults the `write` parameter to `0`. Paths are one of the input classes where that parameter is respected instead of overwritten to `1`. As an implementation hint, I would expect something like:
     26`GDALRaster` defaults the `write` parameter to `False`. Paths are one of the input classes where that parameter is respected instead of overwritten later via `self._write = 1`. As an implementation hint, I would expect something like:
    2727{{{#!diff
    2828diff --git a/django/contrib/gis/gdal/raster/source.py b/django/contrib/gis/gdal/raster/source.py
     
    7373         self.assertIsNone(rst.vsi_buffer)
    7474+        # assert the virtual file is still there, needs release note...
    75 +        # retry with GDALRaster(..., write=False)
     75+        # retry with GDALRaster(..., write=True)
    7676+        # assert the virtual file is gone...
    7777 
Back to Top