├── .gitignore ├── data_in ├── grid │ ├── grille_FRANCE.cpg │ ├── grille_FRANCE.dbf │ ├── grille_FRANCE.shp │ ├── grille_FRANCE.shx │ ├── grille_FRANCE.prj │ └── grille_FRANCE.qpj ├── dsm │ └── README.md ├── osm2igeo │ └── README.md ├── oceans_seas │ └── README.md ├── X_GRILLE.vrt └── X_WATER.vrt ├── data_temp └── README.md ├── data_out └── README.md ├── exemples_visuels ├── osm2igeotopo25_1.jpg ├── osm2igeotopo25_2.png └── osm2igeotopo25_3.png ├── 00_preliminary.sh ├── attachment ├── template_osm2igeotopo.qml └── X_Licence.txt ├── scripts └── export_atlas.py ├── 01_osm2igeotopo25.sh └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /data_in/grid/grille_FRANCE.cpg: -------------------------------------------------------------------------------- 1 | UTF-8 -------------------------------------------------------------------------------- /data_in/dsm/README.md: -------------------------------------------------------------------------------- 1 | Répertoire dans lequel les modèles numériques 3D doivent être placés. 2 | -------------------------------------------------------------------------------- /data_in/grid/grille_FRANCE.dbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igeofr/osm2igeotopo/HEAD/data_in/grid/grille_FRANCE.dbf -------------------------------------------------------------------------------- /data_in/grid/grille_FRANCE.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igeofr/osm2igeotopo/HEAD/data_in/grid/grille_FRANCE.shp -------------------------------------------------------------------------------- /data_in/grid/grille_FRANCE.shx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igeofr/osm2igeotopo/HEAD/data_in/grid/grille_FRANCE.shx -------------------------------------------------------------------------------- /data_temp/README.md: -------------------------------------------------------------------------------- 1 | Dossier dans lequel les données générées sont temporairement stockées le temps du traitement. 2 | -------------------------------------------------------------------------------- /data_out/README.md: -------------------------------------------------------------------------------- 1 | Répertoire dans lequel les données générées sont déplacées une fois que le traitement est terminé. 2 | -------------------------------------------------------------------------------- /exemples_visuels/osm2igeotopo25_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igeofr/osm2igeotopo/HEAD/exemples_visuels/osm2igeotopo25_1.jpg -------------------------------------------------------------------------------- /exemples_visuels/osm2igeotopo25_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igeofr/osm2igeotopo/HEAD/exemples_visuels/osm2igeotopo25_2.png -------------------------------------------------------------------------------- /exemples_visuels/osm2igeotopo25_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igeofr/osm2igeotopo/HEAD/exemples_visuels/osm2igeotopo25_3.png -------------------------------------------------------------------------------- /data_in/osm2igeo/README.md: -------------------------------------------------------------------------------- 1 | Répertoire dans lequel les données OSM2IGEO téléchargées depuis le site : https://data.data-wax.com doivent êtres placées. 2 | -------------------------------------------------------------------------------- /data_in/oceans_seas/README.md: -------------------------------------------------------------------------------- 1 | Répertoire dans lequel les zones maritimes téléchargées depuis le site : https://osmdata.openstreetmap.de doivent êtres placées. 2 | -------------------------------------------------------------------------------- /data_in/X_GRILLE.vrt: -------------------------------------------------------------------------------- 1 | 2 | 3 | ./data_in/osm2igeo/H_OSM_ADMINISTRATIF/COMMUNE.shp 4 | 5 | 6 | ./data_in/grid/grille_FRANCE.shp 7 | 8 | 9 | -------------------------------------------------------------------------------- /data_in/grid/grille_FRANCE.prj: -------------------------------------------------------------------------------- 1 | PROJCS["RGF93_Lambert_93",GEOGCS["GCS_RGF93",DATUM["D_RGF_1993",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["standard_parallel_1",49],PARAMETER["standard_parallel_2",44],PARAMETER["latitude_of_origin",46.5],PARAMETER["central_meridian",3],PARAMETER["false_easting",700000],PARAMETER["false_northing",6600000],UNIT["Meter",1]] -------------------------------------------------------------------------------- /data_in/X_WATER.vrt: -------------------------------------------------------------------------------- 1 | 2 | 3 | ./data_in/osm2igeo/H_OSM_ADMINISTRATIF/COMMUNE.shp 4 | 5 | EPSG:2154 6 | 7 | ./data_in/oceans_seas/water-polygons-split-4326/water_polygons.shp 8 | 9 | EPSG:4326 10 | 11 | -------------------------------------------------------------------------------- /00_preliminary.sh: -------------------------------------------------------------------------------- 1 | ########################## 2 | #OSM2IGEOTOPO - FRANCE 3 | ########################## 4 | 5 | cd "/osm2igeotopo/data_in/oceans_seas" 6 | rm water-polygons-split-4326.* 7 | rm -r water-polygons-split-4326 8 | curl --limit-rate 200K https://osmdata.openstreetmap.de/download/water-polygons-split-4326.zip > "./water-polygons-split-4326.zip" 9 | unzip -o water-polygons-split-4326.zip 10 | 11 | ###---------- 12 | cd "/osm2igeotopo/data_in/dsm/" 13 | ### ATTENTION : Au préalable, vous devez télécharger et décompresser les différentes tuiles EU-DEM dans le dossier dsm 14 | gdalbuildvrt ./1_VRT.vrt ./*.TIF 15 | -------------------------------------------------------------------------------- /data_in/grid/grille_FRANCE.qpj: -------------------------------------------------------------------------------- 1 | PROJCS["RGF93 / Lambert-93",GEOGCS["RGF93",DATUM["Reseau_Geodesique_Francais_1993",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6171"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4171"]],PROJECTION["Lambert_Conformal_Conic_2SP"],PARAMETER["standard_parallel_1",49],PARAMETER["standard_parallel_2",44],PARAMETER["latitude_of_origin",46.5],PARAMETER["central_meridian",3],PARAMETER["false_easting",700000],PARAMETER["false_northing",6600000],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],AUTHORITY["EPSG","2154"]] 2 | -------------------------------------------------------------------------------- /attachment/template_osm2igeotopo.qml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1 5 | 1 6 | 1 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | None 19 | WholeRaster 20 | Estimated 21 | 0.02 22 | 0.98 23 | 2 24 | 25 | 26 | 27 | 28 | 29 | 30 | 0 31 | 32 | -------------------------------------------------------------------------------- /scripts/export_atlas.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | # linja over bruker vi for å kunne bruke æøå uten advarsler. 4 | # Source : https://gis.stackexchange.com/questions/351773/possible-to-automatically-export-atlases-from-qgis-containing-postgresql-views-t 5 | # Autres discussions : https://gis.stackexchange.com/questions/351763/export-several-configured-atlases-with-a-python-script 6 | 7 | import sys 8 | import os 9 | import zipfile 10 | os.environ['QT_QPA_PLATFORM']='offscreen' 11 | from PyQt5.QtCore import QSettings 12 | from qgis.core import QgsApplication, QgsProject, QgsLayoutExporter, QgsLayoutRenderContext 13 | 14 | def export_atlas(qgs_project_path, layout_name, outputs_folder): 15 | 16 | # Open existing project 17 | project = QgsProject.instance() 18 | project.read(qgs_project_path) 19 | 20 | print('Project in ' + project.fileName() + ' loaded successfully') 21 | 22 | # Open prepared layout that as atlas enabled and set 23 | layout = project.layoutManager().layoutByName(layout_name) 24 | myAtlas = layout.atlas() 25 | myAtlasMap = myAtlas.layout() 26 | # Export atlas 27 | exporter = QgsLayoutExporter(layout) 28 | settings = QgsLayoutExporter.ImageExportSettings() 29 | image_settings = QgsLayoutExporter(myAtlasMap).ImageExportSettings() 30 | 31 | image_settings.dpi = 300 32 | image_settings.generateWorldFile = 1 33 | 34 | #source : https://stackoverflow.com/questions/51161361/how-to-disable-anti-aliasing-in-qgis-export-pyqgis 35 | context = QgsLayoutRenderContext(layout) 36 | context.setFlag(context.FlagAntialiasing, True) 37 | image_settings.flags = context.flags() 38 | 39 | exporter.exportToImage(myAtlas,outputs_folder, 'tiff', image_settings) 40 | 41 | def main(): 42 | 43 | # Start a QGIS application without GUI 44 | qgs = QgsApplication([], False) 45 | qgs.initQgis() 46 | sys.path.append('/usr/share/qgis/python/plugins') 47 | 48 | qgs.initQgis() 49 | 50 | project_path = '/home/osm2igeotopo/X_PROJET_OSM2IGEOTOPO25.qgs' 51 | output_folder = '/home/osm2igeotopo/data_temp/dalles_export/' 52 | layout_name = 'EXPORT_DALLE' 53 | print('Starter atlas export') 54 | export_atlas(project_path, layout_name, output_folder) 55 | 56 | # Close the QGIS application 57 | qgs.exitQgis() 58 | 59 | if __name__ == "__main__": 60 | main() 61 | -------------------------------------------------------------------------------- /01_osm2igeotopo25.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ########################## 4 | #OSM2IGEOTOPO - FRANCE 5 | ########################## 6 | 7 | if [ "$#" -ge 1 ]; then 8 | if [ "$1" = "11_ILE_DE_FRANCE" ] || [ "$1" = "21_CHAMPAGNE_ARDENNE" ] || [ "$1" = "22_PICARDIE" ] || [ "$1" = "23_HAUTE_NORMANDIE" ] || [ "$1" = "24_CENTRE" ] || [ "$1" = "25_BASSE_NORMANDIE" ] || [ "$1" = "26_BOURGOGNE" ] || [ "$1" = "31_NORD_PAS_DE_CALAIS" ] || [ "$1" = "41_LORRAINE" ] || [ "$1" = "42_ALSACE" ] || [ "$1" = "43_FRANCHE_COMTE" ] || [ "$1" = "52_PAYS_DE_LA_LOIRE" ] || [ "$1" = "53_BRETAGNE" ] || [ "$1" = "54_POITOU_CHARENTES" ] || [ "$1" = "72_AQUITAINE" ] || [ "$1" = "73_MIDI_PYRENEES" ] || [ "$1" = "74_LIMOUSIN" ] || [ "$1" = "82_RHONE_ALPES" ] || [ "$1" = "83_AUVERGNE" ] || [ "$1" = "91_LANGUEDOC_ROUSSILLON" ] || [ "$1" = "93_PROVENCE_ALPES_COTE_D_AZUR" ] || [ "$1" = "94_CORSE" ]; 9 | then 10 | a_region=$1 11 | else 12 | IFS= read -p "REGION : " r_region 13 | if [ "$r_region" = "11_ILE_DE_FRANCE" ] || [ "$r_region" = "21_CHAMPAGNE_ARDENNE" ] || [ "$r_region" = "22_PICARDIE" ] || [ "$r_region" = "23_HAUTE_NORMANDIE" ] || [ "$r_region" = "24_CENTRE" ] || [ "$r_region" = "25_BASSE_NORMANDIE" ] || [ "$r_region" = "26_BOURGOGNE" ] || [ "$r_region" = "31_NORD_PAS_DE_CALAIS" ] || [ "$r_region" = "41_LORRAINE" ] || [ "$r_region" = "42_ALSACE" ] || [ "$r_region" = "43_FRANCHE_COMTE" ] || [ "$r_region" = "52_PAYS_DE_LA_LOIRE" ] || [ "$r_region" = "53_BRETAGNE" ] || [ "$r_region" = "54_POITOU_CHARENTES" ] || [ "$r_region" = "72_AQUITAINE" ] || [ "$r_region" = "73_MIDI_PYRENEES" ] || [ "$r_region" = "74_LIMOUSIN" ] || [ "$r_region" = "82_RHONE_ALPES" ] || [ "$r_region" = "83_AUVERGNE" ] || [ "$r_region" = "91_LANGUEDOC_ROUSSILLON" ] || [ "$r_region" = "93_PROVENCE_ALPES_COTE_D_AZUR" ] || [ "$r_region" = "94_CORSE" ]; 14 | then 15 | export a_region=$r_region 16 | else 17 | echo "Erreur de paramètre" 18 | exit 0 19 | fi 20 | fi 21 | else 22 | IFS= read -p "REGION : " r_region 23 | if [ "$r_region" = "11_ILE_DE_FRANCE" ] || [ "$r_region" = "21_CHAMPAGNE_ARDENNE" ] || [ "$r_region" = "22_PICARDIE" ] || [ "$r_region" = "23_HAUTE_NORMANDIE" ] || [ "$r_region" = "24_CENTRE" ] || [ "$r_region" = "25_BASSE_NORMANDIE" ] || [ "$r_region" = "26_BOURGOGNE" ] || [ "$r_region" = "31_NORD_PAS_DE_CALAIS" ] || [ "$r_region" = "41_LORRAINE" ] || [ "$r_region" = "42_ALSACE" ] || [ "$r_region" = "43_FRANCHE_COMTE" ] || [ "$r_region" = "52_PAYS_DE_LA_LOIRE" ] || [ "$r_region" = "53_BRETAGNE" ] || [ "$r_region" = "54_POITOU_CHARENTES" ] || [ "$r_region" = "72_AQUITAINE" ] || [ "$r_region" = "73_MIDI_PYRENEES" ] || [ "$r_region" = "74_LIMOUSIN" ] || [ "$r_region" = "82_RHONE_ALPES" ] || [ "$r_region" = "83_AUVERGNE" ] || [ "$r_region" = "91_LANGUEDOC_ROUSSILLON" ] || [ "$r_region" = "93_PROVENCE_ALPES_COTE_D_AZUR" ] || [ "$r_region" = "94_CORSE" ]; 24 | then 25 | export a_region=$r_region 26 | else 27 | echo "Erreur de paramètre" 28 | exit 0 29 | fi 30 | fi 31 | 32 | #------------------------------------------------------------------------------- 33 | 34 | rm -rfv /home/osm2igeotopo/data_in/osm2igeo/* 35 | 36 | export DATE_T=$(date '+%Y%m') 37 | 38 | cd /home/osm2igeotopo/data_in/osm2igeo/ 39 | curl https://data.data-wax.com/OSM2IGEO/FRANCE/$DATE_T'_OSM2IGEO_'$a_region'_SHP_L93_2154.zip' > $DATE_T'_OSM2IGEO_'$a_region'_SHP_L93_2154.zip' 40 | 41 | cd /home/osm2igeotopo/data_in/osm2igeo/ 42 | for f in *.zip; 43 | do 44 | export DATE_OLD=$(date -d "-1 month" '+%Y%m') 45 | 46 | unzip -o ${f%%.*}.zip; #Décompresse le dossier 47 | yes | cp -rf ${f%%.*}/* ./; #Déplace les fichiers 48 | rm -r ./${f%%.*} 49 | rm ${f%%.*}.zip 50 | cd /home/osm2igeotopo/ 51 | 52 | rm -r data_temp/* 53 | rm -r data_out/* 54 | 55 | echo 'Commune 500m' 56 | ogr2ogr -f "ESRI Shapefile" data_temp/1_COMMUNE_DISSOLVE.shp data_in/osm2igeo/H_OSM_ADMINISTRATIF/COMMUNE.shp -dialect sqlite -sql "SELECT (st_buffer(ST_Union(geometry),500)) FROM COMMUNE" 57 | echo 'Clip DSM' 58 | gdalwarp -overwrite -s_srs EPSG:3035 -t_srs EPSG:2154 -dstnodata 9999.0 -tr 20.0 20.0 -r bilinear -co BIGTIFF=YES -of GTiff -multi -cutline data_temp/1_COMMUNE_DISSOLVE.shp -cl '1_COMMUNE_DISSOLVE' -crop_to_cutline data_in/dsm/1_VRT.vrt data_temp/2_IMAGE_CLIP.tif 59 | echo 'Courbes' 60 | gdal_contour -b 1 -a ELEV -i 10.0 -f "ESRI Shapefile" data_temp/2_IMAGE_CLIP.tif data_temp/3_COURBES.shp 61 | echo 'Emprise' 62 | ogr2ogr -f "ESRI Shapefile" data_temp/4_COMMUNE_DISSOLVE.shp data_in/osm2igeo/H_OSM_ADMINISTRATIF/COMMUNE.shp -dialect sqlite -sql "SELECT ST_Union(geometry) FROM COMMUNE" 63 | echo 'Clip courbes' 64 | ogr2ogr -overwrite -progress -f "ESRI Shapefile" -clipsrc data_temp/4_COMMUNE_DISSOLVE.shp data_temp/5_COURBES_CLIP.shp data_temp/3_COURBES.shp 65 | echo 'Select grille' 66 | ogr2ogr data_temp/6_GRILLE_SELECT.shp data_in/X_GRILLE.vrt -dialect sqlite -sql "SELECT b.id, b.geometry FROM grille_FRANCE b WHERE st_intersects( (SELECT (st_union(geometry)) FROM COMMUNE), b.geometry)" 67 | echo 'Mer' 68 | ogr2ogr -t_srs "EPSG:2154" data_temp/7_WATER_SELECT.shp data_in/X_WATER.vrt -dialect sqlite -sql "SELECT st_union(b.geometry) FROM water_polygons b WHERE st_intersects((SELECT st_transform(st_buffer(st_union(geometry),500),4326) FROM COMMUNE), b.geometry)" 69 | echo 'Ombrage' 70 | gdaldem hillshade data_temp/2_IMAGE_CLIP.tif data_temp/8_OMBRAGE_225.tif -of GTiff -b 1 -z 1.5 -s 1.0 -az 225.0 -alt 45.0 71 | gdaldem hillshade data_temp/2_IMAGE_CLIP.tif data_temp/8_OMBRAGE_360.tif -of GTiff -b 1 -z 1.5 -s 1.0 -az 360.0 -alt 45.0 72 | gdaldem hillshade data_temp/2_IMAGE_CLIP.tif data_temp/8_OMBRAGE_315.tif -of GTiff -b 1 -z 1.5 -s 1.0 -az 315.0 -alt 45.0 73 | gdaldem hillshade data_temp/2_IMAGE_CLIP.tif data_temp/8_OMBRAGE_270.tif -of GTiff -b 1 -z 1.5 -s 1.0 -az 270.0 -alt 45.0 74 | 75 | rm -r data_temp/dalles_export; 76 | mkdir data_temp/dalles_export; 77 | python3 scripts/export_atlas.py; 78 | 79 | for j in data_temp/dalles_export/*.tiff; do gdal_translate -b 1 -b 2 -b 3 -mask 4 -of GTiff -co COMPRESS=JPEG -co JPEG_QUALITY=90 -co PHOTOMETRIC=YCBCR -co TFW=YES data_temp/dalles_export/${j##*/} data_out/${j##*/} ; done 80 | ##En option si l'on souhaite ajouter un qml 81 | for i in data_out/*.tiff; do cp attachment/template_osm2igeotopo.qml ${i%%.*}.qml ; done 82 | 83 | rm -r data_temp/dalles_export; 84 | NAME_OSM2IGEO=${f%%.*}; 85 | NAME_TERRITOIRE=${NAME_OSM2IGEO:7:100}; 86 | echo ${NAME_TERRITOIRE}; 87 | NAME_FOLDER1=${NAME_TERRITOIRE//SHP/TIFF}; 88 | NAME_FOLDER=${NAME_FOLDER1//OSM2IGEO/OSM2IGEOTOPO}; 89 | echo ${NAME_FOLDER}; 90 | mkdir data_out/$DATE_T'_'${NAME_FOLDER}; 91 | mkdir data_out/$DATE_T'_'${NAME_FOLDER}/TUILES; 92 | mv data_out/*.* data_out/$DATE_T'_'${NAME_FOLDER}/TUILES/; 93 | cp attachment/X_Licence.txt data_out/$DATE_T'_'${NAME_FOLDER}/X_Licence.txt; 94 | 95 | ls data_out/$DATE_T'_'${NAME_FOLDER}/TUILES/*.tiff > data_temp/list_img.txt 96 | gdalbuildvrt -resolution average -addalpha -r nearest -input_file_list data_temp/list_img.txt data_out/$DATE_T'_'${NAME_FOLDER}/$a_region'.vrt' 97 | for i in data_out/$DATE_T'_'${NAME_FOLDER}/*.vrt; do cp attachment/template_osm2igeotopo.qml ${i%%.*}.qml ; done 98 | 99 | cd data_out; 100 | ##Si l'on souhaite sciender le zip : -s 500m 101 | zip -r $DATE_T'_'${NAME_FOLDER}.zip $DATE_T'_'${NAME_FOLDER}; 102 | rm -r $DATE_T'_'${NAME_FOLDER}; 103 | 104 | ##Permet d'exporter les données sur un serveur FTP 105 | curl -s -T $DATE_T'_'${NAME_FOLDER}.zip ftp://ftp-xxxxxxx/FRANCE/ --user "IDENTIFIANT:PASSWORD" 106 | curl -s -u "IDENTIFIANT:PASSWORD" "ftp://ftp-xxxxxxx/FRANCE/" -Q "-DELE $DATE_OLD'_'${NAME_FOLDER}.zip" 107 | 108 | ##Permet de supprimer le fichier zip généré après l'envoi sur un serveur FTP 109 | rm -r $DATE_T'_'${NAME_FOLDER}.zip 110 | 111 | cd /home/osm2igeotopo/ 112 | #rm -r data_temp/* 113 | ##Permet de supprimer les données OSM2IGEOTOPO en entrée 114 | rm -rfv data_in/osm2igeo/* 115 | 116 | done 117 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # **osm2igeotopo** 2 | 3 | **[Télécharger les données générées sur la France métropolitaine, les DOM-TOM](https://data.data-wax.com/?dir=OSM2IGEOTOPO25/FRANCE/)** ([Découpage suivant les anciennes régions](https://fr.wikipedia.org/wiki/Région_française)). 4 | 5 | --- 6 | ## Objectif du projet 7 | 8 | Utiliser la richesse des informations disponibles dans [OpenStreetMap](https://www.openstreetmap.fr) et les valoriser sous la forme d'une carte topographique libre au 1/25 000 (pseudo [SCAN25® | IGN](https://professionnels.ign.fr/scan25)) afin qu'elles puissent être librement exploitées dans une application SIG ou plus simplement imprimées. 9 | 10 | ## Rendu proposé 11 | ![Exemple sur Montpellier Nord V1](exemples_visuels/osm2igeotopo25_1.jpg) 12 | 13 | ## Pourquoi cette idée ? 14 | 15 | Après la création du projet [OSM2IGEO](https://github.com/igeofr/osm2igeo), j'ai constaté qu'il n'existait pas de carte topographique "libre" ormis le projet Web : [OpenTopoMap](https://opentopomap.org) mais qui ne répond pas à certains besoins de portabilité. 16 | 17 | En m'appuyant sur les données générées pour [OSM2IGEO](https://github.com/igeofr/osm2igeo), j'ai donc poursuivi mes travaux pour produire une chaine de traitement permettant de générer et de communiquer des données topographiques sous forme de tuiles de 10*10km. 18 | 19 | 20 | ## Les données générées 21 | **[Télécharger les données générées sur la France métropolitaine, les DOM-TOM](https://data.data-wax.com/?dir=OSM2IGEOTOPO25/)** ([Découpage suivant les anciennes régions](https://fr.wikipedia.org/wiki/Région_française)). 22 | A plus long terme, nous aimerions générer des cartes topographiques sur l'Afrique Francophone ou ce type de carte est difficilement accessible. 23 | 24 | **Attention :** Les fichiers générés ne respectent pas les spécifications du [SCAN25® | IGN](https://professionnels.ign.fr/scan25) ils visent seulement à s'en rapprocher pour pallier à un besoin de données/informations libres. 25 | 26 | 27 | ## Origine des données 28 | 29 | 1. Les données OpenStreetMap utilisées pour générer les fichiers vectoriels régionaux proviennent de [Geofabrik](https://download.geofabrik.de/europe/france.html) et sont ensuite mis en formes dans le cadre du projet [OSM2IGEO](https://github.com/igeofr/osm2igeo). 30 | 31 | 2. Le modèle numérique utilisé provient du projet européen EU-DEM (V1.1) disponible via le site internet de [Copernicus](https://land.copernicus.eu/imagery-in-situ/eu-dem/eu-dem-v1.1) - Nota : inscription obligatoire. La résolution de ce produit est de 25 mètres. 32 | 33 | *Il est possible d'adapter ce projet pour utiliser des données OSM provenant d'autres sources.* 34 | 35 | ## Les points forts 36 | 37 | * Adaptabilité de la chaîne 38 | * Donnée ouverte basée sur le projet collaboratif [OpenStreetMap](https://www.openstreetmap.fr) 39 | * Couverture régionale 40 | * Mise à jour en continu possible 41 | 42 | ## Les points faibles 43 | 44 | * Hétérogénéité spatiale & attributaire (Hétérogénéités des sources et des compétences des contributeurs). 45 | * Rendu à améliorer sur certains points. 46 | 47 | ## Formats 48 | 49 | * .tif 50 | 51 | *Il est possible d'envisager d'autres formats si le besoin se fait sentir.* 52 | 53 | ## Projections disponibles 54 | 55 | * Pour la France métropole : (RGF 93) projection Lambert-93 (EPSG : 2154) 56 | 57 | *Il est possible de générer les fichiers dans d'autres systèmes de projection.* 58 | 59 | ## Mises à jour 60 | Nous allons essayer de proposer une mise à jour chaque mois. 61 | 62 | ## Pré-requis et étapes de la chaine de traitement osm2igeotopo 63 | 64 | #### Pré-requis 65 | 66 | Télécharger la police d'écriture [Noto Sans Display Condensed](https://www.google.com/get/noto/) - *Proposée par Romain Lacroix dans son tuto : [Carte Topo avec QGIS](https://github.com/rxlacroix/CarteTopo)* 67 | 68 | **A creuser :** [Typography for topography : BELLTOPO SANS TYPEFACE & FREE FONT](https://www.sarahbellmaps.com/typography-for-topography-belltopo-sans-free-font/) 69 | 70 | 71 | #### Des données à la carte - Etapes 72 | 73 | ##### 1. Téléchargement des données 74 | 1.1. Télécharger le modèle numérique de terrain EU-DEM (V1.1) disponible via le site internet de [Copernicus](https://land.copernicus.eu/imagery-in-situ/eu-dem/eu-dem-v1.1) - Nota : inscription obligatoire. 75 | 76 | * Pour la France métropolitaine télécharger les tuiles : E30N20 (principale), E30N30, E40N20 (un fichier pouvant peser jusqu'à 5Go) - Système de projection européen ETRS89 (EPSG:3035). 77 | 78 | * Créer un raster virtuel regroupant les différentes tuiles EU-DEM : 79 | 80 | cd "/OSM2IGEOTOPO/" 81 | gdalbuildvrt data_in/dsm/1_VRT.vrt data_in/dsm/*.tif 82 | 83 | 1.2. Télécharger les zones maritimes depuis le site : [https://osmdata.openstreetmap.de](https://osmdata.openstreetmap.de) 84 | 85 | cd "/OSM2IGEOTOPO/" 86 | curl --limit-rate 100K https://osmdata.openstreetmap.de/download/water-polygons-split-4326.zip > "data_in/oceans_seas/water-polygons-split-4326.*" 87 | 88 | ___ 89 | 90 | ##### 2. Des données à la carte : Préparation et traitement des données : 91 | *Le script 2_osm2igeotopo25.sh exploite la puissance de gdal et d'ogr2ogr pour traiter l'information.* 92 | 93 | **Exécuter cette commande pour lancer la production des tuiles.** 94 | 95 | cd "/OSM2IGEOTOPO/" 96 | 2_osm2igeotopo25.sh 11_ILE_DE_FRANCE 97 | 98 | **Etapes du script** 99 | - 2.1. Téléchargement et décompression des données [OSM2IGEO](https://data.data-wax.com/OSM2IGEO/) 100 | - 2.2. Création d'une zone tampon de 500m autour des communes de la région concernée 101 | - 2.3. Découpage du modèle numérique sur la région concernée 102 | - 2.4. Création des courbes de niveau 103 | - 2.5. Création d'un fichier de l'emprise régionale 104 | - 2.6. Découpage des courbes de niveau suivant ce fichier d'emprise régionale 105 | - 2.7. Sélection des mailles recouvrant la région choisie 106 | - 2.8. Sélection des zones maritimes bordant la région 107 | - 2.9. Création de raster d'ombrage à partir des données EU-DEM 108 | - 2.9. Export de la carte sous forme de tuiles : L'export est automatisé par un script python qui s'appuye sur l'API de QGIS (export_atlas.py) 109 | 110 | **Attention :** 111 | - il faut modifier les chemins en fonction de votre organisation (home/...) 112 | - il faut modifier la fin du script si vous souhaitez exporter ou non le résultat sur un serveur FTP (Curl). 113 | 114 | ___ 115 | 116 | ##### 3. Mise en forme des données 117 | Pour faciliter la mise en forme des données nous avons travaillé avec le logiciel libre [QGIS3](https://www.qgis.org). 118 | 119 | - 3.1. La mise en forme des labels se base sur [notre script de mise en forme des toponymes suivant les règles de l'IGN](https://github.com/igeofr/qgis2/blob/master/expressions/mise_en_forme_des_toponymes_V2_beta.txt) 120 | 121 | ###### Pour aller plus loin : 122 | > [Commission de toponymie du Québec - Toponyme et abbréviation](http://www.toponymie.gouv.qc.ca/ct/normes-procedures/terminologie-geographique/liste-termes-geographiques.aspx) 123 | 124 | 125 | - 3.2. L'orientation des labels est réalisée à l'aide du code : 126 | 127 | CASE 128 | WHEN angle_at_vertex($geometry,1) <= 180 129 | THEN '' 130 | ELSE "NUMERO" 131 | END 132 | 133 | Source : https://gis.stackexchange.com/questions/116697/one-label-for-two-lane-roads-osm-qgis-postgis/322816#322816 134 | 135 | - 3.3. La mise en forme des labels des courbes de niveau. [A creuser](https://pigrecoinfinito.com/2020/01/31/qgis-come-allineare-le-etichette-delle-isoipse/) - [A creuser avec QGIS3.12](https://twitter.com/underdarkgis/status/1235641033381171200) - [A creuser avec QGIS3.12](https://twitter.com/klaskarlsson/status/1247145131234525184) 136 | - 3.4. La symbologie a été adapté du projet de Romain Lacroix : [Carte Topo avec QGIS](https://github.com/rxlacroix/CarteTopo) 137 | - ~~3.5. Améliorer le rendu du MNT : [Corriger l'effet de grille](https://mobile.twitter.com/antoniolocandro/status/1232349539295748099) - [Le problème] (https://gis.stackexchange.com/questions/271439/hillshade-shows-grid-texture-artifacts)~~ 138 | - ~~3.6. Effets ade profondeur pour les plans d'eau [Ajouter un effet](https://twitter.com/timlinux/status/1255463780412198912)~~ 139 | 140 | ##### 5. Compression des tuiles 141 | 142 | ###### A suivre : 143 | * [Benchmarks - Lossless compression algorithms](https://www.gaia-gis.it/fossil/librasterlite2/wiki?name=benchmarks+%282019+update%29) 144 | * [Guide to GeoTIFF compression and optimization with GDAL](https://kokoalberti.com/articles/geotiff-compression-optimization-guide/) 145 | 146 | ___ 147 | 148 | ## Pistes d'évolution 149 | * ~~Compléter nos travaux OSM2IGEO pour compléter le rendu (bornes géodésiques, points de vue, surfaces en eau,...)~~ 150 | * Créer une légende [Légende OpenTopoMap](https://opentopomap.org/about) 151 | * Créer un fichier de métadonnées 152 | * ~~Affiner certaines requêtes~~ 153 | * Améliorer le rendu du projet QGIS (couleurs, labels, orientation des symboles ...) 154 | * Améliorer la recette pour le rendu du modèle numérique et le calcul des courbes de niveau ([Des cartes topographiques avec OpenStreetMap](https://blog.champs-libres.coop/carto/2018/12/18/openardennemap.html)) 155 | * Ajouter des courbes de niveau en zone maritime : [GEBCO_2019 grid](https://www.gebco.net/data_and_products/gridded_bathymetry_data/#a1) 156 | 157 | ## Licence 158 | Les données sont fournies sous licence ODbL (Open Database Licence). Cette licence implique : l'attribution et le partage à l'identique. 159 | 160 | * Pour la mention d'attribution veuillez indiquer « osm2igeotopo par DATA\WAX - © les contributeurs d’OpenStreetMap - Copernicus programme, European Digital Elevation Model (EU-DEM), version 1.1, financement de l'Union européenne ». 161 | * Pour le partage à l'identique, toute amélioration des données de osm2igeotopo doit être repartagée sous licence identique. 162 | 163 | ## Merci 164 | Nous remercions tous les contributeurs du projet OpenStreetMap qui enrichissent quotidiennement cette base de données géographique mondiale. 165 | 166 | ## Le mot de la fin 167 | Merci de nous faire remonter : les erreurs et/ou les problèmes que vous rencontrez. 168 | 169 | Pour toute question concernant le projet ou le jeu de données, vous pouvez me contacter : florian.boret)at(data-wax.com 170 | 171 | --- 172 | ## Pour aller plus loin : 173 | * [Carte Topo avec QGIS](https://github.com/rxlacroix/CarteTopo) 174 | * [Des cartes topographiques avec OpenStreetMap](https://blog.champs-libres.coop/carto/2018/12/18/openardennemap.html) 175 | * [De belles courbes de niveau](https://www.champs-libres.coop/blog/post/2019-11-21-beautiful-contour-belgium/) 176 | * [OpenArdenneMap – version hiver 2019-2020](http://www.nobohan.be/2020/02/05/openardennemap-livraison-hiver-2019-2020/) 177 | * [OpenTopoMap](https://opentopomap.org) 178 | * [Réaliser un fond de carte en relief](http://bota-phytoso-flo.blogspot.com/2015/08/realiser-un-fond-de-carte-en-relief.html) 179 | * [Comment lire une carte topographique - Partie1](https://blog.twonav.fr/tutoriels-land/lire-carte-topographique-2eme-partie/) 180 | * [Comment lire une carte topographique - Partie2](https://blog.twonav.fr/uncategorized/comment-lire-carte-topographique/) 181 | * [RandoCarto](http://randocarto.fr) 182 | * [A creuser : Rendu DSM / Littoral](https://xycarto.com/blog/) 183 | 184 | --- 185 | ## Biblio : 186 | * [How Do Map Readers Recognize a Topographic Mapping Style?](https://www.researchgate.net/publication/284898837_How_Do_Map_Readers_Recognize_a_Topographic_Mapping_Style) 187 | * [How to design a cartographic continuum to help users to navigate between two topographic styles?](https://www.researchgate.net/publication/318466208_How_to_design_a_cartographic_continuum_to_help_users_to_navigate_between_two_topographic_styles) 188 | 189 | --- 190 | ## Sur le sujet : 191 | * [Alternative au Scan25 & rendus OSM](https://georezo.net/forum/viewtopic.php?id=105965) 192 | * [Equivalent IGN et Geoportail en Côte d'Ivoire](https://georezo.net/forum/viewtopic.php?pid=328198) 193 | -------------------------------------------------------------------------------- /attachment/X_Licence.txt: -------------------------------------------------------------------------------- 1 | ******************************************** 2 | Les données que vous venez de télécharger sont fournies sous licence ODbL (Open Database Licence). Cette licence implique : l'attribution et le partage à l'identique. 3 | • Pour la mention d'attribution veuillez indiquer « © les contributeurs d’OpenStreetMap & European Union - EU DEM (Copernicus) / OSM2IGEOTOPO par DATA\WAX ». 4 | • Pour le partage à l'identique, toute amélioration des données d'osm2igeotopo doit être repartagée sous licence identique. 5 | 6 | Merci de nous faire remonter : les erreurs ou les problèmes que vous rencontrez. 7 | 8 | ******************************************** 9 | 10 | OpenStreetMap® est un ensemble de données ouvertes, disponibles sous licence libre Open Data Commons Open Database License (ODbL) auprès de la Fondation OpenStreetMap (OSMF). 11 | 12 | Vous êtes libre de copier, distribuer, transmettre et adapter ces données, à condition que vous créditiez, OpenStreetMap et ses contributeurs. Si vous modifiez ou utilisez les données dans d’autres œuvres dérivées, vous ne pouvez distribuer celles-ci que sous la même licence. Le texte légal complet détaille vos droits et responsabilités. 13 | 14 | Plus d'informations sur : 15 | https://www.openstreetmap.org 16 | https://www.openstreetmap.org/help 17 | https://www.openstreetmap.org/copyright 18 | 19 | ******************************************** 20 | 21 | ## ODC Open Database License (ODbL) 22 | 23 | ### Preamble 24 | 25 | The Open Database License (ODbL) is a license agreement intended to 26 | allow users to freely share, modify, and use this Database while 27 | maintaining this same freedom for others. Many databases are covered by 28 | copyright, and therefore this document licenses these rights. Some 29 | jurisdictions, mainly in the European Union, have specific rights that 30 | cover databases, and so the ODbL addresses these rights, too. Finally, 31 | the ODbL is also an agreement in contract for users of this Database to 32 | act in certain ways in return for accessing this Database. 33 | 34 | Databases can contain a wide variety of types of content (images, 35 | audiovisual material, and sounds all in the same database, for example), 36 | and so the ODbL only governs the rights over the Database, and not the 37 | contents of the Database individually. Licensors should use the ODbL 38 | together with another license for the contents, if the contents have a 39 | single set of rights that uniformly covers all of the contents. If the 40 | contents have multiple sets of different rights, Licensors should 41 | describe what rights govern what contents together in the individual 42 | record or in some other way that clarifies what rights apply. 43 | 44 | Sometimes the contents of a database, or the database itself, can be 45 | covered by other rights not addressed here (such as private contracts, 46 | trade mark over the name, or privacy rights / data protection rights 47 | over information in the contents), and so you are advised that you may 48 | have to consult other documents or clear other rights before doing 49 | activities not covered by this License. 50 | 51 | ------ 52 | 53 | The Licensor (as defined below) 54 | 55 | and 56 | 57 | You (as defined below) 58 | 59 | agree as follows: 60 | 61 | ### 1.0 Definitions of Capitalised Words 62 | 63 | "Collective Database" – Means this Database in unmodified form as part 64 | of a collection of independent databases in themselves that together are 65 | assembled into a collective whole. A work that constitutes a Collective 66 | Database will not be considered a Derivative Database. 67 | 68 | "Convey" – As a verb, means Using the Database, a Derivative Database, 69 | or the Database as part of a Collective Database in any way that enables 70 | a Person to make or receive copies of the Database or a Derivative 71 | Database. Conveying does not include interaction with a user through a 72 | computer network, or creating and Using a Produced Work, where no 73 | transfer of a copy of the Database or a Derivative Database occurs. 74 | "Contents" – The contents of this Database, which includes the 75 | information, independent works, or other material collected into the 76 | Database. For example, the contents of the Database could be factual 77 | data or works such as images, audiovisual material, text, or sounds. 78 | 79 | "Database" – A collection of material (the Contents) arranged in a 80 | systematic or methodical way and individually accessible by electronic 81 | or other means offered under the terms of this License. 82 | 83 | "Database Directive" – Means Directive 96/9/EC of the European 84 | Parliament and of the Council of 11 March 1996 on the legal protection 85 | of databases, as amended or succeeded. 86 | 87 | "Database Right" – Means rights resulting from the Chapter III ("sui 88 | generis") rights in the Database Directive (as amended and as transposed 89 | by member states), which includes the Extraction and Re-utilisation of 90 | the whole or a Substantial part of the Contents, as well as any similar 91 | rights available in the relevant jurisdiction under Section 10.4. 92 | 93 | "Derivative Database" – Means a database based upon the Database, and 94 | includes any translation, adaptation, arrangement, modification, or any 95 | other alteration of the Database or of a Substantial part of the 96 | Contents. This includes, but is not limited to, Extracting or 97 | Re-utilising the whole or a Substantial part of the Contents in a new 98 | Database. 99 | 100 | "Extraction" – Means the permanent or temporary transfer of all or a 101 | Substantial part of the Contents to another medium by any means or in 102 | any form. 103 | 104 | "License" – Means this license agreement and is both a license of rights 105 | such as copyright and Database Rights and an agreement in contract. 106 | 107 | "Licensor" – Means the Person that offers the Database under the terms 108 | of this License. 109 | 110 | "Person" – Means a natural or legal person or a body of persons 111 | corporate or incorporate. 112 | 113 | "Produced Work" – a work (such as an image, audiovisual material, text, 114 | or sounds) resulting from using the whole or a Substantial part of the 115 | Contents (via a search or other query) from this Database, a Derivative 116 | Database, or this Database as part of a Collective Database. 117 | 118 | "Publicly" – means to Persons other than You or under Your control by 119 | either more than 50% ownership or by the power to direct their 120 | activities (such as contracting with an independent consultant). 121 | 122 | "Re-utilisation" – means any form of making available to the public all 123 | or a Substantial part of the Contents by the distribution of copies, by 124 | renting, by online or other forms of transmission. 125 | 126 | "Substantial" – Means substantial in terms of quantity or quality or a 127 | combination of both. The repeated and systematic Extraction or 128 | Re-utilisation of insubstantial parts of the Contents may amount to the 129 | Extraction or Re-utilisation of a Substantial part of the Contents. 130 | 131 | "Use" – As a verb, means doing any act that is restricted by copyright 132 | or Database Rights whether in the original medium or any other; and 133 | includes without limitation distributing, copying, publicly performing, 134 | publicly displaying, and preparing derivative works of the Database, as 135 | well as modifying the Database as may be technically necessary to use it 136 | in a different mode or format. 137 | 138 | "You" – Means a Person exercising rights under this License who has not 139 | previously violated the terms of this License with respect to the 140 | Database, or who has received express permission from the Licensor to 141 | exercise rights under this License despite a previous violation. 142 | 143 | Words in the singular include the plural and vice versa. 144 | 145 | ### 2.0 What this License covers 146 | 147 | 2.1. Legal effect of this document. This License is: 148 | 149 | a. A license of applicable copyright and neighbouring rights; 150 | 151 | b. A license of the Database Right; and 152 | 153 | c. An agreement in contract between You and the Licensor. 154 | 155 | 2.2 Legal rights covered. This License covers the legal rights in the 156 | Database, including: 157 | 158 | a. Copyright. Any copyright or neighbouring rights in the Database. 159 | The copyright licensed includes any individual elements of the 160 | Database, but does not cover the copyright over the Contents 161 | independent of this Database. See Section 2.4 for details. Copyright 162 | law varies between jurisdictions, but is likely to cover: the Database 163 | model or schema, which is the structure, arrangement, and organisation 164 | of the Database, and can also include the Database tables and table 165 | indexes; the data entry and output sheets; and the Field names of 166 | Contents stored in the Database; 167 | 168 | b. Database Rights. Database Rights only extend to the Extraction and 169 | Re-utilisation of the whole or a Substantial part of the Contents. 170 | Database Rights can apply even when there is no copyright over the 171 | Database. Database Rights can also apply when the Contents are removed 172 | from the Database and are selected and arranged in a way that would 173 | not infringe any applicable copyright; and 174 | 175 | c. Contract. This is an agreement between You and the Licensor for 176 | access to the Database. In return you agree to certain conditions of 177 | use on this access as outlined in this License. 178 | 179 | 2.3 Rights not covered. 180 | 181 | a. This License does not apply to computer programs used in the making 182 | or operation of the Database; 183 | 184 | b. This License does not cover any patents over the Contents or the 185 | Database; and 186 | 187 | c. This License does not cover any trademarks associated with the 188 | Database. 189 | 190 | 2.4 Relationship to Contents in the Database. The individual items of 191 | the Contents contained in this Database may be covered by other rights, 192 | including copyright, patent, data protection, privacy, or personality 193 | rights, and this License does not cover any rights (other than Database 194 | Rights or in contract) in individual Contents contained in the Database. 195 | For example, if used on a Database of images (the Contents), this 196 | License would not apply to copyright over individual images, which could 197 | have their own separate licenses, or one single license covering all of 198 | the rights over the images. 199 | 200 | ### 3.0 Rights granted 201 | 202 | 3.1 Subject to the terms and conditions of this License, the Licensor 203 | grants to You a worldwide, royalty-free, non-exclusive, terminable (but 204 | only under Section 9) license to Use the Database for the duration of 205 | any applicable copyright and Database Rights. These rights explicitly 206 | include commercial use, and do not exclude any field of endeavour. To 207 | the extent possible in the relevant jurisdiction, these rights may be 208 | exercised in all media and formats whether now known or created in the 209 | future. 210 | 211 | The rights granted cover, for example: 212 | 213 | a. Extraction and Re-utilisation of the whole or a Substantial part of 214 | the Contents; 215 | 216 | b. Creation of Derivative Databases; 217 | 218 | c. Creation of Collective Databases; 219 | 220 | d. Creation of temporary or permanent reproductions by any means and 221 | in any form, in whole or in part, including of any Derivative 222 | Databases or as a part of Collective Databases; and 223 | 224 | e. Distribution, communication, display, lending, making available, or 225 | performance to the public by any means and in any form, in whole or in 226 | part, including of any Derivative Database or as a part of Collective 227 | Databases. 228 | 229 | 3.2 Compulsory license schemes. For the avoidance of doubt: 230 | 231 | a. Non-waivable compulsory license schemes. In those jurisdictions in 232 | which the right to collect royalties through any statutory or 233 | compulsory licensing scheme cannot be waived, the Licensor reserves 234 | the exclusive right to collect such royalties for any exercise by You 235 | of the rights granted under this License; 236 | 237 | b. Waivable compulsory license schemes. In those jurisdictions in 238 | which the right to collect royalties through any statutory or 239 | compulsory licensing scheme can be waived, the Licensor waives the 240 | exclusive right to collect such royalties for any exercise by You of 241 | the rights granted under this License; and, 242 | 243 | c. Voluntary license schemes. The Licensor waives the right to collect 244 | royalties, whether individually or, in the event that the Licensor is 245 | a member of a collecting society that administers voluntary licensing 246 | schemes, via that society, from any exercise by You of the rights 247 | granted under this License. 248 | 249 | 3.3 The right to release the Database under different terms, or to stop 250 | distributing or making available the Database, is reserved. Note that 251 | this Database may be multiple-licensed, and so You may have the choice 252 | of using alternative licenses for this Database. Subject to Section 253 | 10.4, all other rights not expressly granted by Licensor are reserved. 254 | 255 | ### 4.0 Conditions of Use 256 | 257 | 4.1 The rights granted in Section 3 above are expressly made subject to 258 | Your complying with the following conditions of use. These are important 259 | conditions of this License, and if You fail to follow them, You will be 260 | in material breach of its terms. 261 | 262 | 4.2 Notices. If You Publicly Convey this Database, any Derivative 263 | Database, or the Database as part of a Collective Database, then You 264 | must: 265 | 266 | a. Do so only under the terms of this License or another license 267 | permitted under Section 4.4; 268 | 269 | b. Include a copy of this License (or, as applicable, a license 270 | permitted under Section 4.4) or its Uniform Resource Identifier (URI) 271 | with the Database or Derivative Database, including both in the 272 | Database or Derivative Database and in any relevant documentation; and 273 | 274 | c. Keep intact any copyright or Database Right notices and notices 275 | that refer to this License. 276 | 277 | d. If it is not possible to put the required notices in a particular 278 | file due to its structure, then You must include the notices in a 279 | location (such as a relevant directory) where users would be likely to 280 | look for it. 281 | 282 | 4.3 Notice for using output (Contents). Creating and Using a Produced 283 | Work does not require the notice in Section 4.2. However, if you 284 | Publicly Use a Produced Work, You must include a notice associated with 285 | the Produced Work reasonably calculated to make any Person that uses, 286 | views, accesses, interacts with, or is otherwise exposed to the Produced 287 | Work aware that Content was obtained from the Database, Derivative 288 | Database, or the Database as part of a Collective Database, and that it 289 | is available under this License. 290 | 291 | a. Example notice. The following text will satisfy notice under 292 | Section 4.3: 293 | 294 | Contains information from DATABASE NAME, which is made available 295 | here under the Open Database License (ODbL). 296 | 297 | DATABASE NAME should be replaced with the name of the Database and a 298 | hyperlink to the URI of the Database. "Open Database License" should 299 | contain a hyperlink to the URI of the text of this License. If 300 | hyperlinks are not possible, You should include the plain text of the 301 | required URI's with the above notice. 302 | 303 | 4.4 Share alike. 304 | 305 | a. Any Derivative Database that You Publicly Use must be only under 306 | the terms of: 307 | 308 | i. This License; 309 | 310 | ii. A later version of this License similar in spirit to this 311 | License; or 312 | 313 | iii. A compatible license. 314 | 315 | If You license the Derivative Database under one of the licenses 316 | mentioned in (iii), You must comply with the terms of that license. 317 | 318 | b. For the avoidance of doubt, Extraction or Re-utilisation of the 319 | whole or a Substantial part of the Contents into a new database is a 320 | Derivative Database and must comply with Section 4.4. 321 | 322 | c. Derivative Databases and Produced Works. A Derivative Database is 323 | Publicly Used and so must comply with Section 4.4. if a Produced Work 324 | created from the Derivative Database is Publicly Used. 325 | 326 | d. Share Alike and additional Contents. For the avoidance of doubt, 327 | You must not add Contents to Derivative Databases under Section 4.4 a 328 | that are incompatible with the rights granted under this License. 329 | 330 | e. Compatible licenses. Licensors may authorise a proxy to determine 331 | compatible licenses under Section 4.4 a iii. If they do so, the 332 | authorised proxy's public statement of acceptance of a compatible 333 | license grants You permission to use the compatible license. 334 | 335 | 336 | 4.5 Limits of Share Alike. The requirements of Section 4.4 do not apply 337 | in the following: 338 | 339 | a. For the avoidance of doubt, You are not required to license 340 | Collective Databases under this License if You incorporate this 341 | Database or a Derivative Database in the collection, but this License 342 | still applies to this Database or a Derivative Database as a part of 343 | the Collective Database; 344 | 345 | b. Using this Database, a Derivative Database, or this Database as 346 | part of a Collective Database to create a Produced Work does not 347 | create a Derivative Database for purposes of Section 4.4; and 348 | 349 | c. Use of a Derivative Database internally within an organisation is 350 | not to the public and therefore does not fall under the requirements 351 | of Section 4.4. 352 | 353 | 4.6 Access to Derivative Databases. If You Publicly Use a Derivative 354 | Database or a Produced Work from a Derivative Database, You must also 355 | offer to recipients of the Derivative Database or Produced Work a copy 356 | in a machine readable form of: 357 | 358 | a. The entire Derivative Database; or 359 | 360 | b. A file containing all of the alterations made to the Database or 361 | the method of making the alterations to the Database (such as an 362 | algorithm), including any additional Contents, that make up all the 363 | differences between the Database and the Derivative Database. 364 | 365 | The Derivative Database (under a.) or alteration file (under b.) must be 366 | available at no more than a reasonable production cost for physical 367 | distributions and free of charge if distributed over the internet. 368 | 369 | 4.7 Technological measures and additional terms 370 | 371 | a. This License does not allow You to impose (except subject to 372 | Section 4.7 b.) any terms or any technological measures on the 373 | Database, a Derivative Database, or the whole or a Substantial part of 374 | the Contents that alter or restrict the terms of this License, or any 375 | rights granted under it, or have the effect or intent of restricting 376 | the ability of any person to exercise those rights. 377 | 378 | b. Parallel distribution. You may impose terms or technological 379 | measures on the Database, a Derivative Database, or the whole or a 380 | Substantial part of the Contents (a "Restricted Database") in 381 | contravention of Section 4.74 a. only if You also make a copy of the 382 | Database or a Derivative Database available to the recipient of the 383 | Restricted Database: 384 | 385 | i. That is available without additional fee; 386 | 387 | ii. That is available in a medium that does not alter or restrict 388 | the terms of this License, or any rights granted under it, or have 389 | the effect or intent of restricting the ability of any person to 390 | exercise those rights (an "Unrestricted Database"); and 391 | 392 | iii. The Unrestricted Database is at least as accessible to the 393 | recipient as a practical matter as the Restricted Database. 394 | 395 | c. For the avoidance of doubt, You may place this Database or a 396 | Derivative Database in an authenticated environment, behind a 397 | password, or within a similar access control scheme provided that You 398 | do not alter or restrict the terms of this License or any rights 399 | granted under it or have the effect or intent of restricting the 400 | ability of any person to exercise those rights. 401 | 402 | 4.8 Licensing of others. You may not sublicense the Database. Each time 403 | You communicate the Database, the whole or Substantial part of the 404 | Contents, or any Derivative Database to anyone else in any way, the 405 | Licensor offers to the recipient a license to the Database on the same 406 | terms and conditions as this License. You are not responsible for 407 | enforcing compliance by third parties with this License, but You may 408 | enforce any rights that You have over a Derivative Database. You are 409 | solely responsible for any modifications of a Derivative Database made 410 | by You or another Person at Your direction. You may not impose any 411 | further restrictions on the exercise of the rights granted or affirmed 412 | under this License. 413 | 414 | ### 5.0 Moral rights 415 | 416 | 5.1 Moral rights. This section covers moral rights, including any rights 417 | to be identified as the author of the Database or to object to treatment 418 | that would otherwise prejudice the author's honour and reputation, or 419 | any other derogatory treatment: 420 | 421 | a. For jurisdictions allowing waiver of moral rights, Licensor waives 422 | all moral rights that Licensor may have in the Database to the fullest 423 | extent possible by the law of the relevant jurisdiction under Section 424 | 10.4; 425 | 426 | b. If waiver of moral rights under Section 5.1 a in the relevant 427 | jurisdiction is not possible, Licensor agrees not to assert any moral 428 | rights over the Database and waives all claims in moral rights to the 429 | fullest extent possible by the law of the relevant jurisdiction under 430 | Section 10.4; and 431 | 432 | c. For jurisdictions not allowing waiver or an agreement not to assert 433 | moral rights under Section 5.1 a and b, the author may retain their 434 | moral rights over certain aspects of the Database. 435 | 436 | Please note that some jurisdictions do not allow for the waiver of moral 437 | rights, and so moral rights may still subsist over the Database in some 438 | jurisdictions. 439 | 440 | ### 6.0 Fair dealing, Database exceptions, and other rights not affected 441 | 442 | 6.1 This License does not affect any rights that You or anyone else may 443 | independently have under any applicable law to make any use of this 444 | Database, including without limitation: 445 | 446 | a. Exceptions to the Database Right including: Extraction of Contents 447 | from non-electronic Databases for private purposes, Extraction for 448 | purposes of illustration for teaching or scientific research, and 449 | Extraction or Re-utilisation for public security or an administrative 450 | or judicial procedure. 451 | 452 | b. Fair dealing, fair use, or any other legally recognised limitation 453 | or exception to infringement of copyright or other applicable laws. 454 | 455 | 6.2 This License does not affect any rights of lawful users to Extract 456 | and Re-utilise insubstantial parts of the Contents, evaluated 457 | quantitatively or qualitatively, for any purposes whatsoever, including 458 | creating a Derivative Database (subject to other rights over the 459 | Contents, see Section 2.4). The repeated and systematic Extraction or 460 | Re-utilisation of insubstantial parts of the Contents may however amount 461 | to the Extraction or Re-utilisation of a Substantial part of the 462 | Contents. 463 | 464 | ### 7.0 Warranties and Disclaimer 465 | 466 | 7.1 The Database is licensed by the Licensor "as is" and without any 467 | warranty of any kind, either express, implied, or arising by statute, 468 | custom, course of dealing, or trade usage. Licensor specifically 469 | disclaims any and all implied warranties or conditions of title, 470 | non-infringement, accuracy or completeness, the presence or absence of 471 | errors, fitness for a particular purpose, merchantability, or otherwise. 472 | Some jurisdictions do not allow the exclusion of implied warranties, so 473 | this exclusion may not apply to You. 474 | 475 | ### 8.0 Limitation of liability 476 | 477 | 8.1 Subject to any liability that may not be excluded or limited by law, 478 | the Licensor is not liable for, and expressly excludes, all liability 479 | for loss or damage however and whenever caused to anyone by any use 480 | under this License, whether by You or by anyone else, and whether caused 481 | by any fault on the part of the Licensor or not. This exclusion of 482 | liability includes, but is not limited to, any special, incidental, 483 | consequential, punitive, or exemplary damages such as loss of revenue, 484 | data, anticipated profits, and lost business. This exclusion applies 485 | even if the Licensor has been advised of the possibility of such 486 | damages. 487 | 488 | 8.2 If liability may not be excluded by law, it is limited to actual and 489 | direct financial loss to the extent it is caused by proved negligence on 490 | the part of the Licensor. 491 | 492 | ### 9.0 Termination of Your rights under this License 493 | 494 | 9.1 Any breach by You of the terms and conditions of this License 495 | automatically terminates this License with immediate effect and without 496 | notice to You. For the avoidance of doubt, Persons who have received the 497 | Database, the whole or a Substantial part of the Contents, Derivative 498 | Databases, or the Database as part of a Collective Database from You 499 | under this License will not have their licenses terminated provided 500 | their use is in full compliance with this License or a license granted 501 | under Section 4.8 of this License. Sections 1, 2, 7, 8, 9 and 10 will 502 | survive any termination of this License. 503 | 504 | 9.2 If You are not in breach of the terms of this License, the Licensor 505 | will not terminate Your rights under it. 506 | 507 | 9.3 Unless terminated under Section 9.1, this License is granted to You 508 | for the duration of applicable rights in the Database. 509 | 510 | 9.4 Reinstatement of rights. If you cease any breach of the terms and 511 | conditions of this License, then your full rights under this License 512 | will be reinstated: 513 | 514 | a. Provisionally and subject to permanent termination until the 60th 515 | day after cessation of breach; 516 | 517 | b. Permanently on the 60th day after cessation of breach unless 518 | otherwise reasonably notified by the Licensor; or 519 | 520 | c. Permanently if reasonably notified by the Licensor of the 521 | violation, this is the first time You have received notice of 522 | violation of this License from the Licensor, and You cure the 523 | violation prior to 30 days after your receipt of the notice. 524 | 525 | Persons subject to permanent termination of rights are not eligible to 526 | be a recipient and receive a license under Section 4.8. 527 | 528 | 9.5 Notwithstanding the above, Licensor reserves the right to release 529 | the Database under different license terms or to stop distributing or 530 | making available the Database. Releasing the Database under different 531 | license terms or stopping the distribution of the Database will not 532 | withdraw this License (or any other license that has been, or is 533 | required to be, granted under the terms of this License), and this 534 | License will continue in full force and effect unless terminated as 535 | stated above. 536 | 537 | ### 10.0 General 538 | 539 | 10.1 If any provision of this License is held to be invalid or 540 | unenforceable, that must not affect the validity or enforceability of 541 | the remainder of the terms and conditions of this License and each 542 | remaining provision of this License shall be valid and enforced to the 543 | fullest extent permitted by law. 544 | 545 | 10.2 This License is the entire agreement between the parties with 546 | respect to the rights granted here over the Database. It replaces any 547 | earlier understandings, agreements or representations with respect to 548 | the Database. 549 | 550 | 10.3 If You are in breach of the terms of this License, You will not be 551 | entitled to rely on the terms of this License or to complain of any 552 | breach by the Licensor. 553 | 554 | 10.4 Choice of law. This License takes effect in and will be governed by 555 | the laws of the relevant jurisdiction in which the License terms are 556 | sought to be enforced. If the standard suite of rights granted under 557 | applicable copyright law and Database Rights in the relevant 558 | jurisdiction includes additional rights not granted under this License, 559 | these additional rights are granted in this License in order to meet the 560 | terms of this License. 561 | --------------------------------------------------------------------------------