Module: RGeo::Geos::FFIGeometryCollectionMethods

Defined in:
lib/georuby-ext/rgeo/geos/ffi_feature_methods.rb

Instance Method Summary collapse

Instance Method Details

#to_geometryObject



42
43
44
# File 'lib/georuby-ext/rgeo/geos/ffi_feature_methods.rb', line 42

def to_geometry
  self
end

#to_georubyObject



34
35
36
37
38
39
40
# File 'lib/georuby-ext/rgeo/geos/ffi_feature_methods.rb', line 34

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