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
6f43b2b8
Kaydet (Commit)
6f43b2b8
authored
Kas 30, 2016
tarafından
Sergey Fedoseev
Kaydeden (comit)
Tim Graham
Kas 30, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed unneeded GeoAggregate.convert_value() & DatabaseOperations.convert_geom().
üst
bc6bd93c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
34 deletions
+0
-34
operations.py
django/contrib/gis/db/backends/base/operations.py
+0
-3
operations.py
django/contrib/gis/db/backends/oracle/operations.py
+0
-9
operations.py
django/contrib/gis/db/backends/postgis/operations.py
+0
-10
operations.py
django/contrib/gis/db/backends/spatialite/operations.py
+0
-9
aggregates.py
django/contrib/gis/db/models/aggregates.py
+0
-3
No files found.
django/contrib/gis/db/backends/base/operations.py
Dosyayı görüntüle @
6f43b2b8
...
...
@@ -83,9 +83,6 @@ class BaseSpatialOperations(object):
def
convert_extent3d
(
self
,
box
,
srid
):
raise
NotImplementedError
(
'Aggregate 3D extent not implemented for this spatial backend.'
)
def
convert_geom
(
self
,
geom_val
,
geom_field
):
raise
NotImplementedError
(
'Aggregate method not implemented for this spatial backend.'
)
# For quoting column values, rather than columns.
def
geo_quote_name
(
self
,
name
):
return
"'
%
s'"
%
name
...
...
django/contrib/gis/db/backends/oracle/operations.py
Dosyayı görüntüle @
6f43b2b8
...
...
@@ -16,7 +16,6 @@ from django.contrib.gis.db.backends.utils import SpatialOperator
from
django.contrib.gis.db.models
import
aggregates
from
django.contrib.gis.geometry.backend
import
Geometry
from
django.contrib.gis.measure
import
Distance
from
django.db.backends.oracle.base
import
Database
from
django.db.backends.oracle.operations
import
DatabaseOperations
from
django.utils
import
six
...
...
@@ -180,14 +179,6 @@ class OracleOperations(BaseSpatialOperations, DatabaseOperations):
else
:
return
None
def
convert_geom
(
self
,
value
,
geo_field
):
if
value
:
if
isinstance
(
value
,
Database
.
LOB
):
value
=
value
.
read
()
return
Geometry
(
value
,
geo_field
.
srid
)
else
:
return
None
def
geo_db_type
(
self
,
f
):
"""
Returns the geometry database type for Oracle. Unlike other spatial
...
...
django/contrib/gis/db/backends/postgis/operations.py
Dosyayı görüntüle @
6f43b2b8
...
...
@@ -5,7 +5,6 @@ from django.contrib.gis.db.backends.base.operations import \
BaseSpatialOperations
from
django.contrib.gis.db.backends.utils
import
SpatialOperator
from
django.contrib.gis.gdal
import
GDALRaster
from
django.contrib.gis.geometry.backend
import
Geometry
from
django.contrib.gis.measure
import
Distance
from
django.core.exceptions
import
ImproperlyConfigured
from
django.db.backends.postgresql.operations
import
DatabaseOperations
...
...
@@ -266,15 +265,6 @@ class PostGISOperations(BaseSpatialOperations, DatabaseOperations):
xmax
,
ymax
,
zmax
=
map
(
float
,
ur
.
split
())
return
(
xmin
,
ymin
,
zmin
,
xmax
,
ymax
,
zmax
)
def
convert_geom
(
self
,
hex
,
geo_field
):
"""
Converts the geometry returned from PostGIS aggregates.
"""
if
hex
:
return
Geometry
(
hex
,
srid
=
geo_field
.
srid
)
else
:
return
None
def
geo_db_type
(
self
,
f
):
"""
Return the database field type for the given spatial field.
...
...
django/contrib/gis/db/backends/spatialite/operations.py
Dosyayı görüntüle @
6f43b2b8
...
...
@@ -130,15 +130,6 @@ class SpatiaLiteOperations(BaseSpatialOperations, DatabaseOperations):
xmax
,
ymax
=
shell
[
2
][:
2
]
return
(
xmin
,
ymin
,
xmax
,
ymax
)
def
convert_geom
(
self
,
wkt
,
geo_field
):
"""
Converts geometry WKT returned from a SpatiaLite aggregate.
"""
if
wkt
:
return
Geometry
(
wkt
,
geo_field
.
srid
)
else
:
return
None
def
geo_db_type
(
self
,
f
):
"""
Returns None because geometry columns are added via the
...
...
django/contrib/gis/db/models/aggregates.py
Dosyayı görüntüle @
6f43b2b8
...
...
@@ -30,9 +30,6 @@ class GeoAggregate(Aggregate):
raise
ValueError
(
'Geospatial aggregates only allowed on geometry fields.'
)
return
c
def
convert_value
(
self
,
value
,
expression
,
connection
,
context
):
return
connection
.
ops
.
convert_geom
(
value
,
self
.
output_field
)
class
Collect
(
GeoAggregate
):
name
=
'Collect'
...
...
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