Skip to content

Commit

Permalink
Fixes, complete english translation, Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sabas committed Dec 20, 2015
1 parent daed8ac commit 8f40a76
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 106 deletions.
27 changes: 11 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
estratti-locali-openstreetmap
=============================

Estratti OpenStreetMap divisi per comune e regione, disponibili in formato SHP, OSM, PBF, Spatialite.
L'estratto è ritagliato alla minima bounding box nella quale ricade l'area richiesta, sono disponibili anche i confini amministrativi in formato POLY.
Italian OpenStreetMap Estracts splitted by region or municipality, available in formats: SHP, OSM, PBF, Spatialite.
The extract is cut at the bounding box enclosing the administrative border, and for each extract there's the POLY file of the relation.

Configurazione
---------
Requisites
-----

Eseguibili richiesti:
- perl
- php
- spatialite
- gdal
- osmosis
- osmium
- osmjs
The software is tested on an Ubuntu 14.04.3 machine, with following packages:

```osmjs ogr2ogr postgresql postgis osm2pgsql md5sum```

Perl libraries:

```XML::Simple I18N::Langinfo```

Nella cartella scripts/conf sono contenuti alcune configurazioni da sostituire nel sistema per generare o utilizzare gli estratti:
- osmconf.ini (/usr/share/gdal/1.10/osmconf.ini)
- config.js (/var/opt/osmium/osmjs/js/config.js)
- osmit.style (indifferente, deve esser passato a linea di comando)
8 changes: 0 additions & 8 deletions html/locales/en.ini

This file was deleted.

