Unable to access data array inside gv.WMTS tiles
See original GitHub issueWorking from a notebook…
import geoviews as gv
import holoviews as hv
hv.extension('bokeh')
lon = -121.8144
lat = 48.7767
dx = dy = 0.01
url = 'https://mt1.google.com/vt/lyrs=s&x={X}&y={Y}&z={Z}'
extents = (lon-dx, lat-dy, lon+dx, lat+dy)
tiles = gv.WMTS(url, extents=extents)
tiles
I’m trying to get access to the data array and coordinates inside the tiles object so that I can save it to geotif. Not sure if support for this is just built in so my plan was to pull out the data array and save it using rasterio, as suggested here https://github.com/pyviz/geoviews/issues/68.
Not seeing a method that lets me access the array. Maybe there is a hidden one that can be exposed?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
pyviz/pyviz - Gitter
Hello every1 , i want to resctrict the area in my openstreetmap. so what change i have to make in below line to...
Read more >datashader xarray.Image to holoviews Points - Stack Overflow
I tried to use the functionality already available in datashader, but I'm unable to figure out how I can convert the xarray.Image object...
Read more >Is there an example to host datashader rasters as a tile server
Yes; see https://github.com/holoviz/datashader/blob/master/examples/tiling.ipynb . I don't think this example is linked or tested anywhere, ...
Read more >Frequently Asked Questions | Mapbox Tiling Service
Both errors and warnings are arrays in the response data from the GET /jobs/<job_id> and GET /jobs endpoints. A tileset job will only...
Read more >How to use the geoviews.WMTS function in geoviews - Snyk
WMTS examples, based on popular ways it is used in public projects. ... .com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{Z}/{Y}/{X}.jpg' wmts = gv.
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 FreeTop 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
Top GitHub Comments
Looks like contextily can be used precisely the way we are using Quest. Since it’s relatively simple to do it this way (grab bounding box, request data separately), there probably won’t be much enthusiasm for doing the work to do it directly in Bokeh, so I’ll close this for now.
Yep.
This will probably make our life easier, thanks. For now
contextily
seems to do the job.