Меню

Blender gis get srtm ошибка

This isn’t the previous error regarding dropping an S from the request URL as I checked the python to make sure that was correct and it was. Below is the error I am getting:

addonsBlenderGIS-masteroperatorsio_get_srtm.py», line 112, in execute

log.error(‘Http request fails url:{}, code:{}, error:{}’.format(url, err.cod
e, err.reason))
AttributeError: ‘URLError’ object has no attribute ‘code’

location: :-1

location: :-1
Traceback (most recent call last):
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 1317, in do_open
encode_chunked=req.has_header(‘Transfer-encoding’))
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibhttpclient.py», line 1244, in request
self._send_request(method, url, body, headers, encode_chunked)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibhttpclient.py», line 1290, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibhttpclient.py», line 1239, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibhttpclient.py», line 1026, in _send_output
self.send(msg)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibhttpclient.py», line 966, in send
self.connect()
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibhttpclient.py», line 938, in connect
(self.host,self.port), self.timeout, self.source_address)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibsocket.py», line 727, in create_connection
raise err
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibsocket.py», line 716, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] A connection attempt failed because the connected
party did not properly respond after a period of time, or established connectio
n failed because connected host has failed to respond

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «C:UsersstrandsAppDataRoamingBlender FoundationBlender2.81scripts
addonsBlenderGIS-masteroperatorsio_get_srtm.py», line 108, in execute
with urlopen(rq) as response, open(filePath, ‘wb’) as outFile:
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 222, in urlopen
return opener.open(url, data, timeout)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 531, in open
response = meth(req, response)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 641, in http_response
‘http’, request, response, code, msg, hdrs)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 563, in error
result = self._call_chain(*args)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 503, in _call_chain
result = func(*args)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 755, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 525, in open
response = self._open(req, data)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 543, in _open
‘_open’, req)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 503, in _call_chain
result = func(*args)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 1345, in http_open
return self.do_open(http.client.HTTPConnection, req)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 1319, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [WinError 10060] A connection attempt fail
ed because the connected party did not properly respond after a period of time,
or established connection failed because connected host has failed to respond>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «C:UsersstrandsAppDataRoamingBlender FoundationBlender2.81scripts
addonsBlenderGIS-masteroperatorsio_get_srtm.py», line 43, in invoke
return self.execute(context)#context.window_manager.invoke_props_dialog(self
)
File «C:UsersstrandsAppDataRoamingBlender FoundationBlender2.81scripts
addonsBlenderGIS-masteroperatorsio_get_srtm.py», line 112, in execute
log.error(‘Http request fails url:{}, code:{}, error:{}’.format(url, err.cod
e, err.reason))
AttributeError: ‘URLError’ object has no attribute ‘code’

location: :-1

location: :-1
Traceback (most recent call last):
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 1317, in do_open
encode_chunked=req.has_header(‘Transfer-encoding’))
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibhttpclient.py», line 1244, in request
self._send_request(method, url, body, headers, encode_chunked)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibhttpclient.py», line 1290, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibhttpclient.py», line 1239, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibhttpclient.py», line 1026, in _send_output
self.send(msg)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibhttpclient.py», line 966, in send
self.connect()
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibhttpclient.py», line 938, in connect
(self.host,self.port), self.timeout, self.source_address)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibsocket.py», line 727, in create_connection
raise err
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibsocket.py», line 716, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] A connection attempt failed because the connected
party did not properly respond after a period of time, or established connectio
n failed because connected host has failed to respond

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «C:UsersstrandsAppDataRoamingBlender FoundationBlender2.81scripts
addonsBlenderGIS-masteroperatorsio_get_srtm.py», line 108, in execute
with urlopen(rq) as response, open(filePath, ‘wb’) as outFile:
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 222, in urlopen
return opener.open(url, data, timeout)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 531, in open
response = meth(req, response)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 641, in http_response
‘http’, request, response, code, msg, hdrs)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 563, in error
result = self._call_chain(*args)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 503, in _call_chain
result = func(*args)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 755, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 525, in open
response = self._open(req, data)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 543, in _open
‘_open’, req)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 503, in _call_chain
result = func(*args)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 1345, in http_open
return self.do_open(http.client.HTTPConnection, req)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 1319, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [WinError 10060] A connection attempt fail
ed because the connected party did not properly respond after a period of time,
or established connection failed because connected host has failed to respond>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «C:UsersstrandsAppDataRoamingBlender FoundationBlender2.81scripts
addonsBlenderGIS-masteroperatorsio_get_srtm.py», line 43, in invoke
return self.execute(context)#context.window_manager.invoke_props_dialog(self
)
File «C:UsersstrandsAppDataRoamingBlender FoundationBlender2.81scripts
addonsBlenderGIS-masteroperatorsio_get_srtm.py», line 112, in execute
log.error(‘Http request fails url:{}, code:{}, error:{}’.format(url, err.cod
e, err.reason))
AttributeError: ‘URLError’ object has no attribute ‘code’

location: :-1

location: :-1
Traceback (most recent call last):
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 1317, in do_open
encode_chunked=req.has_header(‘Transfer-encoding’))
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibhttpclient.py», line 1244, in request
self._send_request(method, url, body, headers, encode_chunked)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibhttpclient.py», line 1290, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibhttpclient.py», line 1239, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibhttpclient.py», line 1026, in _send_output
self.send(msg)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibhttpclient.py», line 966, in send
self.connect()
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibhttpclient.py», line 938, in connect
(self.host,self.port), self.timeout, self.source_address)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibsocket.py», line 727, in create_connection
raise err
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonlibsocket.py», line 716, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] A connection attempt failed because the connected
party did not properly respond after a period of time, or established connectio
n failed because connected host has failed to respond

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «C:UsersstrandsAppDataRoamingBlender FoundationBlender2.81scripts
addonsBlenderGIS-masteroperatorsio_get_srtm.py», line 108, in execute
with urlopen(rq) as response, open(filePath, ‘wb’) as outFile:
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 222, in urlopen
return opener.open(url, data, timeout)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 531, in open
response = meth(req, response)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 641, in http_response
‘http’, request, response, code, msg, hdrs)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 563, in error
result = self._call_chain(*args)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 503, in _call_chain
result = func(*args)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 755, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 525, in open
response = self._open(req, data)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 543, in _open
‘_open’, req)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 503, in _call_chain
result = func(*args)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 1345, in http_open
return self.do_open(http.client.HTTPConnection, req)
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81pythonliburllibrequest.py», line 1319, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [WinError 10060] A connection attempt fail
ed because the connected party did not properly respond after a period of time,
or established connection failed because connected host has failed to respond>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «C:UsersstrandsAppDataRoamingBlender FoundationBlender2.81scripts
addonsBlenderGIS-masteroperatorsio_get_srtm.py», line 43, in invoke
return self.execute(context)#context.window_manager.invoke_props_dialog(self
)
File «C:UsersstrandsAppDataRoamingBlender FoundationBlender2.81scripts
addonsBlenderGIS-masteroperatorsio_get_srtm.py», line 112, in execute
log.error(‘Http request fails url:{}, code:{}, error:{}’.format(url, err.cod
e, err.reason))
AttributeError: ‘URLError’ object has no attribute ‘code’

location: :-1

location: :-1
Traceback (most recent call last):
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81scriptsmodulesbpy_types.py», line 736, in draw_ls
def draw_ls(self, context):
KeyboardInterrupt

location: :-1

location: :-1
Traceback (most recent call last):
File «C:Program FilesBlender Foundationblender-2.81-8f55794c0e80-windows64
2.81scriptsstartupbl_uispace_statusbar.py», line 26, in draw
def draw(self, context):
KeyboardInterrupt

location: :-1

location: :-1

$begingroup$

