#31753: SpatialReference srid -> proj4 -> srid returns wrong SRID
-------------------------------------+-------------------------------------
               Reporter:  Riccardo   |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:  GIS        |        Version:  master
               Severity:  Normal     |       Keywords:  SRID;
           Triage Stage:             |  SpatialReference; GDAL
  Unreviewed                         |      Has patch:  0
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 A SpatialReference object with a specific SRID (e.g. 32630 -
 https://epsg.io/32630) can be instantiated and then transformed into a
 proj or proj4 string (method .proj/.proj4). If that string is then used to
 instantiate a new SpatialReference object, that object will have a
 different SRID, encoding a different type of projection (e.g. 6326 -
 https://epsg.io/6326).

 For example:
 {{{
 >>> from django.contrib.gis.gdal import SpatialReference
 >>> srid = 32630
 >>> p4 = SpatialReference(srid).proj4
 >>> new_sr = SpatialReference(p4)
 >>> new_sr.srid == srid
 False
 >>>  new_sr.srid
 6326
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31753>
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.c93e375f99bbea58de9ea50f913f985b%40djangoproject.com.

Reply via email to