Skip to content

Commit 39c4caa

Browse files
authored
Fix formatting and clarify examples for polygons
added coverage example for MultiPolygon with holes
1 parent 2bc94f3 commit 39c4caa

1 file changed

Lines changed: 110 additions & 5 deletions

File tree

standard/clause_specification_text.adoc

Lines changed: 110 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,7 +1624,7 @@ Coverage example:
16241624
//### 11.9. Polygon
16251625
==== Polygon
16261626

1627-
Polygons in this domain domain type are defined equivalent to GeoJSON, except that they can only contain `[x,y]` positions (and not `z` or additional coordinates):
1627+
Polygons in this domain type are defined equivalent to GeoJSON, except that they can only contain `[x,y]` positions (and not `z` or additional coordinates):
16281628
- A LinearRing is an array of 4 or more `[x,y]` arrays where each of `x` and `y` is a coordinate value. The first and last `[x,y]` elements are identical.
16291629
- A Polygon is an array of LinearRing arrays. For Polygons with multiple rings, the first MUST be the exterior ring and any others MUST be interior rings or holes.
16301630

@@ -1758,7 +1758,7 @@ Coverage example of a Polygon with two holes, one square, the other triangular:
17581758
- A domain with PolygonSeries domain type MAY have the axis `"z"` which MUST have a single coordinate value only.
17591759
- The axis `"composite"` MUST have the data type `"polygon"` and the coordinate identifiers `"x","y"`, in that order.
17601760

1761-
Domain example:
1761+
Domain example of a PolygonSeries:
17621762

17631763
[%unnumbered%]
17641764
```json
@@ -1780,7 +1780,7 @@ Domain example:
17801780
}
17811781
```
17821782

1783-
Coverage example:
1783+
Coverage example of a PolygonSeries:
17841784

17851785
[%unnumbered%]
17861786
```json
@@ -1826,7 +1826,7 @@ Coverage example:
18261826
- A MultiPolygon domain MAY have the axes `"z"` and `"t"` which both MUST have a single coordinate value only.
18271827
- A MultiPolygon uses multiple polygons to represent non-contiguous regions, which are collectively treated as a single coverage domain, with a single associated range value. For example the MultiPolygon could represent the individual islands within a country, associated with the total population of that country.
18281828

1829-
Domain example:
1829+
Domain example of a MultiPolygon:
18301830

18311831
[%unnumbered%]
18321832
```json
@@ -1849,7 +1849,7 @@ Domain example:
18491849
}
18501850
```
18511851

1852-
Coverage example:
1852+
Coverage example of a MultiPolygon:
18531853

18541854
[%unnumbered%]
18551855
```json
@@ -1887,6 +1887,111 @@ Coverage example:
18871887
}
18881888
```
18891889

1890+
Domain example of a MultiPolygon where one polygon has a hole:
1891+
1892+
[%unnumbered%]
1893+
```json
1894+
{
1895+
"type": "Coverage",
1896+
"domain": {
1897+
"type": "Domain",
1898+
"domainType": "MultiPolygon",
1899+
"axes": {
1900+
"composite": {
1901+
"dataType": "polygon",
1902+
"coordinates": ["x", "y"],
1903+
"values": [
1904+
[
1905+
[
1906+
[40, 40],
1907+
[20, 45],
1908+
[45, 30],
1909+
[40, 40]
1910+
]
1911+
],
1912+
[
1913+
[
1914+
[20, 35],
1915+
[10, 30],
1916+
[10, 10],
1917+
[30, 5],
1918+
[45, 20],
1919+
[20, 35]
1920+
],
1921+
[
1922+
[30, 20],
1923+
[20, 15],
1924+
[20, 25],
1925+
[30, 20]
1926+
]
1927+
]
1928+
]
1929+
},
1930+
"z": {
1931+
"values": [2]
1932+
},
1933+
"t": {
1934+
"values": ["2008-01-01T04:00:00Z"]
1935+
}
1936+
},
1937+
"referencing": [...]
1938+
},
1939+
"parameters": {
1940+
},
1941+
"ranges": {
1942+
"temperature": {
1943+
"type": "NdArray",
1944+
"dataType": "float",
1945+
"axisNames": ["composite"],
1946+
"shape": [2],
1947+
"values": [23.1, 24.7]
1948+
}
1949+
}
1950+
}
1951+
```
1952+
1953+
Coverage example of a MultiPolygon where one of the Polygons has a hole.
1954+
1955+
[%unnumbered%]
1956+
```json
1957+
{
1958+
"type": "Coverage",
1959+
"domain": {
1960+
"type": "Domain",
1961+
"domainType": "MultiPolygon",
1962+
"axes": {
1963+
"composite": {
1964+
"dataType": "polygon",
1965+
"coordinates": ["x", "y"],
1966+
"values": [
1967+
[[[40, 40],[20, 45],[45, 30],[40, 40]]],
1968+
[[[20, 35],[10, 30],[10, 10],[30, 5],[45, 20],[20, 35]],
1969+
[[30, 20],[20, 15],[20, 25],[30, 20]]
1970+
]
1971+
},
1972+
"z": {
1973+
"values": [2]
1974+
},
1975+
"t": {
1976+
"values": ["2008-01-01T04:00:00Z"]
1977+
}
1978+
},
1979+
"referencing": [...]
1980+
},
1981+
"parameters": {
1982+
},
1983+
"ranges": {
1984+
"temperature": {
1985+
"type": "NdArray",
1986+
"dataType": "float",
1987+
"axisNames": ["composite"],
1988+
"shape": [2],
1989+
"values": [23.1, 24.7]
1990+
}
1991+
}
1992+
}
1993+
```
1994+
18901995
[[multipolygonseries]]
18911996
//### 11.12. MultiPolygonSeries
18921997
==== MultiPolygonSeries

0 commit comments

Comments
 (0)