Coder Social home page Coder Social logo

Comments (2)

martinfleis avatar martinfleis commented on June 19, 2024

Actually, looking at the dask API, it should probably be a feature of dask_geopandas.read_file (xref #11) in a similar sense dask.dataframe has read_csv.

from dask-geopandas.

jorisvandenbossche avatar jorisvandenbossche commented on June 19, 2024

I suppose we could actually even start with a dask_geopandas.read_file that only supports this use case, as it seems simpler than chunking one file (#11).
In dask the logic behind read_csv (creating the parts, before reading the actual csv) is in read_bytes: https://github.com/dask/dask/blob/714ff4b92df032f50acad205ddbc3b7103eb399f/dask/bytes/core.py#L12. It seems this uses fsspec's get_fs_token_paths to convert a path into a list of paths (https://github.com/intake/filesystem_spec/blob/8ea35ab5179deb57108096b628f9cf09f834d3a2/fsspec/core.py#L534). This could handle converting glob-like strings into a list of paths for us, but not sure if it would pass through a list of such paths with fiona-style ! layer selection.

from dask-geopandas.

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.