Module: RGeo::Geos::ZMMultiLineStringMethods

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#closed?Boolean

Returns:

  • (Boolean)

346
347
348
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 346

def closed?
  @zgeometry.closed?
end

#coordinatesObject


355
356
357
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 355

def coordinates
  each.map(&:coordinates)
end

#is_closed?Boolean

Returns:

  • (Boolean)

350
351
352
353
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 350

def is_closed?
  warn "The is_closed? method is deprecated, please use the closed? counterpart, will be removed in v3" unless ENV["RGEO_SILENCE_DEPRECATION"]
  closed?
end

#lengthObject


342
343
344
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 342

def length
  @zgeometry.length
end