Coder Social home page Coder Social logo

best way to create networks about pandana HOT 5 CLOSED

udst avatar udst commented on July 19, 2024
best way to create networks

from pandana.

Comments (5)

bridwell avatar bridwell commented on July 19, 2024

Given the variety of data sources and formats I like the idea of generating the graph generally from pandas data frames (or numpy arrays as you are doing now) and then maybe having some utility functions to import different sources (e.g. shapefiles, ESRI geodatabase, sql geometry tables, ...) into data frames as needed.

from pandana.

fscottfoti avatar fscottfoti commented on July 19, 2024

Good answer - that would be my preference as well. https://github.com/geopandas/geopandas is perfect for importing shapefiles into dataframes. And I would prefer to allow even the simplest of formats like CSV / Excel, which pandas has covered.

from pandana.

fscottfoti avatar fscottfoti commented on July 19, 2024

Exactly the api you describe has now been implemented:

http://synthicity.github.io/pandana/network.html#pandana.network.Network.__init__

Will have to add importers from geopandas so that we can leverage the geopandas shapefile and OpenStreetMap importers but that part should be pretty easy.

from pandana.

bridwell avatar bridwell commented on July 19, 2024

Cool. I'll check it out.

For GIS and network input data, we are pretty much an ESRI shop. We use arcpy scripts to import data into pandas from a geodatabse (and export back). So, at least in the short term, we'll probably be testing with this. It is probably specific to our implementation, but we can provide code if that helps.

from pandana.

fscottfoti avatar fscottfoti commented on July 19, 2024

It's probably a common workflow so getting sample code at some is likely to be helpful - thanks.

from pandana.

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.