Questions tagged [geoviews]

GeoViews is a Python library that makes it easy to explore and visualize geographical, meteorological, and oceanographic datasets, such as those used in weather, climate, and remote sensing research.

  • GeoViews is built on the HoloViews library for building flexible visualizations of multidimensional data. GeoViews adds a family of geographic plot types based on the Cartopy library, plotted using either the Matplotlib or Bokeh packages. With GeoViews, you can now work easily and naturally with large, multidimensional geographic datasets, instantly visualizing any subset or combination of them, while always being able to access the raw data underlying any plot.
  • See the geoviews project page for installation instructions.
76 questions
4
votes
2 answers

How can a choropleth map be combined with a shaded raster in Python?

I want to plot characteristics of areas on a map, but with very uneven population density, the larger tiles misleadingly attract attention. Think of averages (of test scores, say) by ZIP codes. High-resolution maps are available to separate…
László
  • 3,914
  • 8
  • 34
  • 49
4
votes
2 answers

Extracting data from cartopy.feature

how can I extract contour lines from data imported through cartopy's feature interface? If the solution involves geoviews.feature or another wrapper, that is OK, of course. For instance, how would I extract the data plotted as cfeature.COASTLINE in…
doppler
  • 997
  • 5
  • 17
4
votes
1 answer

Trouble geo mapping with datashader, holoviews and bokeh

I'm trying to map google phone history locations on to a map using holoviews, datashader and bokeh. Mostly very similar to the examples given in the datashader website. But when I do the map overlay doesn't work as the lat/long gets mangled…
user2663139
  • 189
  • 1
  • 2
  • 8
3
votes
2 answers

Import geoviews in Anaconda

I am trying to install the geoviews module. I installed it successfully but when I am trying to import it in my code I have this message: No module named 'channels I don't know how to proceed.
Atori
  • 25
  • 3
3
votes
1 answer

Producing Buffer Radius Polygons - Possible Projection Issue

I created a GeoDataFrame with a Points geometry column: 1. Create df df = pd.DataFrame([[51.502687, -3.538329, 2242, 1, 47], [52.699185, -0.050122, 870, 2, 35], [51.574387, 0.397882, 651, 3, 47], …
mmTmmR
  • 573
  • 2
  • 8
  • 20
3
votes
2 answers

Install GeoViews on a Google Colaboratory Notebook

Is it possible to install geoviews on a Google Colaboratory notebook so that I can use it to plot data from an Xarray Dataset?
3
votes
1 answer

Holoviews Image with HoverTool tooltip from different datasource

I have a 100x100 km grid GeoDataFrame (Mollweide) that I am plotting as a gv.Image with classified values (8 Categories) through Holoviews/Bokeh: # convert GeoDataFrame to xarray object xa_dataset = gv.Dataset(grid.to_xarray(),…
Alex
  • 2,784
  • 2
  • 32
  • 46
3
votes
1 answer

Geoviews + Datashader is slow when projecting points

I'm plotting 550,000,000 latitudes and longitudes using datashader. But, for this to be useful, I need to overlay map tiles and polygons using geoviews. The problem is that geoviews.points() and associated projection results in a large slowdown that…
wab
  • 797
  • 6
  • 19
3
votes
1 answer

Geoviews -- Mercator or PlateCarree

In the geoviews guide for Bokeh, it states that Bokeh only supports Mercator projection, and yet most of the example projections use PlateCarree, and then the output looks like Mercator. Does anyone have an idea of what is going on with the…
Pallen
  • 131
  • 8
3
votes
1 answer

Bokeh Geoviews use Lat/Long or UTM?

I am trying to plot the Zillow dataset with Bokeh using Geoviews and Datashader but I am having the damnedest time getting it to work. I am able to plot the data on a Cartesian plane fine but when I attempt to overlay the data with a map I run into…
Matt Camp
  • 1,448
  • 3
  • 17
  • 38
2
votes
1 answer

How to resolve ImportError: cannot import name 'Box' from 'bokeh.models'?

I'm trying to change the coordinate reference system crs to a tile provider in bokeh and I was suggested to use geoviews but after install it I get this error import geoviews as gv Traceback (most recent call last): File "", line 1, in…
Peter
  • 21
  • 1
  • 3
2
votes
1 answer

GeoViews: Categorical legend for GeoDataFrames with matplotlib backend

Installed packages geoviews 1.9.1., matplotlib 3.4.2. What I'm trying to do For the Bokeh backend adding a categorical legend via GeoViews is done through proxy artists, as describe in the Katrina track example, and I managed to get this to work,…
grg
  • 99
  • 6
2
votes
1 answer

GeoViews: Applying matplotlib styling parameters to Polygons elements

Installed packages holoviews 1.14.4, geoviews 1.9.1., matplotlib 3.4.2. What I'm trying to do I am trying to apply simple per-feature styles using GeoViews and the matplolib backend. I cannot figure out how to apply different edgecolor= parameters…
grg
  • 99
  • 6
2
votes
1 answer

When using rasterize=True with datashader, how do I get transparency where count=0 to see the underlying tile?

Currently, when I do this: import pandas as pd import hvplot.pandas df = pd.util.testing.makeDataFrame() plot = df.hvplot.points('A', 'B', tiles=True, rasterize=True, geo=True, aggregator='count') I can't see the underlying…
Andrew
  • 507
  • 5
  • 16
2
votes
0 answers

manually set latitude, longitude range for geoviews

I am plotting data using the GeoViews QuadMesh element. I can't find a way to expand the geographic region of my plot beyond a tiny bit past the edges of my data. I would like to provide a little more context (coastlines, etc) by showing the area…
1
2 3 4 5 6