Class: Google::Apis::SpectrumV1explorer::GeoLocationPolygon
- Inherits:
-
Object
- Object
- Google::Apis::SpectrumV1explorer::GeoLocationPolygon
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/spectrum_v1explorer/classes.rb,
generated/google/apis/spectrum_v1explorer/representations.rb,
generated/google/apis/spectrum_v1explorer/representations.rb
Overview
A region is represented using the polygonal shape.
Instance Attribute Summary collapse
-
#exterior ⇒ Array<Google::Apis::SpectrumV1explorer::GeoLocationPoint>
When the geolocation describes a region, the exterior field refers to a list of latitude/longitude points that represent the vertices of a polygon.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GeoLocationPolygon
constructor
A new instance of GeoLocationPolygon.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GeoLocationPolygon
Returns a new instance of GeoLocationPolygon
519 520 521 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 519 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exterior ⇒ Array<Google::Apis::SpectrumV1explorer::GeoLocationPoint>
When the geolocation describes a region, the exterior field refers to a list of latitude/longitude points that represent the vertices of a polygon. The first and last points must be the same. Thus, a minimum of four points is required. The following polygon restrictions from RFC5491 apply:
- A connecting line shall not cross another connecting line of the same polygon.
- The vertices must be defined in a counterclockwise order.
- The edges of a polygon are defined by the shortest path between two points in space (not a geodesic curve). Consequently, the length between two adjacent vertices should be restricted to a maximum of 130 km.
- All vertices are assumed to be at the same altitude.
- Polygon shapes should be restricted to a maximum of 15 vertices (16 points
that include the repeated vertex).
Corresponds to the JSON property
exterior
517 518 519 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 517 def exterior @exterior end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
524 525 526 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 524 def update!(**args) @exterior = args[:exterior] if args.key?(:exterior) end |