Select to view content in your preferred language

Why only one feature returned in REST query (expected 80)

295
1
Jump to solution
07-31-2024 08:48 AM
Labels (1)
TimWhiteaker
Frequent Contributor

I'm querying the NWM streamflow forecast layer from the Living Atlas. It has 80 time steps, so each feature (e.g., station_id=1620851) should be present 80 times. However, only one feature is returned from the query below. How do I get all 80 features?

https://livefeeds2.arcgis.com/arcgis/rest/services/NFIE/NationalWaterModel_Medium/MapServer/0/query?...

 

 

0 Kudos
1 Solution

Accepted Solutions
TimWhiteaker
Frequent Contributor

It works if I include time=: and timeRelation=esriTimeRelationOverlaps. The colon is a delimiter. I could enter 0:1111111111111111111111111 for time zero and some time waaaaay in the future, to make sure I get all values in the dataset, but I found the delimiter by itself was enough to make the query work.  Note that in an update to the server in the coming months, the colon delimiter should be replaced with a comma delimiter.

https://livefeeds2.arcgis.com/arcgis/rest/services/NFIE/NationalWaterModel_Medium/MapServer/0/query?...

 

Gonzalo Espinoza at Esri deserves credit for providing me with this solution.

View solution in original post

0 Kudos
1 Reply
TimWhiteaker
Frequent Contributor

It works if I include time=: and timeRelation=esriTimeRelationOverlaps. The colon is a delimiter. I could enter 0:1111111111111111111111111 for time zero and some time waaaaay in the future, to make sure I get all values in the dataset, but I found the delimiter by itself was enough to make the query work.  Note that in an update to the server in the coming months, the colon delimiter should be replaced with a comma delimiter.

https://livefeeds2.arcgis.com/arcgis/rest/services/NFIE/NationalWaterModel_Medium/MapServer/0/query?...

 

Gonzalo Espinoza at Esri deserves credit for providing me with this solution.

0 Kudos