如何解决esri2geojson'无法连接到特定图层的URL',但适用于所有其他图层
我正在尝试使用esri2geojson
python软件包下载geojson数据。 https://github.com/openaddresses/pyesridump
它适用于除一层以外的所有端点。
我的环境:
python --version
Python 2.7.16
GIS REST端点:
主要端点:https://gis.ohiodnr.gov/arcgis_site2/rest/services/OIT_Services/odnr_landbase_v2/MapServer/
命令:
esri2geojson url test.geojson
以下内容非常适合图层端点0到4
https://gis.ohiodnr.gov/arcgis_site2/rest/services/OIT_Services/odnr_landbase_v2/MapServer/0
https://gis.ohiodnr.gov/arcgis_site2/rest/services/OIT_Services/odnr_landbase_v2/MapServer/1
https://gis.ohiodnr.gov/arcgis_site2/rest/services/OIT_Services/odnr_landbase_v2/MapServer/2
https://gis.ohiodnr.gov/arcgis_site2/rest/services/OIT_Services/odnr_landbase_v2/MapServer/3
但是当尝试为/ Mapserver / 4图层运行时
$ esri2geojson https://gis.ohiodnr.gov/arcgis_site2/rest/services/OIT_Services/odnr_landbase_v2/MapServer/4 test.geojson
我收到此错误
azimshaik91@cloudshell:~$ esri2geojson https://gis.ohiodnr.gov/arcgis_site2/rest/services/OIT_Services/odnr_landbase_v2/MapServer/4 test.geojson
2020-08-13 00:08:38,690 - cli.esridump - WARNING - Retrying https://gis.ohiodnr.gov/arcgis_site2/rest/services/OIT_Services/odnr_landbase_v2/MapServer/4 without SSL verification
/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py:988: InsecureRequestWarning: Unverified HTTPS request is being made to host 'gis.ohiodnr.gov'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,2020-08-13 00:08:38,949 - cli.esridump - WARNING - Retrying https://gis.ohiodnr.gov/arcgis_site2/rest/services/OIT_Services/odnr_landbase_v2/MapServer/4/query without SSL verification
/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py:988: InsecureRequestWarning: Unverified HTTPS request is being made to host 'gis.ohiodnr.gov'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,2020-08-13 00:09:01,274 - cli.esridump - INFO - Built 6262 requests using resultOffset method
2020-08-13 00:09:01,408 - cli.esridump - WARNING - Retrying https://gis.ohiodnr.gov/arcgis_site2/rest/services/OIT_Services/odnr_landbase_v2/MapServer/4/query without SSL verification
/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py:988: InsecureRequestWarning: Unverified HTTPS request is being made to host 'gis.ohiodnr.gov'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,Traceback (most recent call last):
File "/home/azimshaik91/.local/bin/esri2geojson",line 10,in <module>
sys.exit(main())
File "/home/azimshaik91/.local/lib/python2.7/site-packages/esridump/cli.py",line 114,in main
feature = next(feature_iter)
File "/home/azimshaik91/.local/lib/python2.7/site-packages/esridump/dumper.py",line 427,in __iter__
raise EsriDownloadError("Could not connect to URL",e)
esridump.errors.EsriDownloadError: ('Could not connect to URL',ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='gis.ohiodnr.gov',port=443): Read timed out. (read timeout=30)",),))
我想知道端点本身是否定义不正确,是否有任何指导/建议来解决此问题?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。