直到几天前,此查询运行都没有出现问题:
https://dhsgis.wi.gov/server/rest/services/DHS_COVID19/COVID19_WI_V2/MapServer/11/query?where=RptDt>='2022-05-01'&outFields=*&returnGeometry=false&outSR =4326&f=json
现在它返回:
error
code 400
extendedCode -2147220985
message "Unable to complete operation."
details []
没有 RptDt
规范的 URL 仍然可以正常工作:
https://dhsgis.wi.gov/server/rest/services/DHS_COVID19/COVID19_WI_V2/MapServer/11/query?where=1%3D1&outFields=*&returnGeometry=false&outSR=4326&f=json
Here is a link to the open data portal resource.
问题似乎出在这一点:where=RptDt>='2022-05-01'
。
ArcGIS 是否更改了日期值的格式?有谁知道如何更新我的网址才能正常工作?
最佳答案
如果您将日期查询更改为使用标准化日期格式,它似乎工作正常,即使用 RptDt>=date'2022-05-01'
而不是 RptDt>=' 2022-05-01'
。
关于使用日期参数的 ArcGIS url 查询一夜之间停止工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72235909/