                  self.assertEqual(0, len(g))
  
              # Testing __getitem__ (doesn't work on Point or Polygon)
              if isinstance(g, Point):
                  self.assertRaises(IndexError, g.get_x)
              elif isinstance(g, Polygon):
                  lr = g.shell
                  self.assertEqual('LINEARRING EMPTY', lr.wkt)
                  self.assertEqual(0, len(lr))
                  self.assertEqual(True, lr.empty)
 
</s> remove         if self.hasz:
            self._cs.setOrdinate(2, 0, value)
        else:
 </s> add         if not self.hasz: </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     def set_z(self, value):
 </s> add     @z.setter
    def z(self, value):
                with self.assertRaises(IndexError):
                    g.x
                  self.assertEqual(0, len(g))
  
              # Testing __getitem__ (doesn't work on Point or Polygon)
              if isinstance(g, Point):
                with self.assertRaises(IndexError):
                    g.x
              elif isinstance(g, Polygon):
                  lr = g.shell
                  self.assertEqual('LINEARRING EMPTY', lr.wkt)
                  self.assertEqual(0, len(lr))
                  self.assertEqual(True, lr.empty)
keep keep keep keep replace keep keep keep keep keep
 Refs #25665 -- Deprecated getters/setters of Point coordinate properties. 
tests/gis_tests/geos_tests/test_geos.py