ArcGIS URL查询使用日期参数停止工作过夜

发布于 2025-01-28 16:09:31 字数 902 浏览 2 评论 0 原文

直到几天前,此查询才毫无问题:

https://dhsgis.wi.gov/server/rest/rest/services/dhs_covid19/covid19_wi_v2/mapserv4/mapserver/11/query? -01'& outfields =*& returnGeometry = false& out = 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

麻烦似乎在此位:其中= rptdt> ='2022-05-01'

ArcGI是否更改了日期值的格式?有人知道我如何更新我的URL以正常工作吗?

Until a few days ago, this query ran without problems:

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

Now it returns:

error   
    code            400
    extendedCode    -2147220985
    message         "Unable to complete operation."
    details         []

The URL without RptDt specification still works just fine:

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.

The trouble appears to be in this bit: where=RptDt>='2022-05-01'.

Did ArcGIS change the formatting for date values? Does anyone know how I can update my URL to work properly?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鹊巢 2025-02-04 16:09:31

If you change the date query to use a standardized date format it seems to work fine, ie using RptDt>=date'2022-05-01' instead of RptDt>='2022-05-01'.

Updated example URL: https://dhsgis.wi.gov/server/rest/services/DHS_COVID19/COVID19_WI_V2/MapServer/11/query?where=RptDt%3E=date%272022-05-01%27&outFields=*&returnGeometry=false&outSR=4326&f=json

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文