Loading django/contrib/gis/db/models/fields.py +2 −2 Original line number Diff line number Diff line Loading @@ -163,7 +163,7 @@ class GeometryField(GeoSelectFormatMixin, Field): self._get_srid_info(connection) return self._units_name ### Routines specific to GeometryField ### # ### Routines specific to GeometryField ### def geodetic(self, connection): """ Returns true if this field's SRID corresponds with a coordinate Loading Loading @@ -236,7 +236,7 @@ class GeometryField(GeoSelectFormatMixin, Field): else: return gsrid ### Routines overloaded from Field ### # ### Routines overloaded from Field ### def contribute_to_class(self, cls, name, **kwargs): super(GeometryField, self).contribute_to_class(cls, name, **kwargs) Loading django/contrib/gis/db/models/query.py +2 −2 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ from django.utils.deprecation import RemovedInDjango20Warning class GeoQuerySet(QuerySet): "The Geographic QuerySet." ### GeoQuerySet Methods ### # ### GeoQuerySet Methods ### def area(self, tolerance=0.05, **kwargs): """ Returns the area of the geographic field in an `area` attribute on Loading Loading @@ -426,7 +426,7 @@ class GeoQuerySet(QuerySet): ) return self._spatial_aggregate(aggregates.Union, **kwargs) ### Private API -- Abstracted DRY routines. ### # ### Private API -- Abstracted DRY routines. ### def _spatial_setup(self, att, desc=None, field_name=None, geo_field_type=None): """ Performs set up for executing the spatial function. Loading django/contrib/gis/feeds.py +2 −2 Original line number Diff line number Diff line Loading @@ -81,7 +81,7 @@ class GeoFeedMixin(object): raise ValueError('Geometry type "%s" not supported.' % geom.geom_type) ### SyndicationFeed subclasses ### # ### SyndicationFeed subclasses ### class GeoRSSFeed(Rss201rev2Feed, GeoFeedMixin): def rss_attributes(self): attrs = super(GeoRSSFeed, self).rss_attributes() Loading Loading @@ -127,7 +127,7 @@ class W3CGeoFeed(Rss201rev2Feed, GeoFeedMixin): self.add_georss_element(handler, self.feed, w3c_geo=True) ### Feed subclass ### # ### Feed subclass ### class Feed(BaseFeed): """ This is a subclass of the `Feed` from `django.contrib.syndication`. Loading django/contrib/gis/gdal/datasource.py +0 −1 Original line number Diff line number Diff line Loading @@ -52,7 +52,6 @@ from django.utils.six.moves import range class DataSource(GDALBase): "Wraps an OGR Data Source object." #### Python 'magic' routines #### def __init__(self, ds_input, ds_driver=False, write=False, encoding='utf-8'): # The write flag. if write: Loading django/contrib/gis/gdal/error.py +2 −2 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ """ #### GDAL & SRS Exceptions #### # #### GDAL & SRS Exceptions #### class GDALException(Exception): pass Loading @@ -27,7 +27,7 @@ class OGRIndexError(GDALException, KeyError): """ silent_variable_failure = True #### GDAL/OGR error checking codes and routine #### # #### GDAL/OGR error checking codes and routine #### # OGR Error Codes OGRERR_DICT = { Loading Loading
django/contrib/gis/db/models/fields.py +2 −2 Original line number Diff line number Diff line Loading @@ -163,7 +163,7 @@ class GeometryField(GeoSelectFormatMixin, Field): self._get_srid_info(connection) return self._units_name ### Routines specific to GeometryField ### # ### Routines specific to GeometryField ### def geodetic(self, connection): """ Returns true if this field's SRID corresponds with a coordinate Loading Loading @@ -236,7 +236,7 @@ class GeometryField(GeoSelectFormatMixin, Field): else: return gsrid ### Routines overloaded from Field ### # ### Routines overloaded from Field ### def contribute_to_class(self, cls, name, **kwargs): super(GeometryField, self).contribute_to_class(cls, name, **kwargs) Loading
django/contrib/gis/db/models/query.py +2 −2 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ from django.utils.deprecation import RemovedInDjango20Warning class GeoQuerySet(QuerySet): "The Geographic QuerySet." ### GeoQuerySet Methods ### # ### GeoQuerySet Methods ### def area(self, tolerance=0.05, **kwargs): """ Returns the area of the geographic field in an `area` attribute on Loading Loading @@ -426,7 +426,7 @@ class GeoQuerySet(QuerySet): ) return self._spatial_aggregate(aggregates.Union, **kwargs) ### Private API -- Abstracted DRY routines. ### # ### Private API -- Abstracted DRY routines. ### def _spatial_setup(self, att, desc=None, field_name=None, geo_field_type=None): """ Performs set up for executing the spatial function. Loading
django/contrib/gis/feeds.py +2 −2 Original line number Diff line number Diff line Loading @@ -81,7 +81,7 @@ class GeoFeedMixin(object): raise ValueError('Geometry type "%s" not supported.' % geom.geom_type) ### SyndicationFeed subclasses ### # ### SyndicationFeed subclasses ### class GeoRSSFeed(Rss201rev2Feed, GeoFeedMixin): def rss_attributes(self): attrs = super(GeoRSSFeed, self).rss_attributes() Loading Loading @@ -127,7 +127,7 @@ class W3CGeoFeed(Rss201rev2Feed, GeoFeedMixin): self.add_georss_element(handler, self.feed, w3c_geo=True) ### Feed subclass ### # ### Feed subclass ### class Feed(BaseFeed): """ This is a subclass of the `Feed` from `django.contrib.syndication`. Loading
django/contrib/gis/gdal/datasource.py +0 −1 Original line number Diff line number Diff line Loading @@ -52,7 +52,6 @@ from django.utils.six.moves import range class DataSource(GDALBase): "Wraps an OGR Data Source object." #### Python 'magic' routines #### def __init__(self, ds_input, ds_driver=False, write=False, encoding='utf-8'): # The write flag. if write: Loading
django/contrib/gis/gdal/error.py +2 −2 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ """ #### GDAL & SRS Exceptions #### # #### GDAL & SRS Exceptions #### class GDALException(Exception): pass Loading @@ -27,7 +27,7 @@ class OGRIndexError(GDALException, KeyError): """ silent_variable_failure = True #### GDAL/OGR error checking codes and routine #### # #### GDAL/OGR error checking codes and routine #### # OGR Error Codes OGRERR_DICT = { Loading