initial commit
This commit is contained in:
commit
94183f771f
13 changed files with 73 additions and 0 deletions
3
14-ext.geojson
Normal file
3
14-ext.geojson
Normal file
File diff suppressed because one or more lines are too long
1
14.geojson
Normal file
1
14.geojson
Normal file
File diff suppressed because one or more lines are too long
3
27-ext.geojson
Normal file
3
27-ext.geojson
Normal file
File diff suppressed because one or more lines are too long
1
27.geojson
Normal file
1
27.geojson
Normal file
File diff suppressed because one or more lines are too long
3
50-ext.geojson
Normal file
3
50-ext.geojson
Normal file
File diff suppressed because one or more lines are too long
1
50.geojson
Normal file
1
50.geojson
Normal file
File diff suppressed because one or more lines are too long
3
61-ext.geojson
Normal file
3
61-ext.geojson
Normal file
File diff suppressed because one or more lines are too long
1
61.geojson
Normal file
1
61.geojson
Normal file
File diff suppressed because one or more lines are too long
3
76-ext.geojson
Normal file
3
76-ext.geojson
Normal file
File diff suppressed because one or more lines are too long
1
76.geojson
Normal file
1
76.geojson
Normal file
File diff suppressed because one or more lines are too long
49
Jenkinsfile
vendored
Normal file
49
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Télécharger l\'export OSM de la France') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
sh 'wget http://download.openstreetmap.fr/extracts/europe/france-latest.osm.pbf'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Filtrer les tags pour le routage') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
sh 'osmium tags-filter france-latest.osm.pbf w/highway wa/public_transport=platform wa/railway=platform w/park_ride=yes r/type=restriction r/type=route -o france.osm.bz2 -f pbf,add_metadata=false'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Créer des extraits régionaux/départementaux') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
// Trouve tous les fichiers GeoJSON dans le workspace
|
||||||
|
def geojsonFiles = findFiles(glob: '**/*.geojson')
|
||||||
|
def tasks = []
|
||||||
|
|
||||||
|
// Exécute osmium extract pour chaque fichier GeoJSON en parallèle
|
||||||
|
geojsonFiles.each { geojsonFile ->
|
||||||
|
tasks << {
|
||||||
|
def geojsonName = geojsonFile.name.replace('.geojson', '')
|
||||||
|
sh "osmium extract --strategy complete_ways --polygon=${geojsonFile.path} france.osm.bz2 -o ${geojsonName}.osm.bz2"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Exécute les tâches en parallèle
|
||||||
|
parallel tasks
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
always {
|
||||||
|
// Archive les artefacts .osm.bz2
|
||||||
|
archiveArtifacts artifacts: '**/*.osm.bz2', allowEmptyArchive: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
3
normandie-ext.geojson
Normal file
3
normandie-ext.geojson
Normal file
File diff suppressed because one or more lines are too long
1
normandie.geojson
Normal file
1
normandie.geojson
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue