We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I get the following error if I run the following code:
import geopandas_osm.osm as osm import geopandas as gpd districts=gpd.read_file('data/turin_districts/turin_districts.shp') districts.crs={'init':'epsg:3003'} districts=districts.to_crs(epsg=4326) districts.crs sansa=districts[districts.DENOM=='San Salvario'].geometry osm.query_osm('node',sansa[1], recurse='down', tags='highway') --------------------------------------------------------------------------- HTTPError Traceback (most recent call last) <ipython-input-94-73ea9ce921fb> in <module> ----> 1 osm.query_osm('node',sansa[1], recurse='down', tags='highway') ~\.conda\envs\gisenv\lib\site-packages\geopandas_osm\osm.py in query_osm(typ, bbox, recurse, tags, raw, meta, **kwargs) 90 91 # TODO: Raise on non-200 (or 400-599) ---> 92 with urlopen(url) as response: 93 content = response.read() 94 ~\.conda\envs\gisenv\lib\site-packages\pandas\io\common.py in urlopen(*args, **kwargs) 139 import urllib.request 140 --> 141 return urllib.request.urlopen(*args, **kwargs) 142 143 ~\.conda\envs\gisenv\lib\urllib\request.py in urlopen(url, data, timeout, cafile, capath, cadefault, context) 220 else: 221 opener = _opener --> 222 return opener.open(url, data, timeout) 223 224 def install_opener(opener): ~\.conda\envs\gisenv\lib\urllib\request.py in open(self, fullurl, data, timeout) 529 for processor in self.process_response.get(protocol, []): 530 meth = getattr(processor, meth_name) --> 531 response = meth(req, response) 532 533 return response ~\.conda\envs\gisenv\lib\urllib\request.py in http_response(self, request, response) 639 if not (200 <= code < 300): 640 response = self.parent.error( --> 641 'http', request, response, code, msg, hdrs) 642 643 return response ~\.conda\envs\gisenv\lib\urllib\request.py in error(self, proto, *args) 567 if http_err: 568 args = (dict, 'default', 'http_error_default') + orig_args --> 569 return self._call_chain(*args) 570 571 # XXX probably also want an abstract factory that knows when it makes ~\.conda\envs\gisenv\lib\urllib\request.py in _call_chain(self, chain, kind, meth_name, *args) 501 for handler in handlers: 502 func = getattr(handler, meth_name) --> 503 result = func(*args) 504 if result is not None: 505 return result ~\.conda\envs\gisenv\lib\urllib\request.py in http_error_default(self, req, fp, code, msg, hdrs) 647 class HTTPDefaultErrorHandler(BaseHandler): 648 def http_error_default(self, req, fp, code, msg, hdrs): --> 649 raise HTTPError(req.full_url, code, msg, hdrs, fp) 650 651 class HTTPRedirectHandler(BaseHandler): HTTPError: HTTP Error 414: Request-URI Too Long
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I get the following error if I run the following code:
The text was updated successfully, but these errors were encountered: