#31766: GDALRaster: return self on transformation
-------------------------------------+-------------------------------------
               Reporter:  Riccardo   |          Owner:  nobody
                   Type:             |         Status:  new
  Cleanup/optimization               |
              Component:  GIS        |        Version:  master
               Severity:  Normal     |       Keywords:  GDALRaster; GIS
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Currently the method GDALRaster.transform proceeds with the computation
 even if the passed SRID is the same as the GDALRaster itself is in. I
 would propose to just return self if a transformation like the following
 is requested.
 {{{
 >> raster.srid
 4326
 >> raster.transform(4326)
 }}}

 This avoids unnecessary computation.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31766>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.0a5180d511641a6341b047d0d8873ab8%40djangoproject.com.

Reply via email to