From 8f40a7687831b0e53cb4f26eb7b6f229e3faff83 Mon Sep 17 00:00:00 2001 From: sabas Date: Sun, 20 Dec 2015 15:56:31 +0100 Subject: [PATCH] Fixes, complete english translation, Readme --- README.md | 27 +++++++++----------- html/locales/en.ini | 8 ------ html/locales/en.json | 20 +++++++-------- html/locales/it.ini | 17 ------------- html/locales/it.json | 8 +++--- html/stats.php | 46 ----------------------------------- html/views/extract.php | 2 +- html/views/extractAndList.php | 2 +- html/views/temp.php | 3 --- 9 files changed, 27 insertions(+), 106 deletions(-) delete mode 100644 html/locales/en.ini delete mode 100644 html/locales/it.ini delete mode 100644 html/stats.php delete mode 100644 html/views/temp.php diff --git a/README.md b/README.md index 929e326..504a512 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/html/locales/en.ini b/html/locales/en.ini deleted file mode 100644 index 454a0e9..0000000 --- a/html/locales/en.ini +++ /dev/null @@ -1,8 +0,0 @@ -SITE_TITLE=OpenStreetMap Extracts -ABOUT=About -CONTACTS=Contacts -LANGUAGE=Language -List=List -AVAILABLE_REGIONS=of available Regions -Extracts=Extracts -MUNICIPALITIES_IN_PROVINCE=of Municipalities in Province of diff --git a/html/locales/en.json b/html/locales/en.json index 6ed30f5..2de9961 100644 --- a/html/locales/en.json +++ b/html/locales/en.json @@ -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 OpenStreetMap. They are free to download under the ODbL license terms, they were extracted at", "JUMBO_2":"CET of", -"JUMBO_3_REGION":"e vengono aggiornati ogni giorno. Questo significa che, una modifica fatta adesso, comparirà negli estratti di domani. Partecipa 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. Partecipa 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.

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. Join us 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. Join us 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.

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":"Serve aiuto? contattaci!", -"ABOUT_3":"Gli estratti sono creati usando il planet italiano reso disponibile da GeoFabrik, processati su hardware reso disponibile da Wikimedia Foundation, usando questa 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":"Do you need help? Contact us!", +"ABOUT_3":"The extracts are created from the italian planet file made available by GeoFabrik, processed on hardware made available by Wikimedia Foundation, using this 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.", diff --git a/html/locales/it.ini b/html/locales/it.ini deleted file mode 100644 index fdec0d8..0000000 --- a/html/locales/it.ini +++ /dev/null @@ -1,17 +0,0 @@ -OSM_EXTRACTS=Estratti OpenStreetMap -ABOUT=About -CONTACTS=Contatti -LANGUAGE=Lingua -List=Lista -AVAILABLE_REGIONS=delle Regioni disponibili -Extracts=Estratti -MUNICIPALITIES_IN_PROVINCE=dei Comuni della Provincia di -PROVINCE_IN_REGION=Lista delle province in -PROVINCE_IN_REGION_HELP=Se necessiti degli estratti comunali, puoi scegliere una provincia dall''elenco sottostante. -DOWNLOAD_AND_STATISTICS=Statistiche e Download -JUMBO_INTRO_REGION=Questa è la pagina della Regione -JUMBO_INTRO_MUNICIPALITY=Questa è la pagina del Comune di -JUMBO_1=, contiene i dati geografici del database di OpenStreetMap. Sono disponibili per il download gratuito secondo i termini della Licenza ODbL, sono stati estratti alle -JUMBO_2=CET del -JUMBO_3_REGION=e vengono aggiornati ogni giorno. Questo significa che, una modifica fatta adesso, comparirà negli estratti di domani. Partecipa 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. Partecipa e migliora la mappa del tuo Comune! diff --git a/html/locales/it.json b/html/locales/it.json index 4124d61..f0d6f74 100644 --- a/html/locales/it.json +++ b/html/locales/it.json @@ -16,9 +16,9 @@ "JUMBO_2":"CET del", "JUMBO_3_REGION":"e vengono aggiornati ogni giorno. Questo significa che, una modifica fatta adesso, comparirà negli estratti di domani. Partecipa 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. Partecipa 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.

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.

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", @@ -26,7 +26,7 @@ "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":"Serve aiuto? contattaci!", -"ABOUT_3":"Gli estratti sono creati usando il planet italiano reso disponibile da GeoFabrik, processati su hardware reso disponibile da Wikimedia Foundation, usando questa toolchain.", +"ABOUT_3":"Gli estratti sono creati usando il planet italiano reso disponibile da GeoFabrik, processati su hardware reso disponibile da Wikimedia Foundation, usando questa 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.", diff --git a/html/stats.php b/html/stats.php deleted file mode 100644 index 7d32315..0000000 --- a/html/stats.php +++ /dev/null @@ -1,46 +0,0 @@ - - - - - -
-
-
-
-
-
-
-
- $value) {
-	echo "";
-	echo "\n";
-	echo "\n";
-	echo "\n";
-	echo "\n";
-	echo "\n";
-	echo "\n";
-	echo "\n";
-}
-
-pg_close($conn);
-
-?>
-
-
-
diff --git a/html/views/extract.php b/html/views/extract.php
index a222a24..223b482 100644
--- a/html/views/extract.php
+++ b/html/views/extract.php
@@ -3,7 +3,7 @@
 
     
ComuneNum. edificiNum. civiciNum. segmenti stradeLunghezza strade (metri)Numero segmenti strade con nomeLunghezza strade con nome (metri)
$key". $stats[$key]['buildings'] . "". $stats[$key]['civici'] . "". $stats[$key]['highway_tot'] . "". $stats[$key]['highway_len_tot'] . "". $stats[$key]['highway_nome'] . "". $stats[$key]['highway_len_nome'] . "