dryade/georuby-ext

View on GitHub
lib/georuby-ext/georuby/srid.rb

Summary

Maintainability
A
0 mins
Test Coverage
class GeoRuby::SimpleFeatures::Srid
  attr_accessor :srid 

  def initialize(srid)   
    @srid ||= srid
  end 

  @@instances = {}
  def self.new(srid)
    @@instances[srid] ||= super(srid)
  end
 
  def rgeo_factory
    @rgeo_factory ||= RGeo::Geos.factory(:srid => srid, :native_interface => :ffi, :wkt_parser => {:support_ewkt => true})
  end

end