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)


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

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

#coordinatesObject



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

def coordinates
  each.map(&:coordinates)
end

#geometry_typeObject



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

def geometry_type
  Feature::MultiLineString
end

#lengthObject



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

def length
  @fg_geom.length
end