Class: GeoConcerns::Processors::Vector::Info

Inherits:
Object
  • Object
show all
Defined in:
app/processors/geo_concerns/processors/vector/info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#docObject

Returns the value of attribute doc.



5
6
7
# File 'app/processors/geo_concerns/processors/vector/info.rb', line 5

def doc
  @doc
end

#driverString

Returns the ogr driver name

Returns:

  • (String)

    driver name



20
21
22
# File 'app/processors/geo_concerns/processors/vector/info.rb', line 20

def driver
  @driver = driver_name
end

#nameString

Returns the vector dataset name

Returns:

  • (String)

    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

#boundsString

Returns vector bounds

Returns:

  • (String)

    bounds



32
33
34
# File 'app/processors/geo_concerns/processors/vector/info.rb', line 32

def bounds
  @bounds = vector_bounds
end

#geomString

Returns vector geometry type

Returns:

  • (String)

    geom



26
27
28
# File 'app/processors/geo_concerns/processors/vector/info.rb', line 26

def geom
  @geom = vector_geom
end