Class: Google::Apis::VectortileV1::Geometry
- Inherits:
-
Object
- Object
- Google::Apis::VectortileV1::Geometry
- 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 the geometry of a feature, that is, the shape that it has on the map. The local tile coordinate system has the origin at the north-west (upper- left) corner of the tile, and is scaled to 4096 units across each edge. The height (Z) axis has the same scale factor: an extruded area with a max_z value of 4096 has the same height as the width of the tile that it is on. There is no clipping boundary, so it is possible that some coordinates will lie outside the tile boundaries.
Instance Attribute Summary collapse
-
#areas ⇒ Array<Google::Apis::VectortileV1::Area>
The areas present in this geometry.
-
#extruded_areas ⇒ Array<Google::Apis::VectortileV1::ExtrudedArea>
The extruded areas present in this geometry.
-
#lines ⇒ Array<Google::Apis::VectortileV1::Line>
The lines present in this geometry.
-
#modeled_volumes ⇒ Array<Google::Apis::VectortileV1::ModeledVolume>
The modeled volumes present in this geometry.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Geometry
constructor
A new instance of Geometry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Geometry
Returns a new instance of Geometry.
386 387 388 |
# File 'generated/google/apis/vectortile_v1/classes.rb', line 386 def initialize(**args) update!(**args) end |
Instance Attribute Details
#areas ⇒ Array<Google::Apis::VectortileV1::Area>
The areas present in this geometry.
Corresponds to the JSON property areas
369 370 371 |
# File 'generated/google/apis/vectortile_v1/classes.rb', line 369 def areas @areas end |
#extruded_areas ⇒ Array<Google::Apis::VectortileV1::ExtrudedArea>
The extruded areas present in this geometry.
Corresponds to the JSON property extrudedAreas
374 375 376 |
# File 'generated/google/apis/vectortile_v1/classes.rb', line 374 def extruded_areas @extruded_areas end |
#lines ⇒ Array<Google::Apis::VectortileV1::Line>
The lines present in this geometry.
Corresponds to the JSON property lines
379 380 381 |
# File 'generated/google/apis/vectortile_v1/classes.rb', line 379 def lines @lines end |
#modeled_volumes ⇒ Array<Google::Apis::VectortileV1::ModeledVolume>
The modeled volumes present in this geometry.
Corresponds to the JSON property modeledVolumes
384 385 386 |
# File 'generated/google/apis/vectortile_v1/classes.rb', line 384 def modeled_volumes @modeled_volumes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
391 392 393 394 395 396 |
# File 'generated/google/apis/vectortile_v1/classes.rb', line 391 def update!(**args) @areas = args[:areas] if args.key?(:areas) @extruded_areas = args[:extruded_areas] if args.key?(:extruded_areas) @lines = args[:lines] if args.key?(:lines) @modeled_volumes = args[:modeled_volumes] if args.key?(:modeled_volumes) end |