mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #34302 -- Fixed SpatialReference.auth_name()/auth_code() when target is None.
force_bytes() turns None into the byte string b"None". Since ctypes.c_char_p() also accepts None, we can bypass force_bytes() if target is None.
This commit is contained in:
committed by
Mariusz Felisiak
parent
52b054824e
commit
d77762de03
@@ -35,7 +35,11 @@ srlist = (
|
||||
ang_name="degree",
|
||||
lin_units=1.0,
|
||||
ang_units=0.0174532925199,
|
||||
auth={"GEOGCS": ("EPSG", "4326"), "spheroid": ("EPSG", "7030")},
|
||||
auth={
|
||||
None: ("EPSG", "4326"), # Top-level authority.
|
||||
"GEOGCS": ("EPSG", "4326"),
|
||||
"spheroid": ("EPSG", "7030"),
|
||||
},
|
||||
attr=(
|
||||
("DATUM", "WGS_1984"),
|
||||
(("SPHEROID", 1), "6378137"),
|
||||
@@ -64,6 +68,7 @@ srlist = (
|
||||
lin_units=1.0,
|
||||
ang_units=0.0174532925199,
|
||||
auth={
|
||||
None: ("EPSG", "32140"), # Top-level authority.
|
||||
"PROJCS": ("EPSG", "32140"),
|
||||
"spheroid": ("EPSG", "7019"),
|
||||
"unit": ("EPSG", "9001"),
|
||||
|
||||
Reference in New Issue
Block a user