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)

362
363
364
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 362

def closed?
  @zgeometry.closed?
end

#coordinatesObject


371
372
373
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 371

def coordinates
  each.map(&:coordinates)
end

#is_closed?Boolean

Returns:

  • (Boolean)

366
367
368
369
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 366

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


358
359
360
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 358

def length
  @zgeometry.length
end