def to_a
      if defined?(@to_a)
        @to_a
      else
        cs = self.coord_seq
        @to_a = if self.has_z?
          [ cs.get_x(0), cs.get_y(0), cs.get_z(0) ]
        else
          [ cs.get_x(0), cs.get_y(0) ]
        end
      end
    end
def to_a
      if defined?(@to_a)
        @to_a
      else
        cs = self.coord_seq
        @to_a = if self.has_z?
          [ cs.get_x(0), cs.get_y(0), cs.get_z(0) ]
        else
          [ cs.get_x(0), cs.get_y(0) ]
        end
      end
    end
def to_a if defined? ( @to_a ) @to_a else cs = self . coord_seq @to_a = if self . has_z? [ cs . get_x ( 0 ) , cs . get_y ( 0 ) , cs . get_z ( 0 ) ] else [ cs . get_x ( 0 ) , cs . get_y ( 0 ) ] end end end
Returns the Point's coordinates as an Array in the following format:

  [ x, y, z ]

 The Z coordinate will only be present for Points which have a Z
 dimension.
Returns the Point s coordinates as an Array in the following format :