Class: GeoWorks::Derivatives::Processors::Vector::Info
- Inherits:
-
Object
- Object
- GeoWorks::Derivatives::Processors::Vector::Info
- Defined in:
- lib/geo_works/derivatives/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.
10 11 12 |
# File 'lib/geo_works/derivatives/processors/vector/info.rb', line 10 def initialize(path) @doc = ogrinfo(path) end |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
7 8 9 |
# File 'lib/geo_works/derivatives/processors/vector/info.rb', line 7 def doc @doc end |
#driver ⇒ String
Returns the ogr driver name
22 23 24 |
# File 'lib/geo_works/derivatives/processors/vector/info.rb', line 22 def driver @driver = driver_name end |
#name ⇒ String
Returns the vector dataset name
16 17 18 |
# File 'lib/geo_works/derivatives/processors/vector/info.rb', line 16 def name @name = vector_name end |
Instance Method Details
#bounds ⇒ String
Returns vector bounds
34 35 36 |
# File 'lib/geo_works/derivatives/processors/vector/info.rb', line 34 def bounds @bounds = vector_bounds end |
#geom ⇒ String
Returns vector geometry type
28 29 30 |
# File 'lib/geo_works/derivatives/processors/vector/info.rb', line 28 def geom @geom = vector_geom end |