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
19d8e64a
Kaydet (Commit)
19d8e64a
authored
Ara 31, 2016
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #25665 -- Removed deprecated getters/setters of Point coordinate properties.
üst
a0149848
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
52 deletions
+3
-52
point.py
django/contrib/gis/geos/point.py
+0
-42
2.0.txt
docs/releases/2.0.txt
+3
-0
test_geos.py
tests/gis_tests/geos_tests/test_geos.py
+0
-10
No files found.
django/contrib/gis/geos/point.py
Dosyayı görüntüle @
19d8e64a
...
...
@@ -140,48 +140,6 @@ class Point(GEOSGeometry):
raise
GEOSException
(
'Cannot set Z on 2D Point.'
)
self
.
_cs
.
setOrdinate
(
2
,
0
,
value
)
def
get_x
(
self
):
warnings
.
warn
(
"`get_x()` is deprecated, use the `x` property instead."
,
RemovedInDjango20Warning
,
2
)
return
self
.
x
def
set_x
(
self
,
value
):
warnings
.
warn
(
"`set_x()` is deprecated, use the `x` property instead."
,
RemovedInDjango20Warning
,
2
)
self
.
x
=
value
def
get_y
(
self
):
warnings
.
warn
(
"`get_y()` is deprecated, use the `y` property instead."
,
RemovedInDjango20Warning
,
2
)
return
self
.
y
def
set_y
(
self
,
value
):
warnings
.
warn
(
"`set_y()` is deprecated, use the `y` property instead."
,
RemovedInDjango20Warning
,
2
)
self
.
y
=
value
def
get_z
(
self
):
warnings
.
warn
(
"`get_z()` is deprecated, use the `z` property instead."
,
RemovedInDjango20Warning
,
2
)
return
self
.
z
def
set_z
(
self
,
value
):
warnings
.
warn
(
"`set_z()` is deprecated, use the `z` property instead."
,
RemovedInDjango20Warning
,
2
)
self
.
z
=
value
# ### Tuple setting and retrieval routines. ###
@property
def
tuple
(
self
):
...
...
docs/releases/2.0.txt
Dosyayı görüntüle @
19d8e64a
...
...
@@ -327,3 +327,6 @@ these features.
* The ``get_srid()`` and ``set_srid()`` methods of
``django.contrib.gis.geos.GEOSGeometry`` are removed.
* The ``get_x()``, ``set_x()``, ``get_y()``, ``set_y()``, ``get_z()``, and
``set_z()`` methods of ``django.contrib.gis.geos.Point`` are removed.
tests/gis_tests/geos_tests/test_geos.py
Dosyayı görüntüle @
19d8e64a
...
...
@@ -1316,16 +1316,6 @@ class GEOSTest(SimpleTestCase, TestDataMixin):
p
.
transform
(
2774
)
self
.
assertEqual
(
p
,
Point
(
srid
=
2774
))
@ignore_warnings
(
category
=
RemovedInDjango20Warning
)
def
test_deprecated_point_coordinate_getters_setters
(
self
):
p
=
Point
(
1
,
2
,
3
)
self
.
assertEqual
((
p
.
get_x
(),
p
.
get_y
(),
p
.
get_z
()),
(
p
.
x
,
p
.
y
,
p
.
z
))
p
.
set_x
(
3
)
p
.
set_y
(
2
)
p
.
set_z
(
1
)
self
.
assertEqual
((
p
.
x
,
p
.
y
,
p
.
z
),
(
3
,
2
,
1
))
@ignore_warnings
(
category
=
RemovedInDjango20Warning
)
def
test_deprecated_point_tuple_getters_setters
(
self
):
p
=
Point
(
1
,
2
,
3
)
...
...
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