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


560
561
562
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 560

def coordinates
  each.map(&:coordinates)
end

#geometry_typeObject


544
545
546
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 544

def geometry_type
  Feature::MultiLineString
end

#is_closed?Boolean

Returns:

  • (Boolean)

552
553
554
555
556
557
558
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 552

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

#lengthObject


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

def length
  @fg_geom.length
end