20 changes: 10 additions & 10 deletions html/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@
"EXTRACTS":"Extracts",
"MUNICIPALITIES_IN_PROVINCE":"of Municipalities in the Province of",
"PROVINCE_IN_REGION":"List of Provinces in",
"PROVINCE_IN_REGION_HELP":"If you are looking for the Se necessiti degli estratti comunali, puoi scegliere una provincia dall'elenco sottostante.",
"PROVINCE_IN_REGION_HELP":"If you are looking for the municipality extract, you can look for the province in the following list.",
"DOWNLOAD_AND_STATISTICS":"Statistics and Downloads",
"JUMBO_INTRO_REGION":"This is the webpage of the Region of",
"JUMBO_INTRO_MUNICIPALITY":"This is the webpage of the Municipality of",
"JUMBO_1":", it holds the geographic data from the database of <a href='https://www.openstreetmap.org/'>OpenStreetMap</a>. They are free to download under the <a href='http://www.openstreetmap.org/copyright'>ODbL</a> license terms, they were extracted at",
"JUMBO_2":"<span data-toggle='tooltip' data-placement='bottom' title='Central European Time'>CET</span> of",
"JUMBO_3_REGION":"e vengono aggiornati ogni giorno. Questo significa che, una modifica fatta adesso, comparirà negli estratti di domani. <a href='https://www.openstreetmap.org/'>Partecipa</a> e migliora la mappa della tua Regione!",
"JUMBO_3_MUNICIPALITY":"e vengono aggiornati ogni giorno. Questo significa che, una modifica fatta adesso, comparirà negli estratti di domani. <a href='https://www.openstreetmap.org/'>Partecipa</a> e migliora la mappa del tuo Comune!",
"DESC_DOWNLOAD_1_REGION":"Ogni giorno effettuiamo statistiche sui dati geografici della Regione",
"DESC_DOWNLOAD_1_MUNICIPALITY":"Ogni giorno effettuiamo statistiche sui dati geografici del Comune di",
"DESC_DOWNLOAD_2":", per verificare l'andamento del processo di mappatura OpenStreetMap. Confrontiamo quindi questi dati con i valori precedenti e visualizziamo i valori nella tabella qui sotto. <br /><br />I dati vengono ritagliati sul rettangolo che racchiude il confine amministrativo e resi disponibili in formato Pbf (protobuffer), SHP (Shapefile), Spatialite. Il file in formato SHP, per via delle sue limitazioni tecniche, contiene solo alcune tipologie di dati (layer). Tutti i file usano il sistema di riferimento WGS84.",
"JUMBO_3_REGION":"and are updated daily. This means that an edit made now will be visible in tomorrow extracts. <a href='https://www.openstreetmap.org/'>Join us</a> and improve the map of your Region!",
"JUMBO_3_MUNICIPALITY":"and are updated daily. This means that an edit made now will be visible in tomorrow extracts. <a href='https://www.openstreetmap.org/'>Join us</a> and improve the map of your municipality!",
"DESC_DOWNLOAD_1_REGION":"We make weekly statistics on the geographic data of the Region of",
"DESC_DOWNLOAD_1_MUNICIPALITY":"We make weekly statistics on the geographic data of the Municipality of",
"DESC_DOWNLOAD_2":", to check the mapping status in OpenStreetMap. We compare this data with the previous ones and we display the results in the below table. <br /><br />Data are cut on the rectangle enclosing the administrative border and are made available in the formats Pbf (protocik buffer), SHP (Shapefile), Spatialite. The file in SHP format, because of its technical limits, has only some class of data (layer). All the files are using the reference system WGS84.",
"DATA":"Date",
"STRADE":"Streets",
"CIVICI":"Housenumbers",
"EDIFICI":"Buildings",
"ABOUT_HEAD":"Estratti Locali OpenStreetMap, serviti freschi, ogni giorno",
"ABOUT_1":"Il nostro intento è quello di rendere disponibile un sistema semplice per permettervi di costruire prodotti che si fondano su OpenStreetMap. Per questo abbiamo deciso di ritagliare i dati in comuni e regioni, per facilitarvi il lavoro di sperimentazione.",
"ABOUT_2":"<b>Serve aiuto?</b> <a href='/estratti/contact/'>contattaci</a>!",
"ABOUT_3":"Gli estratti sono creati usando il planet italiano reso disponibile da <a href='http://geofabrik.de/'>GeoFabrik</a>, processati su hardware reso disponibile da <a href='http://wikimedia.org'>Wikimedia Foundation</a>, usando <a href='http://github.com/'>questa</a> toolchain.",
"ABOUT_HEAD":"Local OpenStreetMap extracts, served fresh, daily",
"ABOUT_1":"Our idea is to make available a system from which build OpenStreetMap-based products. For this reason we have decided to cut the country data in smaller areas like regions and municipalities: to simplify your experiments.",
"ABOUT_2":"<b>Do you need help?</b> <a href='/estratti/contact/'>Contact us</a>!",
"ABOUT_3":"The extracts are created from the italian planet file made available by <a href='http://geofabrik.de/'>GeoFabrik</a>, processed on hardware made available by <a href='http://wikimedia.org'>Wikimedia Foundation</a>, using <a href='https://github.com/osmItalia/estratti-locali-openstreetmap'>this</a> toolchain.",
"CONTACT_HEAD":"Contact us",
"CONTACT_JUMBO":"We want to enhance this service, write us your doubts, sugggestions or complaints.",
"CONTACT_OK":"Your message was successfully sent.",
Expand Down
17 changes: 0 additions & 17 deletions html/locales/it.ini

This file was deleted.

