Giter VIP home page Giter VIP logo

Comments (4)

geodesy99 avatar geodesy99 commented on June 11, 2024

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]))

geoplottest_2017-10-24 14_02_00-

from geoplot.

ResidentMario avatar ResidentMario commented on June 11, 2024

@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.

geodesy99 avatar geodesy99 commented on June 11, 2024

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.

ResidentMario avatar ResidentMario commented on June 11, 2024

This is matplotlib/matplotlib#9024

from geoplot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.