Commit cafa508a authored by Adrien Pavie's avatar Adrien Pavie
Browse files

Rename project into GeoDataMine, better wording on website

parent 629a5085
# Osm4odf
# GéoDataMine
Osm4odf (OpenStreetMap pour OpenDataFrance) est un outil simple d'extraction thématique de données OpenStreetMap. Il vous permet facilement de :
GéoDataMine est un outil simple d'extraction thématique de données OpenStreetMap. Il vous permet facilement de :
* Choisir un territoire
* Choisir un thème
* Et récupérer les données issues d'OpenStreetMap sur ce thème et sur ce territoire en CSV ou GeoJSON
* Choisir un __territoire__ (commune, EPCI, département)
* Choisir une __thématique__ (parking à vélo, défibrillateurs, enseignement...)
* Et récupérer les __données issues d'OpenStreetMap__ sur ce thème et sur ce territoire (formats CSV, GeoJSON, Shapefile)
L'outil est disponible à cette adresse : [geodatamine.fr](https://geodatamine.fr)
## Dépendances
......@@ -121,4 +122,6 @@ Une fois l'API lancée, vous avez accès aux adresses suivantes :
Copyright (c) Adrien Pavie 2019
Le développement initial de cet outil a été financé par [OpenDataFrance](opendatafrance.net).
Mis à disposition sous licence AGPL, voir [LICENSE](LICENSE.txt) pour le texte complet de la licence.
{
"name": "osm4odf-api",
"name": "geodatamine-api",
"version": "0.0.0",
"description": "API to extract ready-to-use OpenStreetMap data on various themes",
"main": "src/index.js",
......@@ -7,7 +7,7 @@
"start": "npm run clean:log && npm run doc && npm run build && node src/index.js",
"start:prod": "npm run clean:log && npm run doc && npm run build && while [ true ]; do node src/index.js; sleep 5; done",
"build": "npm run build:assets && npm run build:js",
"build:assets": "mkdir -p build && cp src/website/*.html node_modules/bootstrap/dist/css/bootstrap.min.css node_modules/bootstrap/dist/js/bootstrap.min.js node_modules/jquery-slim/dist/jquery.slim.min.js node_modules/popper.js/dist/umd/popper.min.js build/",
"build:assets": "mkdir -p build && cp -r src/website/*.html src/website/img node_modules/bootstrap/dist/css/bootstrap.min.css node_modules/bootstrap/dist/js/bootstrap.min.js node_modules/jquery-slim/dist/jquery.slim.min.js node_modules/popper.js/dist/umd/popper.min.js build/",
"build:js": "simplifyify --minify --outfile build/index.min.js src/website/index.js",
"test": "echo \"Error: no test specified\" && exit 1",
"doc": "apidoc -i src/ -o doc/",
......@@ -31,6 +31,6 @@
"simplifyify": "^7.0.6"
},
"apidoc": {
"title": "OpenStreetMap for OpenDataFrance"
"title": "GeoDataMine"
}
}
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="128"
height="128"
viewBox="0 0 33.866666 33.866668"
version="1.1"
id="svg1209"
inkscape:version="0.92.4 5da689c313, 2019-01-14"
sodipodi:docname="geodatamine.svg"
inkscape:export-filename="/home/adrien/Stockage/my.pavie.info/Micro-entreprise/Clients/OpenDataFrance/Technique/geodatamine.png"
inkscape:export-xdpi="384"
inkscape:export-ydpi="384">
<defs
id="defs1203" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="3.959798"
inkscape:cx="38.82208"
inkscape:cy="69.91029"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
inkscape:window-width="1920"
inkscape:window-height="1015"
inkscape:window-x="0"
inkscape:window-y="452"
inkscape:window-maximized="1" />
<metadata
id="metadata1206">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-263.13332)">
<g
id="g1800"
transform="matrix(0.3910593,0,0,0.3910593,-15.880732,238.41884)">
<path
sodipodi:nodetypes="cccccccccccccsscsssscsscccccccccccc"
id="path815-3-6"
d="M 106.08903,100.86032 V 96.191203 H 94.416228 v 4.669117 h -4.66911 v -4.669117 h -11.6728 v 4.669117 H 73.4052 V 96.191203 H 61.732409 v 4.669117 h -4.66912 v -7.003679 c 0,-1.289341 1.04522,-2.334559 2.33456,-2.334559 h 5.8364 v -7.003674 c 0,-1.289342 1.04521,-2.334559 2.33455,-2.334559 h 32.683831 c 1.28934,0 2.33456,1.045217 2.33456,2.334559 v 7.003674 h 5.8364 c 1.28934,0 2.33455,1.045218 2.33455,2.334559 v 7.003679 z M 86.245279,86.852965 v 4.669117 h 11.672792 v -4.669117 z m -16.34192,4.669117 H 81.576161 V 86.852965 H 69.903359 Z"
inkscape:connector-curvature="0"
style="fill:#b17c00;fill-opacity:1;fill-rule:evenodd;stroke-width:1.16727936" />
<rect
ry="0"
y="96.1912"
x="61.732399"
height="4.6691208"
width="11.67279"
id="rect868-2"
style="fill:#ffcb05;fill-opacity:1;stroke:none;stroke-width:0.5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" />
<rect
ry="0"
y="86.852966"
x="69.903358"
height="4.6691213"
width="11.67279"
id="rect868-6-6"
style="fill:#ffcb05;fill-opacity:1;stroke:none;stroke-width:0.5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" />
<rect
ry="0"
y="86.852966"
x="86.245277"
height="4.6691213"
width="11.67279"
id="rect868-7-1"
style="fill:#ffcb05;fill-opacity:1;stroke:none;stroke-width:0.5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" />
<rect
ry="0"
y="96.191208"
x="78.074318"
height="4.6691213"
width="11.67279"
id="rect868-5-8"
style="fill:#ffcb05;fill-opacity:1;stroke:none;stroke-width:0.5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" />
<rect
ry="0"
y="96.1912"
x="94.416237"
height="4.6691213"
width="11.67279"
id="rect868-3-7"
style="fill:#ffcb05;fill-opacity:1;stroke:none;stroke-width:0.5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" />
<path
sodipodi:nodetypes="cccccc"
id="path815-9-0"
d="m 73.9747,135.80079 h 19.872039 l 12.915081,-6.56691 6.8676,-23.68898 H 54.192009 l 6.8676,23.68898"
inkscape:connector-curvature="0"
style="fill:#cdcdcd;fill-opacity:1;fill-rule:evenodd;stroke-width:1.16727936" />
<path
sodipodi:nodetypes="ccssccsscccccccccc"
id="path815-93"
d="m 56.845149,131.67297 -7.45635,-26.12807 h -0.49647 c -1.28934,0 -2.33456,-1.04521 -2.33456,-2.33455 0,-1.28935 1.04522,-2.33456 2.33456,-2.33456 H 118.9291 c 1.28934,0 2.33456,1.04521 2.33456,2.33456 0,1.28934 -1.45237,3.27484 -2.33456,2.33455 h -0.49647 l -7.45634,26.12807 -17.663221,8.79693 H 74.508359 M 73.9747,135.80079 h 19.872039 l 12.915081,-6.56691 6.8676,-23.68898 H 54.192009 l 6.8676,23.68898"
inkscape:connector-curvature="0"
style="fill:#424242;fill-opacity:1;fill-rule:evenodd;stroke-width:1.16727936" />
<path
inkscape:connector-curvature="0"
d="m 74.193151,117.72895 c 0,2.17422 0.743018,4.31292 2.093129,6.01908 l 7.624821,9.58587 7.620968,-9.58201 c 1.35319,-1.71002 2.096212,-3.84872 2.096212,-6.02294 0,-5.3587 -4.360032,-9.71717 -9.71718,-9.71717 -5.358702,0 -9.71795,4.35847 -9.71795,9.71717 z m 6.094769,0 c 0,-1.99811 1.624291,-3.6224 3.622411,-3.6224 1.996577,0 3.622418,1.62429 3.622418,3.6224 0,1.99658 -1.625841,3.62242 -3.622418,3.62242 -1.997343,7.9e-4 -3.622411,-1.62506 -3.622411,-3.62242 z"
id="path828-6"
style="fill:#2574a9;fill-opacity:1;stroke-width:0.77236921" />
<circle
r="7.4227581"
cy="137.67908"
cx="65.190544"
id="path972-9"
style="fill:#cdcdcd;fill-opacity:1;stroke:#0c0c0c;stroke-width:5.93820715;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" />
<circle
r="7.4227581"
cy="137.67908"
cx="102.63088"
id="path972-2-2"
style="fill:#cdcdcd;fill-opacity:1;stroke:#0c0c0c;stroke-width:5.93820715;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" />
<path
sodipodi:nodetypes="csssscc"
id="path815-5-0"
d="m 121.26366,145.13207 c 1.28934,0 2.33456,1.04522 2.33456,2.33456 0,1.28934 -1.04522,2.33456 -2.33456,2.33456 H 46.557769 c -1.28934,0 -2.33456,-1.04522 -2.33456,-2.33456 0,-1.28934 1.04522,-2.33456 2.33456,-2.33456 z"
inkscape:connector-curvature="0"
style="fill:#424242;fill-opacity:1;fill-rule:evenodd;stroke-width:1.16727936" />
<path
transform="rotate(-15.775379,139.42862,167.15881)"
inkscape:transform-center-y="-0.31179709"
inkscape:transform-center-x="0.30671368"
d="m 81.784473,69.286357 -3.184091,-4.931428 -5.769437,-1.082136 4.931428,-3.184092 1.082136,-5.769437 3.184092,4.931428 5.769437,1.082136 -4.931428,3.184092 z"
inkscape:randomized="0"
inkscape:rounded="0"
inkscape:flatsided="false"
sodipodi:arg2="2.1622353"
sodipodi:arg1="1.3768372"
sodipodi:r2="3.0743258"
sodipodi:r1="7.6265535"
sodipodi:cy="61.802811"
sodipodi:cx="80.314491"
sodipodi:sides="4"
id="path1012-22"
style="fill:#ffcb05;fill-opacity:1;stroke:none;stroke-width:8;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill"
sodipodi:type="star" />
<path
transform="rotate(-4.2975293,192.41618,185.54888)"
inkscape:transform-center-y="-0.36659439"
inkscape:transform-center-x="0.23853553"
d="m 81.784473,69.286357 -3.184091,-4.931428 -5.769437,-1.082136 4.931428,-3.184092 1.082136,-5.769437 3.184092,4.931428 5.769437,1.082136 -4.931428,3.184092 z"
inkscape:randomized="0"
inkscape:rounded="0"
inkscape:flatsided="false"
sodipodi:arg2="2.1622353"
sodipodi:arg1="1.3768372"
sodipodi:r2="3.0743258"
sodipodi:r1="7.6265535"
sodipodi:cy="61.802811"
sodipodi:cx="80.314491"
sodipodi:sides="4"
id="path1012-1-8"
style="fill:#ffcb05;fill-opacity:1;stroke:none;stroke-width:8;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill"
sodipodi:type="star" />
</g>
</g>
</svg>
This diff is collapsed.
This diff is collapsed.
<!DOCTYPE html5>
<html>
<head>
<title>OpenStreetMap via OpenDataFrance</title>
<title>GéoDataMine</title>
<meta charset="utf-8" />
<meta name="description" content="Extraction simplifiée de données OpenStreetMap pour votre territoire" />
<meta name="keywords" content="openstreetmap, osm, data, données, extraction, extract" />
......@@ -10,18 +10,22 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="bootstrap.min.css" />
<link rel="icon" type="image/png" href="img/favicon.png" />
</head>
<body>
<nav class="navbar navbar-expand-md navbar-light bg-light mb-3">
<div class="container">
<a class="navbar-brand" href="#">Osm4Odf</a>
<a class="navbar-brand" href="/">
<img src="img/geodatamine.svg" width="30" height="30" class="d-inline-block align-top" alt="" />
GéoDataMine
</a>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="/doc">API</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Code source</a>
<a class="nav-link" href="https://framagit.org/PanierAvide/GeoDataMine">Code source</a>
</li>
</div>
</div>
......@@ -29,69 +33,92 @@
</nav>
<div class="container">
<p>Cet outil facilite l'extraction de données thématiques depuis OpenStreetMap, sous la forme de fichiers standards (CSV, GeoJSON, Shapefile). Les données sont actualisées quotidiennement.</p>
<h2>Extraire des données</h2>
<div id="form-load" class="text-center">
<div class="spinner-border text-primary" role="status">
<span class="sr-only">Chargement en cours...</span>
</div>
</div>
<div id="form-extract" class="d-none">
<div class="form-group">
<label for="theme">Thématique</label>
<select id="theme" class="form-control"></select>
</div>
<div class="form-group">
<label for="boundary-search">Territoire</label>
<div class="dropdown">
<input type="text" class="form-control dropdown-toggle" id="boundary-search" data-toggle="dropdown" data-display="static" placeholder="Nom d'une commune, EPCI, canton..." />
<div class="dropdown-menu" id="boundary-suggestions">
<a class="dropdown-item disabled">Tapez un nom pour lancer la recherche</a>
</div>
<div class="jumbotron">
<h2>Extraire des données OpenStreetMap</h2>
<div id="form-load" class="text-center">
<div class="spinner-border text-primary" role="status">
<span class="sr-only">Chargement en cours...</span>
</div>
</div>
<div id="form-extract" class="d-none">
<div class="form-group">
<label for="theme">Thématique</label>
<select id="theme" class="form-control"></select>
</div>
<div id="options" class="collapse">
<div class="form-group">
<label for="format">Format de fichier</label>
<select id="format" class="form-control">
<option value="csv" selected>Tableur CSV</option>
<option value="geojson">GeoJSON</option>
<option value="shapefile">ESRI Shapefile</option>
</select>
<label for="boundary-search">Territoire</label>
<div class="dropdown">
<input type="text" class="form-control dropdown-toggle" id="boundary-search" data-toggle="dropdown" data-display="static" placeholder="Nom d'une commune, EPCI, canton..." />
<div class="dropdown-menu" id="boundary-suggestions">
<a class="dropdown-item disabled">Tapez un nom pour lancer la recherche</a>
</div>
</div>
</div>
<div class="form-check mb-3">
<input class="form-check-input" type="checkbox" id="aspoint" checked />
<label class="form-check-label" for="aspoint">
Tout simplifier sous forme de points
</label>
<div id="options" class="collapse">
<div class="form-group">
<label for="format">Format de fichier</label>
<select id="format" class="form-control">
<option value="csv" selected>Tableur CSV</option>
<option value="geojson">GeoJSON</option>
<option value="shapefile">ESRI Shapefile</option>
</select>
</div>
<div class="form-check mb-3">
<input class="form-check-input" type="checkbox" id="aspoint" checked />
<label class="form-check-label" for="aspoint">
Tout simplifier sous forme de points
</label>
</div>
<div class="form-group">
<label for="radius">Rayon de recherche</label>
<input type="range" class="custom-range" id="radius" min="0" max="50" value="0" />
<small id="radius-val" class="form-text text-muted">Emprise de la zone sélectionnée</small>
</div>
</div>
<div class="form-group">
<label for="radius">Rayon de recherche</label>
<input type="range" class="custom-range" id="radius" min="0" max="50" value="0" />
<small id="radius-val" class="form-text text-muted">Emprise de la zone sélectionnée</small>
<div class="text-center">
<a id="launch" class="btn btn-primary disabled" href="" role="button">Télécharger</a>
<button id="options-toggle" class="btn btn-secondary" type="button" data-toggle="collapse" data-target="#options" aria-expanded="false" aria-controls="options">
Paramètres avancés
</button>
</div>
</div>
<div class="text-center">
<a id="launch" class="btn btn-primary disabled" href="" role="button">Télécharger</a>
<button id="options-toggle" class="btn btn-secondary" type="button" data-toggle="collapse" data-target="#options" aria-expanded="false" aria-controls="options">
Paramètres avancés
</button>
<div id="permabloc" class="form-group">
<label for="radius">Lien permanent</label>
<input class="form-control" id="permalink" type="text" placeholder="Readonly input here..." readonly>
</div>
</div>
</div>
<div id="permabloc" class="form-group">
<label for="radius">Lien permanent</label>
<input class="form-control" id="permalink" type="text" placeholder="Readonly input here..." readonly>
<h2 class="mt-3">À propos</h2>
<div class="media">
<img src="img/geodatamine.svg" class="align-self-center mr-3" height="128" alt="">
<div class="media-body align-self-center">
<p class="mb-0">GéoDataMine facilite l'extraction de données thématiques depuis OpenStreetMap, sous la forme de fichiers tableurs ou géographiques. <a href="https://www.openstreetmap.org/">OpenStreetMap</a> est une base de données géographique collaborative, l'équivalent de Wikipédia pour la cartographie. On y trouve toutes sortes d'informations : routes, bâtiments, commerces, services publics... Il est simple de participer, mais pas si facile de télécharger des données d'une thématique spécifique sur son territoire. D'où cet assistant très simple ! Les données sont actualisées quotidiennement, et rendues disponibles aux formats CSV, GeoJSON et Shapefile.</p>
</div>
</div>
<h2 class="mt-3">Mentions légales</h2>
<p>Données sous licence ODbL <a href="https://www.openstreetmap.org/copyright">&copy; contributeurs OpenStreetMap</a><br />Site web réalisé par <a href="https://pavie.info">Adrien Pavie</a> pour OpenDataFrance</p>
<h3 class="mt-3">Je souhaite améliorer les données</h3>
<p>Vous avez détecté des manques ou des incohérences dans les données ? Vous pouvez participer à les améliorer ! OpenStreetMap est une carte collaborative, la richesse des données dépend donc de la contribution de chacun. Envie de contribuer ? Voici quelques liens pour vous aiguiller :</p>
<ul>
<li><a href="https://www.openstreetmap.org/edit">L'éditeur OpenStreetMap</a> (se créer un compte au préalable)</a></li>
<li><a href="http://www.openstreetmap.fr/">L'association OpenStreetMap France</a></li>
<li><a href="https://switch2osm.org/">Switch2OSM (passer à OpenStreetMap)</a></li>
</ul>
<h3>Mentions légales</h3>
<p>Site web réalisé par <a href="https://pavie.info">Adrien Pavie</a> pour <a href="http://www.opendatafrance.net/">OpenDataFrance</a>
<br />Données sous licence ODbL <a href="https://www.openstreetmap.org/copyright">&copy; contributeurs OpenStreetMap</a></p>
<div class="mb-3 d-flex justify-content-around align-items-center">
<img src="img/openstreetmap.svg" height="100" title="OpenStreetMap" alt="" />
<img src="img/opendatafrance.svg" height="70" title="OpenDataFrance" alt="" />
<img src="img/adrienpavie.svg" height="50" title="Adrien Pavie" alt="" />
</div>
</div>
<script src="jquery.slim.min.js"></script>
......
{
"lockfileVersion": 1
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment