问题描述
我正在尝试使用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 (将#修改为@)