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



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

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



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

def m
  @mgeometry.m
end

#xObject



184
185
186
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 184

def x
  @zgeometry.x
end

#yObject



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

def y
  @zgeometry.y
end

#zObject



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

def z
  @zgeometry.z
end