View Source GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometrySurface (google_api_content_warehouse v0.4.0)

A polygonal surface, composed of a closed exterior loop with optional closed interior loops.

Attributes

  • loops (type: list(GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiPoint.t), default: nil) - The first loop is exterior; any additional are interior.
  • materialSpecs (type: list(GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMaterialSpec.t), default: nil) - The materials this surface is made of. Either all or none of the Surface protos must have this field set (even for 'null' references). Otherwise, this field must not be set. IMPORTANT: This field must not contain more than one MaterialSpec unless CityJSON's material "theme" is incorporated into CityJsonProto (see discussion in go/cityjson-for-hand-modeled-landmarks).
  • semanticsIndex (type: integer(), default: nil) - The semantics of this surface (e.g. what part of a building it is) represented as an index into the containing Geometry's semantics field. Either all or none of the Surface protos must have this field set (even for 'null' references). Otherwise, this field must not be set.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometrySurface{
    loops:
      [
        GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiPoint.t()
      ]
      | nil,
    materialSpecs:
      [
        GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMaterialSpec.t()
      ]
      | nil,
    semanticsIndex: integer() | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.