initial commit

This commit is contained in:
Charles P. 2024-09-24 17:18:47 +02:00
commit 94183f771f
Signed by untrusted user who does not match committer: aeris
GPG key ID: 1708D5CC4095E76B
13 changed files with 73 additions and 0 deletions

3
14-ext.geojson Normal file

File diff suppressed because one or more lines are too long

1
14.geojson Normal file

File diff suppressed because one or more lines are too long

3
27-ext.geojson Normal file

File diff suppressed because one or more lines are too long

1
27.geojson Normal file

File diff suppressed because one or more lines are too long

3
50-ext.geojson Normal file

File diff suppressed because one or more lines are too long

1
50.geojson Normal file

File diff suppressed because one or more lines are too long

3
61-ext.geojson Normal file

File diff suppressed because one or more lines are too long

1
61.geojson Normal file

File diff suppressed because one or more lines are too long

3
76-ext.geojson Normal file

File diff suppressed because one or more lines are too long

1
76.geojson Normal file

File diff suppressed because one or more lines are too long

49
Jenkinsfile vendored Normal file
View 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

File diff suppressed because one or more lines are too long

1
normandie.geojson Normal file

File diff suppressed because one or more lines are too long