Sha256: 8c6f5cf6aaecf01318dfbb0d684cd5a20d3085dc35f266ec8887523b40f65886
Contents?: true
Size: 551 Bytes
Versions: 1
Compression:
Stored size: 551 Bytes
Contents
class RGeo::Geos::PointImpl def to_georuby GeoRuby::SimpleFeatures::Point.from_x_y x, y, srid end end class RGeo::Geos::LineStringImpl def to_georuby GeoRuby::SimpleFeatures::LineString.from_points points.collect(&:to_georuby), srid end end class RGeo::Geos::PolygonImpl def to_georuby GeoRuby::SimpleFeatures::Polygon.from_linear_rings [exterior_ring.to_georuby], srid end end class RGeo::Geos::MultiPolygonImpl def to_georuby GeoRuby::SimpleFeatures::MultiPolygon.from_polygons collect(&:to_georuby), srid end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
georuby-ext-0.0.1 | lib/georuby-ext/rgeo.rb |