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



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

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



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

def m
  @mgeometry.m
end

#xObject



210
211
212
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 210

def x
  @zgeometry.x
end

#yObject



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

def y
  @zgeometry.y
end

#zObject



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

def z
  @zgeometry.z
end