bcgov / designatedlands

Python script to combine conservation related spatial data from many sources to create a single 'Designated Lands' layer for British Columbia
Apache License 2.0
9 stars 4 forks source link

VLI data at hillcrestgeo.ca #43

Closed smnorris closed 6 years ago

smnorris commented 6 years ago

The hillcrestgeo.ca address used for layer vqo_preserve needs to be updated to use https. However, the source for this data should instead be modified to the file provided in the github release if possible.

smnorris commented 6 years ago

The existing address doesn't need to be changed, urllib3 requires certificate verification, probably via certifi https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings:

INFO:root:Downloading https://www.hillcrestgeo.ca/outgoing/conservationlands/VLI.gdb.zip
/usr/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. 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 "designatedlands.py", line 995, in <module>
    cli()
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "designatedlands.py", line 712, in load
    fp = download_non_bcgw(source['url'])
  File "designatedlands.py", line 169, in download_non_bcgw
    raise IOError
IOError
smnorris commented 6 years ago

Same error when downloading data from github:

INFO:root:Downloading https://github.com/smnorris/conservationlands/releases/download/delivery/VLI.gdb.zip
/usr/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
smnorris commented 6 years ago

closing as partial duplicate of #24