Comments (4)
Another warning in the tutorial ... My skill set is not sufficient to debug this. It seems it should have been generated at the previous point in the tutorial where there was a sort of bulk loading of the data for the remaining examples:
...
collisions = gpd.read_file(geoplot_data.nyc_collision_factors())
boroughs = gpd.read_file(geoplot_data.nyc_boroughs())
la_flights = gpd.read_file(geoplot_data.la_flights())
la_flights = la_flights.assign(
start=la_flights.geometry.map(lambda mp: mp[0]),
end=la_flights.geometry.map(lambda mp: mp[1]))
from geoplot.
@geodesy99 That one's expected actually. cartopy
has a built-in dataset of low-resolution world shapes of things that it will download for the first time (with this warning) the first time you try to use it. If you rerun the cell, the warning will go away.
from geoplot.
Ahhh .... I went out to cartopy and tracked down the warning message to https://github.com/SciTools/cartopy/blob/master/lib/cartopy/io/__init__.py , and then went to NACIS's site for Natural Earth, and the URL seemed to be okay ( although if copied from their button itself it seemed odd).
To my naive eyes it seemed like the https://github.com/SciTools/cartopy/blob/master/lib/cartopy/io/__init__.py
class DownloadWarning(Warning):
"""Issued when a file is being downloaded by a :class:`Downloader`."""
pass
did nothing at all ( the 'pass'). And the
def _urlopen(self, url):
"""
Return a file handle to the given HTTP resource URL.
Caller should close the file handle when finished with it.
"""
warnings.warn('Downloading: {}'.format(url), DownloadWarning)
return urlopen(url)
would always produce the warning.
I'm sure more will be revealed as I go along. :-) Also, it probably isn't really practical to debug anything inside of a Jupyter Notebook instead of a read IDE.
Thanks,
Michael
from geoplot.
This is matplotlib/matplotlib#9024
from geoplot.
Related Issues (20)
- Pin geopandas version? HOT 2
- cProfiling geoplot vs Cartopy vs GeoPandas: puzzling results HOT 2
- Typo in UserWarnings
- geoplot installed but geoplot.crs is not found HOT 4
- Legends in Geoplot 0.4.4 HOT 1
- Unable to install geoplot with pipenv under Ubuntu 20.04LTS HOT 1
- Grey boxes when clipping data with kdeplot HOT 8
- geoplot.kdeplot --> overlapping isolines HOT 8
- Fix KDEPlot hue tests HOT 6
- Voronoi plot fails with Value Error: Points cannot contain Nan HOT 4
- Does geoplot only work with EPSG:4326 unless the projection argument is set?
- Tests fail with geopandas 0.11
- Feature request? Apply pointplot "hue" to edgecolor only
- ModuleNotFoundError: No module named 'matplotlib.axes._subplots' HOT 1
- AttributeError: 'MultiPolygon' object has no attribute 'exterior' / TypeError: 'MultiPolygon' object is not iterable HOT 2
- kdeplot not working when fill=True HOT 3
- New Feature request - question: Bivariate choropleth?
- Exporting a KDEPlot as KML
- Documentation Update: shade is deprecated HOT 1
- Cannot import GeoPlot due to Iterable from collections
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geoplot.