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



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

def coordinates
  each.map(&:coordinates)
end

#geometry_typeObject



531
532
533
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 531

def geometry_type
  Feature::MultiLineString
end

#is_closed?Boolean

Returns:

  • (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

#lengthObject



535
536
537
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 535

def length
  @fg_geom.length
end