Class: GeoRuby::SimpleFeatures::Srid

Inherits:
Object
  • Object
show all
Defined in:
lib/georuby-ext/georuby/srid.rb

Constant Summary collapse

@@instances =
{}

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(srid) ⇒ Srid

Returns a new instance of Srid.



4
5
6
# File 'lib/georuby-ext/georuby/srid.rb', line 4

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

Instance Attribute Details

#sridObject

Returns the value of attribute srid.



2
3
4
# File 'lib/georuby-ext/georuby/srid.rb', line 2

def srid
  @srid
end

Class Method Details

.new(srid) ⇒ Object



9
10
11
# File 'lib/georuby-ext/georuby/srid.rb', line 9

def self.new(srid)
  @@instances[srid] ||= super(srid)
end

Instance Method Details

#rgeo_factoryObject



13
14
15
# File 'lib/georuby-ext/georuby/srid.rb', line 13

def rgeo_factory
  @rgeo_factory ||= RGeo::Geos.factory(:srid => srid, :native_interface => :ffi, :wkt_parser => {:support_ewkt => true})
end