Git Product home page Git Product logo

lv95-converter's Introduction

LV95-converter

lv95-converter is a command line tool used to convert Swiss LV95 coordinates to WGS84 and vice-versa. The formulas used are the ones provided by Swisstopo as described in their document Formulas and constants for the calculation of the Swiss conformal cylindrical projection and for the transformation between coordinate systems. To parse the command-line arguments CLI11 by CLIUtils was used.

Installation

To install lv95-converter you can either build it from source or download a package from the latest release.

Building from source

Install dependency:

  1. Download the latest tarball and extract it.
  2. Execute meson setup build from inside the source directory to setup the project.
  3. Execute meson compile -C build from inside the source directory to build the executable.
  4. Execute meson install -C build from inside the source directory to install the executable and the manpage.

Usage

To convert LV95 to WGS84 pass the lv95 subcommand to the program and use the -e and the -n flag respectively to input LV95 coordinates.

To convert WGS84 to LV95 pass the wgs84 subcommand to the program and use the -n and the -e flag respectively to input WGS84 coordinates.

Help pages

$ lv95-converter --help

Convert LV95 coordinates to WGS84 and vice-versa
Usage: lv95-converter [OPTIONS] SUBCOMMAND

Options:
  -h,--help                   Print this help message and exit

Subcommands:
  lv95                        convert LV95 to WGS84
  wgs84                       convert WGS84 to LV95
$ lv95-converter lv95 --help

convert LV95 to WGS84
Usage: lv95-converter lv95 [OPTIONS]

Options:
  -h,--help                   Print this help message and exit
  -e,--east FLOAT REQUIRED    Easting coordinate (LV95)
  -n,--north FLOAT REQUIRED   Northing coordinate (LV95)
$ lv95-converter wgs84 --help

convert WGS84 to LV95
Usage: lv95-converter wgs84 [OPTIONS]

Options:
  -h,--help                   Print this help message and exit
  -e,--east FLOAT REQUIRED    Easting coordinate in WGS84
  -n,--north FLOAT REQUIRED   Northing coordinate in WGS84

lv95-converter's People

Contributors

tifrueh avatar

Watchers

 avatar

lv95-converter's Issues

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.