8 changes: 4 additions & 4 deletions html/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
"JUMBO_2":"<span data-toggle='tooltip' data-placement='bottom' title='Central European Time'>CET</span> del",
"JUMBO_3_REGION":"e vengono aggiornati ogni giorno. Questo significa che, una modifica fatta adesso, comparirà negli estratti di domani. <a href='https://www.openstreetmap.org/'>Partecipa</a> e migliora la mappa della tua Regione!",
"JUMBO_3_MUNICIPALITY":"e vengono aggiornati ogni giorno. Questo significa che, una modifica fatta adesso, comparirà negli estratti di domani. <a href='https://www.openstreetmap.org/'>Partecipa</a> e migliora la mappa del tuo Comune!",
"DESC_DOWNLOAD_1_REGION":"Ogni giorno effettuiamo statistiche sui dati geografici della Regione",
"DESC_DOWNLOAD_1_MUNICIPALITY":"Ogni giorno effettuiamo statistiche sui dati geografici del Comune di",
"DESC_DOWNLOAD_2":", per verificare l'andamento del processo di mappatura OpenStreetMap. Confrontiamo quindi questi dati con i valori precedenti e visualizziamo i valori nella tabella qui sotto. <br /><br />I dati vengono ritagliati sul rettangolo che racchiude il confine amministrativo e resi disponibili in formato Pbf (protobuffer), SHP (Shapefile), Spatialite. Il file in formato SHP, per via delle sue limitazioni tecniche, contiene solo alcune tipologie di dati (layer). Tutti i file usano il sistema di riferimento WGS84.",
"DESC_DOWNLOAD_1_REGION":"Ogni settimana effettuiamo statistiche sui dati geografici della Regione",
"DESC_DOWNLOAD_1_MUNICIPALITY":"Ogni settimana effettuiamo statistiche sui dati geografici del Comune di",
"DESC_DOWNLOAD_2":", per verificare l'andamento del processo di mappatura OpenStreetMap. Confrontiamo quindi questi dati con i valori precedenti e visualizziamo i valori nella tabella qui sotto. <br /><br />I dati vengono ritagliati sul rettangolo che racchiude il confine amministrativo e resi disponibili in formato Pbf (protocol buffer), SHP (Shapefile), Spatialite. Il file in formato SHP, per via delle sue limitazioni tecniche, contiene solo alcune tipologie di dati (layer). Tutti i file usano il sistema di riferimento WGS84.",
"DATA":"Data",
"STRADE":"Strade",
"CIVICI":"Civici",
"EDIFICI":"Edifici",
"ABOUT_HEAD":"Estratti Locali OpenStreetMap, serviti freschi, ogni giorno",
"ABOUT_1":"Il nostro intento è quello di rendere disponibile un sistema semplice per permettervi di costruire prodotti che si fondano su OpenStreetMap. Per questo abbiamo deciso di ritagliare i dati in comuni e regioni, per facilitarvi il lavoro di sperimentazione.",
"ABOUT_2":"<b>Serve aiuto?</b> <a href='/estratti/contact/'>contattaci</a>!",
"ABOUT_3":"Gli estratti sono creati usando il planet italiano reso disponibile da <a href='http://geofabrik.de/'>GeoFabrik</a>, processati su hardware reso disponibile da <a href='http://wikimedia.org'>Wikimedia Foundation</a>, usando <a href='http://github.com/'>questa</a> toolchain.",
"ABOUT_3":"Gli estratti sono creati usando il planet italiano reso disponibile da <a href='http://geofabrik.de/'>GeoFabrik</a>, processati su hardware reso disponibile da <a href='http://wikimedia.org'>Wikimedia Foundation</a>, usando <a href='https://github.com/osmItalia/estratti-locali-openstreetmap'>questa</a> toolchain.",
"CONTACT_HEAD":"Contattaci",
"CONTACT_JUMBO":"Vogliamo migliorare questo servizio, inviaci i tuoi dubbi, suggerimenti o lamentele.",
"CONTACT_OK":"Il tuo messaggio è stato inviato con successo.",
Expand Down
46 changes: 0 additions & 46 deletions html/stats.php

This file was deleted.

2 changes: 1 addition & 1 deletion html/views/extract.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<ol class="breadcrumb">
<li><a href="<?php echo $baseUrl; ?>"><span class="glyphicon glyphicon-folder-open" data-toggle="tooltip"
data-placement="bottom" title="navigazione" style="color:black;padding-right: 6px;"> </span><?php echo __('Extracts')?></a></li>
data-placement="bottom" title="navigazione" style="color:black;padding-right: 6px;"> </span><?php echo __('EXTRACTS')?></a></li>
<?php if (isset($region)) {
echo '<li><a href="'.$baseUrl.'/'.rawurlencode($region_safe).'/">'.$region.'</a></li>';
}
Expand Down
2 changes: 1 addition & 1 deletion html/views/extractAndList.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<div class="row">
<div class="col-md-12">
<h3 class="text-left text-primary"><?php echo __('PROVINCE_IN_REGION').' '.$region;?></h3>
<p><?php echo __('PROVINCE_IN_REGION');?></p>
<p><?php echo __('PROVINCE_IN_REGION_HELP');?></p>
<?php
$letter='';
$url=$baseUrl;
Expand Down
3 changes: 0 additions & 3 deletions html/views/temp.php

This file was deleted.

0 comments on commit 8f40a76

Please sign in to comment.