Socket
Socket
Sign inDemoInstall

edigeo-reproject

Package Overview
Dependencies
95
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    edigeo-reproject

Reprojection à la volée des feuilles EDIGÉO


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
13.9 MB
Created
Weekly downloads
 

Readme

Source

edigeo-reproject

npm version CircleCI codecov XO code style

Reprojection à la volée des feuilles EDIGÉO

Pré-requis

  • Node.js >= 8
  • bzip2

Utilisation côté serveur

Installation

npm install edigeo-reproject

Exemple d'utilisation

const fs = require('fs')
const {promisify} = require('util')

const {reprojectArchive} = require('edigeo-reproject')

const readFile = promisify(fs.readFile)
const writeFile = promisify(fs.writeFile)

// Actuellement l'opérateur await ne fonctionne que dans une fonction asynchrone
async function doJob() {
  const originalArchive = await readFile('/path/to/edigeo-54XXXYYYZZ0000.tar.bz2')
  const reprojectedArchive = await reprojectArchive(originalArchive, '54', 'L93toCC') // L93toCC ou CCtoL93
  await writeFile('/path/to/edigeocc-54XXXYYYZZ0000.tar.bz2', reprojectedArchive)
}

doJob().catch(console.error)

Utilisation en ligne de commande

Installation

npm install -g edigeo-reproject

Exemple d'utilisation

curl /path/to/edigeo-54084000AB01.tar.bz2 | edigeo-reproject -d 54 -m L93toCC > edigeocc-54084000AB01.tar.bz2
# ou directement à partir d'une ressource distante
curl https://cadastre.data.gouv.fr/data/dgfip-pci-vecteur/2017-10-12/edigeo/feuilles/54/54084/edigeo-54084000AB01.tar.bz2 | edigeo-reproject -d 54 -m L93toCC > edigeocc-54084000AB01.tar.bz2

Licence

MIT

FAQs

Last updated on 15 Jul 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc