Skip to content

Commit

Permalink
Fix mainstem association in jinja template (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
webb-ben authored Jan 30, 2025
1 parent d112528 commit 372a761
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pygeoapi/templates/co.j2
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"hyf:referencedPosition": [
{
"hyf:HY_IndirectPosition": {
"hyf:linearElement": "{{ data.mainstem_uri }}"
"hyf:linearElement": {"@id": "{{ data.mainstem_uri }}"}
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion pygeoapi/templates/mt.j2
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"hyf:referencedPosition": [
{
"hyf:HY_IndirectPosition": {
"hyf:linearElement": "{{ data.mainstem_uri }}"
"hyf:linearElement": {"@id": "{{ data.mainstem_uri }}"}
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion pygeoapi/templates/ne.j2
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"hyf:referencedPosition": [
{
"hyf:HY_IndirectPosition": {
"hyf:linearElement": "{{ data.mainstem_uri }}"
"hyf:linearElement": {"@id": "{{ data.mainstem_uri }}"}
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion pygeoapi/templates/nv.j2
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"hyf:referencedPosition": [
{
"hyf:HY_IndirectPosition": {
"hyf:linearElement": "{{ data.mainstem_uri }}"
"hyf:linearElement": {"@id": "{{ data.mainstem_uri }}"}
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion pygeoapi/templates/wy.j2
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"hyf:referencedPosition": [
{
"hyf:HY_IndirectPosition": {
"hyf:linearElement": "{{ data.mainstem_uri }}"
"hyf:linearElement": {"@id": "{{ data.mainstem_uri }}"}
}
}
],
Expand Down

0 comments on commit 372a761

Please sign in to comment.