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

#coordinatesObject


564
565
566
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 564

def coordinates
  each.map(&:coordinates)
end

#geometry_typeObject


548
549
550
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 548

def geometry_type
  Feature::MultiLineString
end

#is_closed?Boolean

Returns:

  • (Boolean)

556
557
558
559
560
561
562
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 556

def is_closed?
  size = num_geometries
  size.times do |n|
    return false unless @fg_geom.get_geometry_n(n).closed?
  end
  true
end

#lengthObject


552
553
554
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 552

def length
  @fg_geom.length
end