Class: GeoConcerns::Processors::Vector::Info
- Inherits:
-
Object
- Object
- GeoConcerns::Processors::Vector::Info
- Defined in:
- app/processors/geo_concerns/processors/vector/info.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
-
#driver ⇒ String
Returns the ogr driver name.
-
#name ⇒ String
Returns the vector dataset name.
Instance Method Summary collapse
-
#bounds ⇒ String
Returns vector bounds.
-
#geom ⇒ String
Returns vector geometry type.
-
#initialize(path) ⇒ Info
constructor
A new instance of Info.
Constructor Details
#initialize(path) ⇒ Info
Returns a new instance of Info.
8 9 10 |
# File 'app/processors/geo_concerns/processors/vector/info.rb', line 8 def initialize(path) @doc = ogrinfo(path) end |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
5 6 7 |
# File 'app/processors/geo_concerns/processors/vector/info.rb', line 5 def doc @doc end |
#driver ⇒ String
Returns the ogr driver name
20 21 22 |
# File 'app/processors/geo_concerns/processors/vector/info.rb', line 20 def driver @driver = driver_name end |
#name ⇒ String
Returns the vector dataset name
14 15 16 |
# File 'app/processors/geo_concerns/processors/vector/info.rb', line 14 def name @name = vector_name end |
Instance Method Details
#bounds ⇒ String
Returns vector bounds
32 33 34 |
# File 'app/processors/geo_concerns/processors/vector/info.rb', line 32 def bounds @bounds = vector_bounds end |
#geom ⇒ String
Returns vector geometry type
26 27 28 |
# File 'app/processors/geo_concerns/processors/vector/info.rb', line 26 def geom @geom = vector_geom end |