This avoids unnecessary computation.
--
Ticket URL: <https://code.djangoproject.com/ticket/31766>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
Comment:
Thanks, IMO it's expected to return `self.clone()` is such cases.
--
Ticket URL: <https://code.djangoproject.com/ticket/31766#comment:1>
Comment (by Hasan Ramezani):
Does it need to implement `def clone` for `GDALRaster`? If so, should we
use `copy_ds` from `django.contrib.gis.gdal.prototypes` to copy the
`ds_input` and create a new `GDALRaster` object?
--
Ticket URL: <https://code.djangoproject.com/ticket/31766#comment:2>
* cc: Hasan Ramezani (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/31766#comment:3>
* cc: Daniel Wiesmann (added)
Comment:
> Does it need to implement `def clone` for `GDALRaster`?
Yes.
> If so, should we use `copy_ds` from `django.contrib.gis.gdal.prototypes`
to copy the `ds_input` and create a new `GDALRaster` object?
Probably, I'm not an expert.
--
Ticket URL: <https://code.djangoproject.com/ticket/31766#comment:4>
* owner: nobody => Srinivas Reddy Thatiparthy
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/31766#comment:5>
* owner: Srinivas Reddy Thatiparthy => (none)
* status: assigned => new
--
Ticket URL: <https://code.djangoproject.com/ticket/31766#comment:6>
* owner: (none) => bartonip
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/31766#comment:9>
* has_patch: 0 => 1
* stage: Accepted => Ready for checkin
Comment:
Patch submitted: https://github.com/django/django/pull/13365
--
Ticket URL: <https://code.djangoproject.com/ticket/31766#comment:10>
* stage: Ready for checkin => Accepted
Comment:
The PR should be first reviewed by reviewers and then they will change it
to [https://docs.djangoproject.com/en/dev/internals/contributing/triaging-
tickets/#ready-for-checkin Ready for checkin] Stage.
--
Ticket URL: <https://code.djangoproject.com/ticket/31766#comment:11>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/31766#comment:12>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/31766#comment:13>
* easy: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/31766#comment:14>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"12d6cae7c0401baa70c934f465bad856afecc847" 12d6cae]:
{{{
#!CommitTicketReference repository=""
revision="12d6cae7c0401baa70c934f465bad856afecc847"
Fixed #31766 -- Made GDALRaster.transform() return a clone for the same
SRID and driver.
Thanks Daniel Wiesmann for the review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31766#comment:15>