Giter Club home page Giter Club logo

glot's Introduction

usage

./glot.py [-f <filter>] -o <output>[:output-options] input1 ... > output

output

  • svg-map[:<what>] renders the input data to SVG and adds a OSM map as a background. you can use this to generate maps like this (this was me crossing Korea by bicycle, BTW).
  • svg-weighted[:<what>] renders the input data to SVG without adding a map background. colors segments and points based on how many times they appear in the input data. you can use this to generate maps like this.
  • plot:<xaxis>-<yaxis>[-avg=n] plots the elevation and/or speed against distance or time in PNG format. <xaxis> is either distance or time, <yaxis> is either speed or elevation or both, separated by comma. optionally, appending -avg=n, where n is a number, will use a moving average with a window of n on each side for the data on the y axis.
  • kml[:<what>] generates a KML, to be opened in Google Earth.
  • stats prints some stats about the input file.

output options: "svg-map", "svg-weighted" and "kml" outputs all support rendering the path, the points or both. default is path, for others use the following syntax: "svg-map:points" or "svg-map:path,points".

input

input files can be either GPX files or files generated by the Columbus V-900 GPS data logger. file type is guessed from the extension (*.gpx or *.CSV).

filters

  • skip=n will only consider every n points in the input. useful if you have a huge input but don't want a huge SVG/KML to be generated.
  • name-match-radius=m will consider points which have the same name and are within a radius of m meters from each other to be the same point. if you want for example to generate a map like this, you might not want stations that have the same name and are within say 500m from each other to be threated as separate stations. in that case, you can pass --name-match-radius=500.

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.