Hey I’m running Blender 3.0 and every time I try to get the elevation Data from the Website it shows me this Error: «Cannot reach OpenTopography Webservice, check logs for more Infos».
So if i look into the logs it only says multiple times: «2022-02-20 22:21:36,228 — BlenderGIS-master.core.basemaps.mapservice — ERROR — Can’t download tile x136283 y87646. Error <urlopen error [Errno 11001] getaddrinfo failed>» and then «2022-02-20 22:26:25,578 — BlenderGIS-master.operators.io_get_dem — ERROR — Http request fails url:https://portal.opentopography.org/API/globaldem?demtype=SRTMGL1&west=7.144606444922421&east=7.167832519360552&south=51.089448021248955&north=51.100347790999045&outputFormat=GTiff, code:401, error:401». Does anyone know what I’m doing wrong? In another post someone said that i need an API Key. Can someone tell me how to add this key into the addon?

asked Feb 20, 2022 at 21:36

Freddy's user avatar

FreddyFreddy

111 silver badge2 bronze badges

$endgroup$

3

$begingroup$

  1. Get an API Key by creating an account with opentopography.org
  2. In Blender on the GIS tab click «Preferences» then «Add-ons»
  3. Find the «Elevation server:» Use drop-down menu and select «OpenTopography SRTM 30m» Click «Edit.»
  4. In the «url template» add «&API_Key=[your key number]» at the end of the existing url.
  5. Click Ok

You can do this for both the OpenTopography SRTM 30m & SRTM 90m

answered Mar 2, 2022 at 18:36

AerialMD's user avatar

$endgroup$

From the wiki : https://github.com/domlysz/BlenderGIS/wiki/SRTM

The Get SRTM operator rely on third party web services that provides API to request SRTM data. Taking this into consideration, this function can be broken at any time (server closed, in maintenance or overloaded). It also rely on your internet connexion and can fails due to any network issue (no internet, instable connexion, proxy of firewall missconfiguration).

So, the service is down for the moment, it return a text file mentioning an error instead of SRTM data. HTTP status code return 200 which mean the request has succeeded, so the error cannot be caught, the script try to open the response but it’s a text file not a raster datafile that’s why it fails.

The returned text file error :

Error: Error from GDAL: ERROR 4: /data/raster/SRTM_GL3/SRTM_GL3_srtm.vrt' does not exist in the file system,and is not recognised as a supported dataset name.GDALOpen failed - 4/data/raster/SRTM_GL3/SRTM_GL3_srtm.vrt’ does not exist in the file system,and is not recognised as a supported dataset name. (Error Code: 1)

The service will likely be restored in the coming days. Meanwhile, as mentioned in the wiki, there is another provider for SRTM data, users can select it in the addon preferences if the first one fails.

From the wiki : https://github.com/domlysz/BlenderGIS/wiki/SRTM

The Get SRTM operator rely on third party web services that provides API to request SRTM data. Taking this into consideration, this function can be broken at any time (server closed, in maintenance or overloaded). It also rely on your internet connexion and can fails due to any network issue (no internet, instable connexion, proxy of firewall missconfiguration).

So, the service is down for the moment, it return a text file mentioning an error instead of SRTM data. HTTP status code return 200 which mean the request has succeeded, so the error cannot be caught, the script try to open the response but it’s a text file not a raster datafile that’s why it fails.

The returned text file error :

Error: Error from GDAL: ERROR 4: /data/raster/SRTM_GL3/SRTM_GL3_srtm.vrt' does not exist in the file system,and is not recognised as a supported dataset name.GDALOpen failed - 4/data/raster/SRTM_GL3/SRTM_GL3_srtm.vrt’ does not exist in the file system,and is not recognised as a supported dataset name. (Error Code: 1)

The service will likely be restored in the coming days. Meanwhile, as mentioned in the wiki, there is another provider for SRTM data, users can select it in the addon preferences if the first one fails.

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Blade soul blade and soul ошибка 1073
  • Blade and soul ошибка файла клиента