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
e7e55059
Kaydet (Commit)
e7e55059
authored
Kas 16, 2018
tarafından
Claude Paroz
Kaydeden (comit)
Tim Graham
Kas 16, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #29959 -- Cached GEOS version in WKBWriter class.
Regression in
f185d929
.
üst
97cec6f7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
io.py
django/contrib/gis/geos/prototypes/io.py
+3
-2
1.11.17.txt
docs/releases/1.11.17.txt
+3
-1
2.0.10.txt
docs/releases/2.0.10.txt
+3
-1
2.1.4.txt
docs/releases/2.1.4.txt
+4
-0
No files found.
django/contrib/gis/geos/prototypes/io.py
Dosyayı görüntüle @
e7e55059
...
@@ -213,6 +213,7 @@ class WKBWriter(IOBase):
...
@@ -213,6 +213,7 @@ class WKBWriter(IOBase):
_constructor
=
wkb_writer_create
_constructor
=
wkb_writer_create
ptr_type
=
WKB_WRITE_PTR
ptr_type
=
WKB_WRITE_PTR
destructor
=
wkb_writer_destroy
destructor
=
wkb_writer_destroy
geos_version
=
geos_version_tuple
()
def
__init__
(
self
,
dim
=
2
):
def
__init__
(
self
,
dim
=
2
):
super
()
.
__init__
()
super
()
.
__init__
()
...
@@ -235,7 +236,7 @@ class WKBWriter(IOBase):
...
@@ -235,7 +236,7 @@ class WKBWriter(IOBase):
from
django.contrib.gis.geos
import
Polygon
from
django.contrib.gis.geos
import
Polygon
geom
=
self
.
_handle_empty_point
(
geom
)
geom
=
self
.
_handle_empty_point
(
geom
)
wkb
=
wkb_writer_write
(
self
.
ptr
,
geom
.
ptr
,
byref
(
c_size_t
()))
wkb
=
wkb_writer_write
(
self
.
ptr
,
geom
.
ptr
,
byref
(
c_size_t
()))
if
geos_version_tuple
()
<
(
3
,
6
,
1
)
and
isinstance
(
geom
,
Polygon
)
and
geom
.
empty
:
if
self
.
geos_version
<
(
3
,
6
,
1
)
and
isinstance
(
geom
,
Polygon
)
and
geom
.
empty
:
# Fix GEOS output for empty polygon.
# Fix GEOS output for empty polygon.
# See https://trac.osgeo.org/geos/ticket/680.
# See https://trac.osgeo.org/geos/ticket/680.
wkb
=
wkb
[:
-
8
]
+
b
'
\0
'
*
4
wkb
=
wkb
[:
-
8
]
+
b
'
\0
'
*
4
...
@@ -246,7 +247,7 @@ class WKBWriter(IOBase):
...
@@ -246,7 +247,7 @@ class WKBWriter(IOBase):
from
django.contrib.gis.geos.polygon
import
Polygon
from
django.contrib.gis.geos.polygon
import
Polygon
geom
=
self
.
_handle_empty_point
(
geom
)
geom
=
self
.
_handle_empty_point
(
geom
)
wkb
=
wkb_writer_write_hex
(
self
.
ptr
,
geom
.
ptr
,
byref
(
c_size_t
()))
wkb
=
wkb_writer_write_hex
(
self
.
ptr
,
geom
.
ptr
,
byref
(
c_size_t
()))
if
geos_version_tuple
()
<
(
3
,
6
,
1
)
and
isinstance
(
geom
,
Polygon
)
and
geom
.
empty
:
if
self
.
geos_version
<
(
3
,
6
,
1
)
and
isinstance
(
geom
,
Polygon
)
and
geom
.
empty
:
wkb
=
wkb
[:
-
16
]
+
b
'0'
*
8
wkb
=
wkb
[:
-
16
]
+
b
'0'
*
8
return
wkb
return
wkb
...
...
docs/releases/1.11.17.txt
Dosyayı görüntüle @
e7e55059
...
@@ -9,4 +9,6 @@ Django 1.11.17 fixes several bugs in 1.11.16.
...
@@ -9,4 +9,6 @@ Django 1.11.17 fixes several bugs in 1.11.16.
Bugfixes
Bugfixes
========
========
* ...
* Prevented repetitive calls to ``geos_version_tuple()`` in the ``WKBWriter``
class in an attempt to fix a random crash involving ``LooseVersion`` since
Django 1.11.14 (:ticket:`29959`).
docs/releases/2.0.10.txt
Dosyayı görüntüle @
e7e55059
...
@@ -9,4 +9,6 @@ Django 2.0.10 fixes several bugs in 2.0.9.
...
@@ -9,4 +9,6 @@ Django 2.0.10 fixes several bugs in 2.0.9.
Bugfixes
Bugfixes
========
========
* ...
* Prevented repetitive calls to ``geos_version_tuple()`` in the ``WKBWriter``
class in an attempt to fix a random crash involving ``LooseVersion`` since
Django 2.0.6 (:ticket:`29959`).
docs/releases/2.1.4.txt
Dosyayı görüntüle @
e7e55059
...
@@ -12,3 +12,7 @@ Bugfixes
...
@@ -12,3 +12,7 @@ Bugfixes
* Corrected the default password list that ``CommonPasswordValidator`` uses by
* Corrected the default password list that ``CommonPasswordValidator`` uses by
lowercasing all passwords to match the format expected by the validator
lowercasing all passwords to match the format expected by the validator
(:ticket:`29952`).
(:ticket:`29952`).
* Prevented repetitive calls to ``geos_version_tuple()`` in the ``WKBWriter``
class in an attempt to fix a random crash involving ``LooseVersion``
(:ticket:`29959`).
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