Class: GeoWorks::Derivatives::Processors::Vector::Info

Inherits:
Object
  • Object
show all
Defined in:
lib/geo_works/derivatives/processors/vector/info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#docObject

Returns the value of attribute doc.



7
8
9
# File 'lib/geo_works/derivatives/processors/vector/info.rb', line 7

def doc
  @doc
end

#driverString

Returns the ogr driver name

Returns:

  • (String)

    driver name



22
23
24
# File 'lib/geo_works/derivatives/processors/vector/info.rb', line 22

def driver
  @driver = driver_name
end

#nameString

Returns the vector dataset name

Returns:

  • (String)

    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

#boundsString

Returns vector bounds

Returns:

  • (String)

    bounds



34
35
36
# File 'lib/geo_works/derivatives/processors/vector/info.rb', line 34

def bounds
  @bounds = vector_bounds
end

#geomString

Returns vector geometry type

Returns:

  • (String)

    geom



28
29
30
# File 'lib/geo_works/derivatives/processors/vector/info.rb', line 28

def geom
  @geom = vector_geom
end