This package has been deprecated

Author message:

This package is deprecated. Continue to use it if you want to use CommonJS syntax. Otherwise upgrade to @etalab/edigeo-reproject package

edigeo-reproject

0.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i edigeo-reproject

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

14.7 kB

Total Files

17

Last publish

Collaborators

  • jdesboeufs
  • thomasg77