Skip to content

Commit

Permalink
add orientation as mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-metalinkage committed Dec 14, 2023
1 parent 4556d94 commit daf454d
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 5 deletions.
3 changes: 2 additions & 1 deletion _sources/features/topo-arc/examples/arc_by_center.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"P1",
"P2",
"PC"
]
],
"orientation": "cw"
},
"properties": {
"arcLength": 25.615,
Expand Down
3 changes: 2 additions & 1 deletion _sources/features/topo-arc/examples/arc_chord.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"P1",
"P2"
],
"radius": 105.438
"radius": 105.438,
"orientation": "cw"
},
"properties": {
"arcLength": 25.615
Expand Down
22 changes: 20 additions & 2 deletions _sources/features/topo-arc/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,18 @@
"references": {
"minItems": 3,
"maxItems": 3
},
"orientation": {
"type": "string",
"enum": [
"cw",
"ccw"
]
}
}
},
"required": [
"orientation"
]
},
{
"properties": {
Expand All @@ -50,10 +60,18 @@
},
"radius": {
"type": "number"
},
"orientation": {
"type": "string",
"enum": [
"cw",
"ccw"
]
}
},
"required": [
"radius"
"radius",
"orientation"
]
},
{
Expand Down
22 changes: 22 additions & 0 deletions _sources/features/topo-arc/tests/arc_chord-orientation-fail.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"@context": {
"@base": "http://www.example.com/features/"
},
"id": "chord1",
"type": "Feature",
"featureType": "my:ArcChordFeature",
"geometry": null,
"topology": {
"type": "ArcByChord",
"x-description": "References is an ordered list of features with for an Arc Chord, radius and length determine geometry",
"references": [
"P1",
"P2"
],
"orientation": "cw",
"radius": 2.5
},
"properties": {
"arcLength": 25.615
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"references": [
"P1",
"P2"
]
],
"orientation": "widdershins"
},
"properties": {
"arcLength": 25.615
Expand Down

0 comments on commit daf454d

Please sign in to comment.