Module: RGeo::Cartesian::GeometryCollectionMethods

Defined in:
lib/georuby-ext/rgeo/cartesian/feature_methods.rb

Instance Method Summary collapse

Instance Method Details

#to_georubyObject



23
24
25
26
27
28
29
# File 'lib/georuby-ext/rgeo/cartesian/feature_methods.rb', line 23

def to_georuby
  if self.class == MultiPolygonImpl
    GeoRuby::SimpleFeatures::MultiPolygon.from_polygons collect(&:to_georuby), srid
  else
    GeoRuby::SimpleFeatures::GeometryCollection.from_geometries collect(&:to_georuby), srid
  end
end