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


204
205
206
207
208
209
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 204

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


200
201
202
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 200

def m
  @mgeometry.m
end

#xObject


188
189
190
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 188

def x
  @zgeometry.x
end

#yObject


192
193
194
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 192

def y
  @zgeometry.y
end

#zObject


196
197
198
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 196

def z
  @zgeometry.z
end