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)

576
577
578
579
580
581
582
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 576

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

#coordinatesObject


589
590
591
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 589

def coordinates
  each.map(&:coordinates)
end

#geometry_typeObject


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

def geometry_type
  Feature::MultiLineString
end

#is_closed?Boolean

Returns:

  • (Boolean)

584
585
586
587
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 584

def is_closed?
  warn "The is_closed? method is deprecated, please use the closed? counterpart, will be removed in v3" unless ENV["RGEO_SILENCE_DEPRECATION"]
  closed?
end

#lengthObject


572
573
574
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 572

def length
  @fg_geom.length
end