Update clause_specification_text.adoc#214
Conversation
Added clarifying text and improved examples for MultiPolygon domain
improved punctuation
awarde96
left a comment
There was a problem hiding this comment.
I think this looks good and clarifies the multiPolygon, maybe to be more explicit we could add the range for the Polygon example with holes that there is only a single value in the range? Not fully needed but maybe helps people understand it is a single polygon.
{
"type" : "Coverage",
"domain" : {
"type": "Domain",
"domainType": "Polygon",
"axes": {
"composite": {
"dataType": "polygon",
"coordinates": ["x","y"],
"values": [
[ [ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ]
[ [100.3, 0.2], [100.3, 0.4], [100.5, 0.4], [100.5, 0.2], [100.3, 0.2] ]
[ [100.7, 0.6], [100.8, 0.8], [100.9, 0.6], [100.7, 0.6] ] ]
]
},
"z": { "values": [2] },
"t": { "values": ["2008-01-01T04:00:00Z"] }
},
"referencing": [...]
},
"parameters" : {
"temperature": {...}
},
"ranges" : {
"temperature" : {
"type" : "NdArray",
"dataType": "float",
"values" : [273.15]
}
}
}
I would also add an explicit example of MultiPolygon where one of the Polygons has a hole.
{
"type": "Coverage",
"domain": {
"type": "Domain",
"domainType": "MultiPolygon",
"axes": {
"composite": {
"dataType": "polygon",
"coordinates": ["x", "y"],
"values": [
[
[
[40, 40],
[20, 45],
[45, 30],
[40, 40]
]
],
[
[
[20, 35],
[10, 30],
[10, 10],
[30, 5],
[45, 20],
[20, 35]
],
[
[30, 20],
[20, 15],
[20, 25],
[30, 20]
]
]
]
},
"z": {
"values": [2]
},
"t": {
"values": ["2008-01-01T04:00:00Z"]
}
},
"referencing": [...]
},
"parameters": {
},
"ranges": {
"temperature": {
"type": "NdArray",
"dataType": "float",
"axisNames": ["composite"],
"shape": [2],
"values": [23.1, 24.7]
}
}
}
|
In the above MultiPolygon example, why are there two temperature values in the range? There is only one z value and one t value, and I thought the agreement was that a |
|
I wonder if we should clarify the text around MultiPolygons. Instead of:
how about:
(Note I've proposed that we could consider a new domain type for the use case of encoding the population of the individual islands - see #218.) |
|
Hi @jonblower, for the This is the first polygon. And this is the second I am trying to represent the example found here https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry under Multipart geometries (2D), the MultiPolygon example specifically. Maybe I have a few parentheses off somewhere? In the group meeting we agreed that a MultiPolygon could have multiple domain elements. Maybe @chris-little can elaborate further. |
|
@awarde96 I was just suggesting a change to the explanatory text - I didn't see a problem with the example (although I didn't check it in detail, it looks fine to me) |
|
See my understnading of the use of MultiPolygons at Issue #218 |
Added example of a polygon with holes
Added text clarifying use of MultiPolygon and improved examples
Minor text edits