Class: Google::Apis::VectortileV1::Row

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/vectortile_v1/classes.rb,
generated/google/apis/vectortile_v1/representations.rb,
generated/google/apis/vectortile_v1/representations.rb

Overview

A row of altitude points in the elevation grid, ordered from west to east.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Row

Returns a new instance of Row.



554
555
556
# File 'generated/google/apis/vectortile_v1/classes.rb', line 554

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#altitude_diffsArray<Fixnum>

The difference between each successive pair of altitudes, from west to east. The first, westmost point, is just the altitude rather than a diff. The units are specified by the altitude_multiplier parameter above; the value in meters is given by altitude_multiplier * altitude_diffs[n]. The altitude row (in metres above sea level) can be reconstructed with: a[0] = altitude_diffs[0] * altitude_multiplier when n > 0, a[n] = a[n-1] + altitude_diffs[n-1] * altitude_multiplier. Corresponds to the JSON property altitudeDiffs

Returns:

  • (Array<Fixnum>)


552
553
554
# File 'generated/google/apis/vectortile_v1/classes.rb', line 552

def altitude_diffs
  @altitude_diffs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



559
560
561
# File 'generated/google/apis/vectortile_v1/classes.rb', line 559

def update!(**args)
  @altitude_diffs = args[:altitude_diffs] if args.key?(:altitude_diffs)
end