[GeoNode-users] Issue with some layers from remote services
Francesco Bartoli
xbartolone at gmail.com
Sun Jan 5 22:45:45 PST 2020
Yes, please file an issue on GitHub. Thanks Maxime
Francesco
Il 4 dic 2019, 19:41 +0100, Maxime Audet-Roberge <maximeaudetr at hotmail.com>, ha scritto:
> Good day geonode users,
>
> I am running geonode project 2.10.1 on a Ubuntu 18.04 VM. I have issues with some layers from remote services.
>
> Here is an example:
> WMS URL: https://maps.geogratis.gc.ca/wms/hydro_network_en
> Layer name: nhn:nhn:hydrography:waterbody_2
>
> When I try to access the page at http://localhost:8000/layers/nhn:nhn:network:flowdirection_1I have this error:
> Traceback:
> File "/home/geonode/.virtualenvs/neec_geoportal/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
> 41. response = get_response(request)
> File "/home/geonode/.virtualenvs/neec_geoportal/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _legacy_get_response
> 249. response = self._get_response(request)
> File "/home/geonode/.virtualenvs/neec_geoportal/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
> 187. response = self.process_exception_by_middleware(e, request)
> File "/home/geonode/.virtualenvs/neec_geoportal/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
> 185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
> File "/home/geonode/.virtualenvs/neec_geoportal/local/lib/python2.7/site-packages/geonode/layers/views.py" in layer_detail
> 466. ":") if ":" in layer.alternate else (None, layer.alternate)
> Exception Type: ValueError at /layers/nhn:nhn:network:flowdirection_1
> Exception Value: too many values to unpack
>
> The lines in views.py are:
> 491. if check_ogc_backend(geoserver.BACKEND_PACKAGE):
> 492. from geonode.geoserver.views import get_capabilities
> 493. workspace, layername = layer.alternate.split(
> 498. ":") if ":" in layer.alternate else (None, layer.alternate)
> I see that the layer alternate name from the remote service have 3x “:” in it and that the split is looking for only one.
>
> Should I enter this issue in the GitHub list?
>
> Thanks a lot,
>
> Maxime
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20200106/0481befe/attachment.html>
More information about the geonode-users
mailing list