Changes between Version 1 and Version 2 of Ticket #32368


Ignore:
Timestamp:
Jan 19, 2021, 10:51:16 AM (4 years ago)
Author:
Eran Keydar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32368 – Description

    v1 v2  
    1 I create SpatialReference with proj4 string, I expect the srid to be None but I get a number.
     1I create SpatialReference with proj4 string, I expect srid numbers which are not clear (compared to ubuntu 18.04)
    22
    33django 3.1.5
     
    99from django.contrib.gis.gdal import SpatialReference
    1010sr = SpatialReference('''+proj=lcc +lat_1=30.28333333333333 +lat_2=28.38333333333333 +lat_0=27.83333333333333 +lon_0=-99 +x_0=600000 +y_0=4000000 +ellps=GRS80 +datum=NAD83 +units=m +no_defs ''')
    11 print(sr.srid) # get 6269
     11print(sr.srid) # get 6269 (on 1804 I get 4269)
    1212
    1313sr = SpatialReference('+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs ')
    14 print(sr.srid) # get 7019
     14print(sr.srid) # get 7019 (on 1804 I get None)
    1515
    1616sr = SpatialReference('+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs ')
    17 print(sr.srid) # get 6326
     17print(sr.srid) # get 6326 (on 1804 I get 4326)
    1818
    1919print(sys.version)
Back to Top