datagouv / cadastre-mvt Goto Github PK
View Code? Open in Web Editor NEWScripts de génération de tuiles vectorielles pour le plan cadastral
License: MIT License
Scripts de génération de tuiles vectorielles pour le plan cadastral
License: MIT License
Actuellement, on a patché l'attribution avec
sqlite3 cadastre.mbtiles "UPDATE metadata SET value = '<a href=\"https://cadastre.data.gouv.fr/\">Etalab - jan 2022</a>' WHERE name = 'attribution';"
L'idéal serait de passer en variable la date ou bien de parser la date derrière le chemin. Ce choix dépend si on utilise l'URL externe (qui comprend latest
et pas la date directement) ou interne et qui peut utiliser la date du chemin
Cela demande d'intervenir au niveau de https://github.com/etalab/cadastre-mvt/blob/master/build-cadastre.js#L19 et https://github.com/etalab/cadastre-mvt/blob/master/build-cadastre.js#L129
OS: Ubuntu 18.04 64 bits
Node version: v12.16.1 (via nvm)
J'augmente la mémoire allouée à Node avec
export NODE_OPTIONS=--max_old_space_size=16000
Puis j'installe les dépendances et lance le script pour la France
yarn --prod
yarn generate-mvt
J'ai ce message d'erreur:
(node:7612) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [Keyv]. Use emitter.setMaxListeners() to increase limit
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [Keyv]. Use emitter.setMaxListeners() to increase limit
at _addListener (events.js:386:17)
at Keyv.addListener (events.js:402:10)
at new Keyv (/home/thomasg/cadastre-mvt/node_modules/cacheable-request/node_modules/keyv/src/index.js:42:20)
at new CacheableRequest (/home/thomasg/cadastre-mvt/node_modules/cacheable-request/src/index.js:19:16)
at Object.exports.preNormalizeArguments (/home/thomasg/cadastre-mvt/node_modules/got/dist/source/normalize-arguments.js:133:36)
at Object.exports.mergeOptions (/home/thomasg/cadastre-mvt/node_modules/got/dist/source/normalize-arguments.js:188:33)
at Object.exports.normalizeArguments (/home/thomasg/cadastre-mvt/node_modules/got/dist/source/normalize-arguments.js:219:27)
at got (/home/thomasg/cadastre-mvt/node_modules/got/dist/source/create.js:44:58)
at getCadastreLayerFile (/home/thomasg/cadastre-mvt/build-cadastre.js:28:26)
at MultiStream.streamFactory [as _queue] (/home/thomasg/cadastre-mvt/build-cadastre.js:55:26)
Il ne semble pas à priori être bloquant, le traitement continuant mais cela fait clairement douté s'il y a un problème.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.