-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
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
Rasters not showing....again #233
Comments
Open the network tab in the Chrome Developer console and see what the error messages are. The URL and port number are important ones. |
I get 30 error-URLs from the six maps; all starting with http://l-klima-app06.nve.no:3838/proxy/43199/api/tiles/...and then the continuation varies. The app shows six maps, with three different value intervals which I recognise in vmin and vmax at the end of each URL. Of the 30, six are without response, 24 return a 404. Selecting a new date and hence reloading new images return new errors, all 404, and all with the same port numbers (3838 and 43199). This gives six new file names, as expected. Zooming in and out also gives new error URLs, but the file names stay the same unless I change the dates. Again as expected. |
Did you find a solution to this? I am experiencing more or less the same problem. |
@ldemaz See ninsbl's answer here: opengeos/leafmap#1011. Still testing, but it appears doable, also in a docker container. Will report back when fully working. |
@nve-sak thanks very much! I will give it a try and see if it works in my situation. |
Hello,
Again I bring a discussion from LeafMap (opengeos/leafmap#1011) over here. I have a Shiny for Python app using LeafMap in which I cannot get rasters to show up. The app shows six maps side-by-side, each with a raster image as the only non-base layer. These images are to be replaced each time the user changes a date. They reside in local netCDF files, and are supplied to add_raster() as a leafmap.array_to_image(nparray).
I have read #158 and a number of similar issues; all seemingly solving a similar problem using jupyter-server-proxy and some LOCALTILESERVER_CLIENT_PREFIX='proxy/{port}' tricks. These don't seem to work for me, I am not in a jupyter notebook. I also lack the competence to understand why and how they are supposed to work, and hence ideas on how to proceed when they don't.
The app works as intended on Windows where I develop using VScode, but fail to show the maps when deployed to a ubuntu box. The Linux box have only Ubuntu server, so no window system, no VScode, and thus limited options for testing the app locally. Shiny-server dows not exist for Windows, so I have no way of testing the server-client mode there apart from the localhost debug server.
Date: Wed Dec 04 09:10:44 2024 CET
Python 3.13.0 (main, Oct 8 2024, 08:51:27) [GCC 9.4.0]
localtileserver : 0.10.5
click : 8.1.7
flask : 3.1.0
flask_caching : 2.3.0
flask_cors : 5.0.0
flask_restx : 1.3.0
numpy : 2.1.3
rasterio : 1.4.3
rio_cogeo : 5.4.0
rio_tiler : 7.2.2
server_thread : 0.2.0
werkzeug : 3.1.3
folium : 0.18.0
ipyleaflet : 0.19.2
matplotlib : 3.9.3
traitlets : 5.14.3
The packages listed in requirements.txt are almost identical on the two platforms, see the #1011 issue mentioned above for details.
The text was updated successfully, but these errors were encountered: