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



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

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



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

def m
  @mgeometry.m
end

#xObject



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

def x
  @zgeometry.x
end

#yObject



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

def y
  @zgeometry.y
end

#zObject



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

def z
  @zgeometry.z
end