Skip to content

Country report Guiné Bissau

Peter edited this page Aug 14, 2018 · 1 revision

Guinea-Bissau: ISO GW, sources.

The filtered elements with the wikidata tag (a Wikidata-ID value wd_id), in July 2018, showed the foloweing profile, about "direct use of the wikidata-tag".

element_type Elements with wd_id With distinct wd_id % distincts
n 42 42 100
r 43 42 98
w 30 30 100

The most common reason for wd_id duplication is by tagging fragments, that is, the parts instead the whole. In this case, no significative distonct percentage.

Way (w) and relation (r) elements with members that have wikidata-tag, represents indirect use. The "feature type" is expressed by type and higthway tags, splitting the profile:

osm_type feature_type n_direct n_total Directs
n 42 42 100%
r boundary 32 32 100%
r multipolygon 6 7 86%
r waterway 4 4 100%
r route 1 1 100%
w 23 1077 2%
w residential 6 6 100%
w tertiary 1 4 25%
w primary 0 77 0%

Prepare

Procedures described by simple-osmWd2csv:

wget https://download.geofabrik.de/africa/guinea-bissau-latest.osm.pbf

osmium tags-filter guinea-bissau-latest.osm.pbf nwr/wikidata -o GW_wd.osm

sh src/step1-osmWd2csv_pre.sh < GW_wd.osm | php src/step2-osmWd2csv.php > /tmp/GW_wd.raw.csv

psql -U postgres work < src/step0-osmWd_lib.sql

psql -U postgres work < src/step3-osmWd_parseRaw.sql
Clone this wiki locally