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

#closed?Boolean

Returns:

  • (Boolean)


560
561
562
563
564
565
566
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 560

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

#coordinatesObject



568
569
570
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 568

def coordinates
  each.map(&:coordinates)
end

#geometry_typeObject



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

def geometry_type
  Feature::MultiLineString
end

#lengthObject



556
557
558
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 556

def length
  @fg_geom.length
end