class Google::Apis::VectortileV1::Geometry

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.

Attributes

areas[RW]

The areas present in this geometry. Corresponds to the JSON property `areas` @return [Array<Google::Apis::VectortileV1::Area>]

extruded_areas[RW]

The extruded areas present in this geometry. Not populated if modeled_volumes are included in this geometry unless always_include_building_footprints is set in GetFeatureTileRequest, in which case the client should decide which ( extruded areas or modeled volumes) should be used (they should not be rendered together). Corresponds to the JSON property `extrudedAreas` @return [Array<Google::Apis::VectortileV1::ExtrudedArea>]

lines[RW]

The lines present in this geometry. Corresponds to the JSON property `lines` @return [Array<Google::Apis::VectortileV1::Line>]

modeled_volumes[RW]

The modeled volumes present in this geometry. Not populated unless enable_modeled_volumes has been set in GetFeatureTileRequest. Corresponds to the JSON property `modeledVolumes` @return [Array<Google::Apis::VectortileV1::ModeledVolume>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vectortile_v1/classes.rb, line 392
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vectortile_v1/classes.rb, line 397
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