Class: GeoRuby::SimpleFeatures::Srid
- Inherits:
-
Object
- Object
- GeoRuby::SimpleFeatures::Srid
- Defined in:
- lib/georuby-ext/georuby/srid.rb
Constant Summary collapse
- @@instances =
{}
Instance Attribute Summary collapse
-
#srid ⇒ Object
Returns the value of attribute srid.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(srid) ⇒ Srid
constructor
A new instance of Srid.
- #rgeo_factory ⇒ Object
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
#srid ⇒ Object
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_factory ⇒ Object
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 |