olousouzian/atlasbundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Symfony 2.X bundle for easy conversion between GPS and Lambert coordinates

Installs: 25

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

1.0.1 2016-03-14 16:36 UTC

This package is not auto-updated.

Last update: 2024-07-03 23:42:45 UTC


README

Atlas

Content

Provide a Symfony 2.X bundle for easy conversion between GPS (WGS84) to Lambert coordinates. For more details please read this following links :

How to install ?

Install it with Composer

composer require olousouzian/atlasbundle

Finally, register the bundle into app/AppKernel :

new Olousouzian\AtlasBundle\OlousouzianAtlasBundle(),

How to use it ?

Helper :

$ app/console atlas:convert --help

Usage:
  atlas:convert [options]

Options:
      --format=FORMAT        Output format like: lambertI, lambertII, lambertIIExtended, lambertIII, lambertIV, lambert93, all [default: "all"]
      --output[=OUTPUT]      json [default: 1]
      --latitude=LATITUDE    
      --longitude=LONGITUDE  
  -h, --help                 Display this help message
  -q, --quiet                Do not output any message
  -V, --version              Display this application version
      --ansi                 Force ANSI output
      --no-ansi              Disable ANSI output
  -n, --no-interaction       Do not ask any interactive question
  -s, --shell                Launch the shell.
      --process-isolation    Launch commands from shell as a separate process.
  -e, --env=ENV              The Environment name. [default: "dev"]
      --no-debug             Switches off debug mode.
  -v|vv|vvv, --verbose       Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
 Convert WGS84 coordinates to Lambert coordinates
  • Example Get all Lambert coordinates for Lyon city :
$ app/console atlas:convert  --latitude=45.7484600 --longitude=4.8467100
  • Example Get Lambert93 coordinates for Lyon city printed in JSON :
$ app/console atlas:convert  --latitude=45.7484600 --longitude=4.8467100 --format=lambert93 --output=json

{"Lambert93":{"x":843562.53347857,"y":6518219.0605733}}

License

This solution is under MIT license.