  from django.contrib.gis.geos.geometry import GEOSGeometry
  from django.utils import six
  from django.utils.six.moves import range
  
  
  class Point(GEOSGeometry):
      _minlength = 2
      _maxlength = 3
 
</s> remove     # X, Y, Z properties
    x = property(get_x, set_x)
    y = property(get_y, set_y)
    z = property(get_z, set_z)
 </s> add     def get_x(self):
        warnings.warn(
            "`get_x()` is deprecated, use the `x` property instead.",
            RemovedInDjango20Warning, 2
        )
        return self.x

    def set_x(self, value):
        warnings.warn(
            "`set_x()` is deprecated, use the `x` property instead.",
            RemovedInDjango20Warning, 2
        )
        self.x = value

    def get_y(self):
        warnings.warn(
            "`get_y()` is deprecated, use the `y` property instead.",
            RemovedInDjango20Warning, 2
        )
        return self.y

    def set_y(self, value):
        warnings.warn(
            "`set_y()` is deprecated, use the `y` property instead.",
            RemovedInDjango20Warning, 2
        )
        self.y = value

    def get_z(self):
        warnings.warn(
            "`get_z()` is deprecated, use the `z` property instead.",
            RemovedInDjango20Warning, 2
        )
        return self.z

    def set_z(self, value):
        warnings.warn(
            "`set_z()` is deprecated, use the `z` property instead.",
            RemovedInDjango20Warning, 2
        )
        self.z = value </s> remove         if self.hasz:
            self._cs.setOrdinate(2, 0, value)
        else:
 </s> add         if not self.hasz: </s> remove     def get_x(self):
 </s> add     @property
    def x(self): </s> remove                 self.assertRaises(IndexError, g.get_x)
 </s> add                 with self.assertRaises(IndexError):
                    g.x
from django.utils.deprecation import RemovedInDjango20Warning
  from django.contrib.gis.geos.geometry import GEOSGeometry
  from django.utils import six
from django.utils.deprecation import RemovedInDjango20Warning
  from django.utils.six.moves import range
  
  
  class Point(GEOSGeometry):
      _minlength = 2
      _maxlength = 3
keep add keep keep keep keep keep keep
 Refs #25665 -- Deprecated getters/setters of Point coordinate properties. 
django/contrib/gis/geos/point.py