Skip to content

Commit

Permalink
Arc topology example diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-metalinkage committed Feb 6, 2024
1 parent d24a0f0 commit 1e47e66
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 11 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _sources/features/topo-arc/assets/arc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _sources/features/topo-arc/assets/spline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 13 additions & 5 deletions _sources/features/topo-arc/examples.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
- title: Example GeoJSON feature using Arc with Center topology
- title: Example GeoJSON feature using ArcWithCenter topology
content: |-
Arc with Center example.
Topology defined by 2 end points and a centre that are references to features with point geometry.
![Example](assets/arc-with-center.png)
radius and arcLength are implicit but may be provided as optional properties of the feature.
Expand All @@ -21,7 +23,7 @@
Note that properties "radius" and "arcLength" are not required in the containing feature but defined for convenience.
![Example](@@assets@@/arc.png)
![Example](assets/arc.png)
snippets:
- language: json
Expand All @@ -31,10 +33,12 @@
shacl-closure:
- ../topo-feature/examples/points.ttl

- title: Example GeoJSON feature using Arc by chord topology
- title: Example GeoJSON feature using ArcByChord topology
content: |-
Arc by Chord example.
![Example](assets/arc-by-chord.png)
snippets:
- language: json
base-uri: http://www.example.com/features/
Expand All @@ -43,10 +47,12 @@
shacl-closure:
- ../topo-feature/examples/points.ttl

- title: Example GeoJSON feature using Circle with Center topology
- title: Example GeoJSON feature using CircleWithCenter topology
content: |-
Circle with Center example.
![Example](assets/circle-with-center.png)
-
snippets:
- language: json
base-uri: http://www.example.com/features/
Expand All @@ -59,6 +65,8 @@
content: |-
Cubic Spline example.
![Example](assets/spline.png)
-
snippets:
- language: json
base-uri: http://www.example.com/features/
Expand Down
2 changes: 1 addition & 1 deletion _sources/features/topo-arc/examples/arc_by_center.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"P2",
"PC"
],
"orientation": "cw"
"orientation": "ccw"
},
"properties": {
"arcLength": 25.615,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"geometry": null,
"topology": {
"type": "ArcByChord",
"x-description": "References is an ordered list of features with for an Arc Chord, radius and length determine geometry",
"x-description": "orientation does not match keyword.",
"references": [
"P1",
"P2"
],
"orientation": "cw",
"orientation": "+",
"radius": 2.5
},
"properties": {
Expand Down
6 changes: 3 additions & 3 deletions _sources/features/topo-feature/examples/points.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<http://www.example.com/features/P3> a geojson:Feature ;
geojson:geometry [ a geojson:Point ;
geojson:coordinates ( 16 16 ) ] .
geojson:coordinates ( 13 17 ) ] .


<http://www.example.com/features/PC> a geojson:Feature ;
Expand All @@ -22,11 +22,11 @@

<http://www.example.com/features/Px1> a geojson:Feature ;
geojson:geometry [ a geojson:Point ;
geojson:coordinates ( 12 12 ) ] .
geojson:coordinates ( 14 12.5 ) ] .

<http://www.example.com/features/Px2> a geojson:Feature ;
geojson:geometry [ a geojson:Point ;
geojson:coordinates ( 13 15 ) ] .
geojson:coordinates ( 12.5 15 ) ] .

<http://www.example.com/features/PVS> a geojson:Feature ;
geojson:geometry [ a geojson:Point ;
Expand Down

0 comments on commit 1e47e66

Please sign in to comment.