Skip to content

Commit e5f22d6

Browse files
committed
Fix USGS location
1 parent 8b9d65b commit e5f22d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/usgs-location-oriented.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"ssn": "http://www.w3.org/ns/ssn/",
1919
"ssn-system": "http://www.w3.org/ns/ssn/systems/"
2020
},
21-
"@id": "{{ data['@id'] }}",
21+
"@id": "https://geoconnex.us/iow/usgs/sta/{{ data['name']] }}",
2222
"@type": [
2323
"hyf:HY_HydrometricFeature",
2424
"hyf:HY_HydroLocation",
@@ -169,7 +169,7 @@
169169

170170
{#`sites` is the same as the Thing id but the hyphen is replaced by a colon. if there is no hyphen, then you just pipe in the thing id #}
171171
{# We then need to remove the surrounding '' to make sure the query is properly formatted #}
172-
"contentUrl": "https://waterservices.usgs.gov/nwis/iv/?sites={{data['id'] | replace("-", ":" ) | replace("'", "")}}&parameterCd={{ stream["properties"]["ParameterCode"] }}&format=rdb",
172+
"contentUrl": "https://waterservices.usgs.gov/nwis/iv/?parameterCd={{ stream["properties"]["ParameterCode"] }}&sites={{data['id'] | replace("-", ":" ) | replace("'", "")}}&format=rdb",
173173
"encodingFormat": [
174174
"text/tab-separated-values"
175175
],

0 commit comments

Comments
 (0)