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
df3d7e66
Kaydet (Commit)
df3d7e66
authored
Tem 07, 2013
tarafından
Alex Gaynor
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replaced some dicts with sets.
üst
5ac7f777
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
operations.py
django/contrib/gis/db/backends/oracle/operations.py
+1
-1
operations.py
django/contrib/gis/db/backends/postgis/operations.py
+2
-2
operations.py
django/contrib/gis/db/backends/spatialite/operations.py
+1
-1
No files found.
django/contrib/gis/db/backends/oracle/operations.py
Dosyayı görüntüle @
df3d7e66
...
...
@@ -78,7 +78,7 @@ class OracleOperations(DatabaseOperations, BaseSpatialOperations):
name
=
'oracle'
oracle
=
True
valid_aggregates
=
dict
([(
a
,
None
)
for
a
in
(
'Union'
,
'Extent'
)])
valid_aggregates
=
{
'Union'
,
'Extent'
}
Adapter
=
OracleSpatialAdapter
Adaptor
=
Adapter
# Backwards-compatibility alias.
...
...
django/contrib/gis/db/backends/postgis/operations.py
Dosyayı görüntüle @
df3d7e66
...
...
@@ -56,6 +56,7 @@ class PostGISSphereDistance(PostGISDistance):
class
PostGISRelate
(
PostGISFunctionParam
):
"For PostGIS Relate(<geom>, <pattern>) calls."
pattern_regex
=
re
.
compile
(
r'^[012TF\*]{9}$'
)
def
__init__
(
self
,
prefix
,
pattern
):
if
not
self
.
pattern_regex
.
match
(
pattern
):
raise
ValueError
(
'Invalid intersection matrix pattern "
%
s".'
%
pattern
)
...
...
@@ -68,8 +69,7 @@ class PostGISOperations(DatabaseOperations, BaseSpatialOperations):
postgis
=
True
geom_func_prefix
=
'ST_'
version_regex
=
re
.
compile
(
r'^(?P<major>\d)\.(?P<minor1>\d)\.(?P<minor2>\d+)'
)
valid_aggregates
=
dict
([(
k
,
None
)
for
k
in
(
'Collect'
,
'Extent'
,
'Extent3D'
,
'MakeLine'
,
'Union'
)])
valid_aggregates
=
{
'Collect'
,
'Extent'
,
'Extent3D'
,
'MakeLine'
,
'Union'
}
Adapter
=
PostGISAdapter
Adaptor
=
Adapter
# Backwards-compatibility alias.
...
...
django/contrib/gis/db/backends/spatialite/operations.py
Dosyayı görüntüle @
df3d7e66
...
...
@@ -56,7 +56,7 @@ class SpatiaLiteOperations(DatabaseOperations, BaseSpatialOperations):
name
=
'spatialite'
spatialite
=
True
version_regex
=
re
.
compile
(
r'^(?P<major>\d)\.(?P<minor1>\d)\.(?P<minor2>\d+)'
)
valid_aggregates
=
dict
([(
k
,
None
)
for
k
in
(
'Extent'
,
'Union'
)])
valid_aggregates
=
{
'Extent'
,
'Union'
}
Adapter
=
SpatiaLiteAdapter
Adaptor
=
Adapter
# Backwards-compatibility alias.
...
...
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