Module: RGeo::Geos::ZMPointMethods

Included in:
ZMPointImpl
Defined in:
lib/rgeo/geos/zm_feature_methods.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#coordinatesObject


230
231
232
233
234
235
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 230

def coordinates
  [x, y].tap do |coords|
    coords << z if @factory.property(:has_z_coordinate)
    coords << m if @factory.property(:has_m_coordinate)
  end
end

#mObject


226
227
228
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 226

def m
  @mgeometry.m
end

#xObject


214
215
216
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 214

def x
  @zgeometry.x
end

#yObject


218
219
220
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 218

def y
  @zgeometry.y
end

#zObject


222
223
224
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 222

def z
  @zgeometry.z
end