Module: RGeo::Geos::FFIMultiLineStringMethods
- Included in:
- FFIMultiLineStringImpl
- Defined in:
- lib/rgeo/geos/ffi_feature_methods.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#coordinates ⇒ Object
547 548 549 |
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 547 def coordinates each.map(&:coordinates) end |
#geometry_type ⇒ Object
531 532 533 |
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 531 def geometry_type Feature::MultiLineString end |
#is_closed? ⇒ Boolean
539 540 541 542 543 544 545 |
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 539 def is_closed? size_ = num_geometries size_.times do |n_| return false unless @fg_geom.get_geometry_n(n_).closed? end true end |
#length ⇒ Object
535 536 537 |
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 535 def length @fg_geom.length end |