Giter Club home page Giter Club logo

osmsna's Introduction

osmsna

extract a social network from a history openstreetmap file http://planet.openstreetmap.org/planet/full-history/

how use

1 - download a history planet file http://planet.openstreetmap.org/planet/full-history/

2 - extract the area with osm-history-splitter

3 - create the file osmsna.style with this informations

node,way  osm_user       text
node,way  osm_uid        int8
node,way  osm_version    int8
node,way  osm_timestamp  text

4 - import the data in postgis

osm2pgsql -P 5432 -U dbuser -W -d dbname -u -m -x -k -S /path/of/osmsna.style file_history.osh

5 - create the graph

 python netsosmers.py -s localhost -u dbuser -w dbpassword -d dbname -i -o graphfile -g gexf

note: the "-i" calculate the interactions between user (this need time)

6 - analyze the graph with a tool like gephi

some example outputs

gefx file of the openstreetmap network of Trento - Italy

https://github.com/napo/osmsna/raw/master/examples/trento.gexf

viewer of the network in Trento - Italy

http://napo.github.io/osmsna/

image of the network in Trento - Italy

trento osm network

tell me more

http://www.slideshare.net/napo/the-collaboration-network-in-osm-the-case-of-italy

Open Data License

the data come from OpenStreetMap for this reason the datasets produced from this software are licensed as ODbL - http://opendatacommons.org/licenses/odbl/

osmsna's People

Contributors

napo avatar

Stargazers

Saurav Bhattarai avatar Guillaume Rischard avatar Stefano Cudini avatar  avatar Martin Raifer avatar

Watchers

Stefano Cudini avatar  avatar Cristian Consonni avatar James Cloos avatar  avatar

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.