Class: Google::Apis::VectortileV1::ExtrudedArea

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

Represents a height-extruded area: a 3D prism with a constant X-Y plane cross section. Used to represent extruded buildings. A single building may consist of several extruded areas. The min_z and max_z fields are scaled to the size of the tile. An extruded area with a max_z value of 4096 has the same height as the width of the tile that it is on.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExtrudedArea

Returns a new instance of ExtrudedArea.



180
181
182
# File 'generated/google/apis/vectortile_v1/classes.rb', line 180

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

Instance Attribute Details

#areaGoogle::Apis::VectortileV1::Area

Represents an area. Used to represent regions such as water, parks, etc. Next ID: 10 Corresponds to the JSON property area



166
167
168
# File 'generated/google/apis/vectortile_v1/classes.rb', line 166

def area
  @area
end

#max_zFixnum

The z-value in local tile coordinates where the extruded area ends. Corresponds to the JSON property maxZ

Returns:

  • (Fixnum)


171
172
173
# File 'generated/google/apis/vectortile_v1/classes.rb', line 171

def max_z
  @max_z
end

#min_zFixnum

The z-value in local tile coordinates where the extruded area begins. This is non-zero for extruded areas that begin off the ground. For example, a building with a skybridge may have an extruded area component with a non-zero min_z. Corresponds to the JSON property minZ

Returns:

  • (Fixnum)


178
179
180
# File 'generated/google/apis/vectortile_v1/classes.rb', line 178

def min_z
  @min_z
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



185
186
187
188
189
# File 'generated/google/apis/vectortile_v1/classes.rb', line 185

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