jecor / bati-fusion Goto Github PK
View Code? Open in Web Editor NEWOpenStreetMap utility to compare buildings from french cadastre
License: GNU General Public License v3.0
OpenStreetMap utility to compare buildings from french cadastre
License: GNU General Public License v3.0
Le calque OSM peut ne contenir qu'une partie de la commune (car il n'est pas toujours possible de télécharger toute la commune d'un coup avec la XAPI). Dans ce cas, il est nécessaire d'exclure les bâtiments du cadastre qui sont en dehors de la boîte englobante du calque OSM.
Pour l'instant l'outil ignore complètement les bâtiments taggés building=supermarket, etc. ce qui provoque des absences de conflit là où il devrait y en avoir...
A l'occasion de l'atelier du groupe local grenoblois consacré aux outils d'intégration du cadastre j'ai refait des essais et j'ai constaté un comportement étrange : les versions linux et windows ne donnent pas les mêmes résultats pour les mêmes données en entrée. La version Linux me semble donner les bons résultats.
J'ai recompilé les sources avec :
J'avais modifié le Makefile pour produire un binaire statique (LDFLAGS = -static
)
J'ai testé différentes communes :
Commune | Statut |
---|---|
Bressieux | OK |
Cognet | KO |
Poisat | KO |
Sinard | KO |
Villard-Bonnot | KO |
Les fichiers sont disponibles pendant quelque temps : http://cadastre.openstreetmap.fr/data/038/
J'ai utilisé à chaque fois le fichier XXX-houses.osm du cadastre et j'ai obtenu le bâti dans OSM par la requête :
[out:json][timeout:25];
{{geocodeArea:Cognet}}->.searchArea;
(
// query part for: “building=*”
node["building"](area.searchArea);
way["building"](area.searchArea);
relation["building"](area.searchArea);
);
out body;
>;
out skel qt;
Je joins les fichiers pour Cognet (petite commune)
bati-fusion GL116-COGNET-houses.osm cognet-buildings-osm.osm out
tail log*
==> log-linux.txt <==
- current ID 224517586, recouvrement: 99.38%
- current ID 224517624, recouvrement: 6.31%
Enregistrement fichiers de sortie...
=======================================
Way OK: 4
Way sans fusion: 3
Way fusionnees: 37
Way en conflit: 60
Way exclus: 2
=======================================
==> log-win.txt <==
Chargement de cognet-buildings-osm.osm...
Fusion...
Enregistrement fichiers de sortie...
=======================================
Way OK: 0
Way sans fusion: 0
Way fusionnees: 0
Way en conflit: 0
Way exclus: 106
=======================================
Avec le fichier contenant toutes les données OSM de la commune le résultat windows est encore différent :
bati-fusion.exe GL116-COGNET-houses.osm cognet-all-osm.osm all
Chargement de GL116-COGNET-houses.osm...
Chargement de cognet-all-osm.osm...
Fusion...
Enregistrement fichiers de sortie...
=======================================
Way OK: 106
Way sans fusion: 0
Way fusionnees: 0
Way en conflit: 0
Way exclus: 0
=======================================
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.