adding raster layer failing silently
See original GitHub issueHi,
Im having trouble getting the test raster to show up on the map while using geonotebook in docker. I have no error messages to work off of so would appreciate any help in debugging and tracking down the error source. I’ve run tox -e py27 with what seems to be no issue (see attached txt file).
test_results.txt
It seems like I’m able to successfully read in the geotiff
rd = RasterData('/notebooks/sandbox/watson/L57.Globe.month09.2010.hh09vv04.h6v1.doy247to273.NBAR.v3.0.tiff')
and rd.uri seems to function correctly, I can also grab the resulting numpy array and plot it inline with no issue
r = rd.get_data()
plt.imshow(r[:,:,3])
but when I M.add_layer(rd, opacity=1.0, gamma=2.5) nothing appears on the map.
>>> M.layers[0].vis_url
'http://127.0.0.1:8888/ktile/410d71c3-f822-4804-bb00-a6f342ff7b12/L57.Globe.month09.2010.hh09vv04.h6v1.doy247to273.NBAR.v3.0_14105793776872957637'
and if I go that url:
{"__str__": "<TileStache.Core.Layer instance at 0x7ff1b4f9cea8>", "provider": {"opacity": 1.0, "colormap": [], "layer_srs": "+proj=longlat +datum=WGS84 +no_defs ", "is_static": false, "name": "L57.Globe.month09.2010.hh09vv04.h6v1.doy247to273.NBAR.v3.0_14105793776872957637", "filepath": "/notebooks/sandbox/watson/L57.Globe.month09.2010.hh09vv04.h6v1.doy247to273.NBAR.v3.0.tiff", "raster_x_size": 7243, "transform": [-123.06229313641593, 0.0007517610843588367, 0.0, 48.571429239198785, 0.0, -0.0007517610843588367], "vrt_path": "/tmp/geonbLODDc6/L57.Globe.month09.2010.hh09vv04.h6v1.doy247to273.NBAR.v3.0_14105793776872957637.vrt", "raster_y_size": 1900, "map_srs": "EPSG:4326", "nodata": -9999.0, "gamma": 2.5}}
Please let me know what additional info would be helpful in debugging this. Thanks!
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Add raster to mosaic data set failing - Esri Community
Hi, I'm attempting to create an animation from krigged raster layers (rainfall in time series) by creating a mosaic data set and attributing ......
Read more >sf st_make_valid silently failing after st_combine
I'm trying to create an object of class 'sf' that is single multipolygon out of a raster. I'm following the procedure in this...
Read more >Exporting raster as raw data to GeoPackage fails silently #30644
I tested with a 1 Byte, 3 bands dataset, I did not test other data. Exporting as "Rendered image" works fine.
Read more >Adding raster data to a map—ArcMap | Documentation
Each of these layers has their own layer properties and context menu option that are specific to how you interact with the mosaic...
Read more >BigQuery streaming from dataflow failing silently
The bq sink has an insert_retry_strategy parameter that allows you to set how to behave when there are errors inserting data to BQ:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

yep, user error on my part - thanks!
@swatson26 I just pulled the latest image and tried some of the examples and they worked for me. Can you follow the steps below?