Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
a0149848
Kaydet (Commit)
a0149848
authored
8 years ago
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #25665 -- Removed GEOSGeometry.get/set_srid() per deprecation timeline.
üst
ed251246
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
24 deletions
+3
-24
geometry.py
django/contrib/gis/geos/geometry.py
+0
-16
2.0.txt
docs/releases/2.0.txt
+3
-0
test_geos.py
tests/gis_tests/geos_tests/test_geos.py
+0
-8
No files found.
django/contrib/gis/geos/geometry.py
Dosyayı görüntüle @
a0149848
...
...
@@ -5,7 +5,6 @@
from
__future__
import
unicode_literals
import
json
import
warnings
from
ctypes
import
addressof
,
byref
,
c_double
from
django.contrib.gis
import
gdal
...
...
@@ -22,7 +21,6 @@ from django.contrib.gis.geos.prototypes.io import (
)
from
django.utils
import
six
from
django.utils.deconstruct
import
deconstructible
from
django.utils.deprecation
import
RemovedInDjango20Warning
from
django.utils.encoding
import
force_bytes
,
force_text
...
...
@@ -385,20 +383,6 @@ class GEOSGeometry(GEOSBase, ListMixin):
"Sets the SRID for the geometry."
capi
.
geos_set_srid
(
self
.
ptr
,
0
if
srid
is
None
else
srid
)
def
get_srid
(
self
):
warnings
.
warn
(
"`get_srid()` is deprecated, use the `srid` property instead."
,
RemovedInDjango20Warning
,
2
)
return
self
.
srid
def
set_srid
(
self
,
srid
):
warnings
.
warn
(
"`set_srid()` is deprecated, use the `srid` property instead."
,
RemovedInDjango20Warning
,
2
)
self
.
srid
=
srid
# #### Output Routines ####
@property
def
ewkt
(
self
):
...
...
This diff is collapsed.
Click to expand it.
docs/releases/2.0.txt
Dosyayı görüntüle @
a0149848
...
...
@@ -324,3 +324,6 @@ these features.
* Support for direct assignment to a reverse foreign key or many-to-many
relation is removed.
* The ``get_srid()`` and ``set_srid()`` methods of
``django.contrib.gis.geos.GEOSGeometry`` are removed.
This diff is collapsed.
Click to expand it.
tests/gis_tests/geos_tests/test_geos.py
Dosyayı görüntüle @
a0149848
...
...
@@ -1316,14 +1316,6 @@ class GEOSTest(SimpleTestCase, TestDataMixin):
p
.
transform
(
2774
)
self
.
assertEqual
(
p
,
Point
(
srid
=
2774
))
@ignore_warnings
(
category
=
RemovedInDjango20Warning
)
def
test_deprecated_srid_getters_setters
(
self
):
p
=
Point
(
1
,
2
,
srid
=
123
)
self
.
assertEqual
(
p
.
get_srid
(),
p
.
srid
)
p
.
set_srid
(
321
)
self
.
assertEqual
(
p
.
srid
,
321
)
@ignore_warnings
(
category
=
RemovedInDjango20Warning
)
def
test_deprecated_point_coordinate_getters_setters
(
self
):
p
=
Point
(
1
,
2
,
3
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment