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
12d0567a
Kaydet (Commit)
12d0567a
authored
Nis 05, 2017
tarafından
Sergey Fedoseev
Kaydeden (comit)
Tim Graham
Nis 05, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #28020 -- Made GEOSGeometry.json use OGRGeometry.json for better performance.
üst
9f0c8297
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
9 deletions
+1
-9
collections.py
django/contrib/gis/geos/collections.py
+0
-4
geometry.py
django/contrib/gis/geos/geometry.py
+1
-2
linestring.py
django/contrib/gis/geos/linestring.py
+0
-1
point.py
django/contrib/gis/geos/point.py
+0
-1
polygon.py
django/contrib/gis/geos/polygon.py
+0
-1
No files found.
django/contrib/gis/geos/collections.py
Dosyayı görüntüle @
12d0567a
...
...
@@ -15,7 +15,6 @@ from django.contrib.gis.geos.polygon import Polygon
class
GeometryCollection
(
GEOSGeometry
):
_json_type
=
'GeometryCollection'
_typeid
=
7
def
__init__
(
self
,
*
args
,
**
kwargs
):
...
...
@@ -107,13 +106,11 @@ class GeometryCollection(GEOSGeometry):
# MultiPoint, MultiLineString, and MultiPolygon class definitions.
class
MultiPoint
(
GeometryCollection
):
_allowed
=
Point
_json_type
=
'MultiPoint'
_typeid
=
4
class
MultiLineString
(
LinearGeometryMixin
,
GeometryCollection
):
_allowed
=
(
LineString
,
LinearRing
)
_json_type
=
'MultiLineString'
_typeid
=
5
@property
...
...
@@ -125,7 +122,6 @@ class MultiLineString(LinearGeometryMixin, GeometryCollection):
class
MultiPolygon
(
GeometryCollection
):
_allowed
=
Polygon
_json_type
=
'MultiPolygon'
_typeid
=
6
...
...
django/contrib/gis/geos/geometry.py
Dosyayı görüntüle @
12d0567a
...
...
@@ -2,7 +2,6 @@
This module contains the 'base' GEOSGeometry object -- all GEOS Geometries
inherit from this object.
"""
import
json
from
ctypes
import
addressof
,
byref
,
c_double
from
django.contrib.gis
import
gdal
...
...
@@ -421,7 +420,7 @@ class GEOSGeometry(GEOSBase, ListMixin):
"""
Return GeoJSON representation of this Geometry.
"""
return
json
.
dumps
({
'type'
:
self
.
_json_type
,
'coordinates'
:
self
.
coords
})
return
self
.
ogr
.
json
geojson
=
json
@property
...
...
django/contrib/gis/geos/linestring.py
Dosyayı görüntüle @
12d0567a
...
...
@@ -8,7 +8,6 @@ from django.contrib.gis.shortcuts import numpy
class
LineString
(
LinearGeometryMixin
,
GEOSGeometry
):
_init_func
=
capi
.
create_linestring
_json_type
=
'LineString'
_minlength
=
2
has_cs
=
True
...
...
django/contrib/gis/geos/point.py
Dosyayı görüntüle @
12d0567a
...
...
@@ -7,7 +7,6 @@ from django.contrib.gis.geos.geometry import GEOSGeometry
class
Point
(
GEOSGeometry
):
_json_type
=
'Point'
_minlength
=
2
_maxlength
=
3
has_cs
=
True
...
...
django/contrib/gis/geos/polygon.py
Dosyayı görüntüle @
12d0567a
...
...
@@ -7,7 +7,6 @@ from django.contrib.gis.geos.linestring import LinearRing
class
Polygon
(
GEOSGeometry
):
_json_type
=
'Polygon'
_minlength
=
1
def
__init__
(
self
,
*
args
,
**
kwargs
):
...
...
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