GithubHelp home page GithubHelp logo

nazarimilad / war-over-time Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 416 KB

Script I used to produce videos showing the territorial changes during the Syrian civil war. Iraqi data can also be used with this

Perl 6 62.79% Perl 37.21%
territorial changes transition geojson perl video map regex educational syria syrian civil war history

war-over-time's Introduction

War over time

Demo

Demo

Prerequisites

  • Perl
  • LWP Perl module
  • PhantomJS
  • Imagemagick
  • ffmpeg

Installation and usage

  1. Clone the repository : git clone https://github.com/nazarimilad/war-over-time
  2. move to the repository : cd war-over-time
  3. run the script : perl fetch_and_render.pl
  4. convert the gif to a MP4 video:
  • convert the gif to a serie of PNG files : convert gifs/result.gif gifs/gif%05d.png
  • convert the serie of PNG files to a MP4 video: ffmpeg -r 7 -i gifs/gif%05d.png -y -an video.mp4

Positions

  • Syria: lat = 34.8000; lng = 40.0000; zoom = 8 ;
  • Raqqa: lat = 36.1000; lng = 39.2000; zoom = 10;
  • Mosul: lat = 36.3500; lng = 43.2050; zoom = 13;

Contributing

  1. Fork it
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes : git commit -am 'Add some feature'
  4. Push to the branch : git push origin my-new-feature
  5. Submit a pull request

Note

I made an extra script named datastructure.pl in the repository, which produces an complex datastructure of multi polygon coordinate data of the different groups. It can be used to make geographical and statistical calculations.

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.