This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

osmconvert -filter gives back a pure non-sense result

-1

did a request with the following

in order to filter & gather the schools - but believe me: the results in the cal-sheets were looking like pure none - sense...

update: thanks to someoneElse i have corrected the code for the request regarding danish shools:

./osmconvert denmark-latest.osm.pbf -o=denmark.o5m
./osmfilter denmark.o5m --keep="amenity=school" -o=denmarkschools.o5m
./osmconvert denmarkschools.o5m --csv="@id @lon @lat name addr:street addr:housenumber addr:city website email" --csv-headline -o=denmarkschools_3.csv

now the results are a bit better!!!

end of the update: see the code:

denmark

./osmconvert denmark-latest.osm.pbf -o=denmark.o5m
./osmfilter denmark.o5m --keep="amenity=school" -o=denmarkschools.o5m
./osmconvert denmarkschools.o5m --csv="@id @lon @lat restaurant:name addr:street addr:housenumber addr:city website email" --csv-headline -o=denmarkschools_2.csv
--csv-headline -o=denmarkschools_2.csv

luxembourg

./osmconvert luxembourg-latest.osm.pbf -o=luxembourg-schools.o5m
./osmfilter luxembourg-schools.o5m --keep="amenity=school" -o=luxschools.o5m
./osmconvert luxschools.o5m --csv="@id @lon @lat schools:name addr:street addr:housenumber addr:city website email" --csv-headline -o=luxschools_2.csv

hamburg: ./osmconvert hamburg-latest.osm.pbf -o=hh-schools.o5m ./osmfilter hh-schools.o5m --keep="amenity=school" -o=all_hh_schools.o5m ./osmconvert all_hh_schools.o5m --csv="@id @lon @lat schools:name addr:street addr:housenumber addr:city website email" --csv-headline -o=all_hh_schools_2.csv

i have no glue why !?

any help will be greatly appreciated

asked 17 Jun '14, 18:30

say_hello_to_the_world's gravatar image

say_hello_to...
19232427
accept rate: 0%

edited 17 Jun '14, 20:53

1

So you're extracting "restaurant:name" for Danish Schools? This seems a somewhat odd thing to do - taginfo only finds one:

http://taginfo.openstreetmap.org/keys/restaurant:name

Can you define "crap"?

(17 Jun '14, 18:50) SomeoneElse ♦

hello many thanks - you mean that i have a consistency-error; I will have a closer look at the lines....

(17 Jun '14, 20:28) say_hello_to...
1

updated the danish code - now the results look like a bit better... many thanks . conclusion,. it looks that i have made a systematic error - that i have written bad bad requests...

(17 Jun '14, 20:54) say_hello_to...

Source code available on GitHub .