NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

-3
1

hello

update; - i want to gather the latest 100 records that have the amenity=school - school from

a. south-america -(yes - the whole continent) 
b. Africa 
c. the planet - (guess that my notebook do not will do this job - the file is toooo big.

So as a first step i am willing to start with South-America.

According the manual here http://m.m.i24.cc/osmconvert.c I THINK THAT i can use some of the following terms to get the right data out of the bunch of data.

"--timestamp=<date_time>   add a timestamp to the data\n"
"--timestamp=NOW-<seconds> add a timestamp in seconds before now\n"
"--out-timestamp           **output the file\'s timestamp, nothing else\n"**

and if i want to gather all the results that contain a webseite then

a.  i reduce the new entries and records to a minimum - 
note we have approx 1000 new records..
b.  the question is : how to name this condition - " have a website" ?

i want to do this with osmconvert.... any and all help will be greatly appreciated. Question: i wonder where i can use the drop-statement. If it will be used very early then i can limit the amount of data that has to be parsed. What do you think !? Does this make sense..!?

See below - my first trials which are very very general... and not very sophisticatde --- lo-level-processing;-)

end of update:

i am pretty new to Geographic-information Systems so do not bear with me if i ask newby questions: i am interested in gatherin information on schools Some days before i have heard that it is interesting to have a closer look at the taginfo-site (see below): i have question: what does this mean https://taginfo.openstreetmap.org/tags/amenity=school

here we have two requests on the above site:

see the details:

593 454 - at 30 th of june 
593 319
593 194
592 853
592 443 - at 24 th of june

1000 records

you see: the results differs: approx 1000 x (entries, records or some what)

questions:

a. is it true that we can see the diff - that means how the entries of schools grow? b. is there a total growth of records (!!!) of schools or does the this mean - some records have been changed!? c. can i grab the neewst ones -- that are the newest entires with osmonvert?

look forward to hear from you

btw i have this code up and running...

 wget http://download.geofabrik.de/south-america/colombia-latest.osm.pbf
./osmconvert colombia-latest.osm.pbf -o=columbia.o5m
./osmfilter columbia.o5m --keep="amenity=school" -o=columbia-schools.o5m
./osmconvert columbia-schools.o5m --all-to-nodes -o=columbia-schools_nodes.o5m
./osmfilter columbia-schools_nodes.o5m --keep="amenity=school" -o=columbia-schools-results.o5m
./osmconvert columbia-schools-results.o5m --csv="@id @lon @lat name addr:street addr:housenumber addr:city website email" --csv-headline -o=columbia-schools-results.csv

asked 30 Jun '14, 23:44

say_hello_to_the_world's gravatar image

say_hello_to...
19232427
accept rate: 0%

edited 01 Jul '14, 19:37

3
(01 Jul '14, 14:36) scai ♦

hello dear scai - right said! well at the moment i try to find a way to get with osmconvert the latest records - from a osm-files. i try to figure out how to do that... hopefully osmconvert will provide some ways - other wise i have to use another technique or what do you suggest. note. i am not familiar with much of the others - with java or java-script

(01 Jul '14, 18:07) say_hello_to...
1

If you struggle with osmconvert then try asking a question about osmconvert including what you have tried, what result you are expecting and what actual result or error message you got. Your current question is not very clear.

(01 Jul '14, 18:23) scai ♦

hello dear scai - many many thanks for the response. i ve added a update. You see i have made some efforts - and figured out which conditions i need to have in the osmconvert-request. i ve digged into the man-pages. and i have found out that we can use the timestamp to do the magic. Additionally - i want to exclude all the new records (that are within ) the new time-zone of let me say one or two weeks - which have no website... so this will limit the results to a minimum - note we ve got (sometimes )a rate of 1 -to-10 percent of records that contain a website. so we need to take 1000 records

(01 Jul '14, 19:26) say_hello_to...

if we take the timestamp that lies in the past let me say the last one or two weeks - then we usually gather more than 1000 records (in the global file) - and if wie drop all those records that do not contain a website - then we get - approx 100 in the results... what do you say? Now i try to make the posting above a bit more concrete. And i would be more than happy if you can show me how i got stuck - so that i can finally go there and write down the full osmconvert request. - Scai i look forward to any and all help - greetings say helloi

(01 Jul '14, 19:29) say_hello_to...
1

I'm not a friend of editing the question over and over again. This doesn't make things clearer.

(01 Jul '14, 19:49) scai ♦

hmm - i understand. what should i do now... i think that i have some dificulties in expressing the necesary conditions in a osmconvert-request. the tooolchain is a bit tricky - what do you say. in short; i need to gather the latest 100 records from south america - best would be a relatively full dataset (therefore in want to exclude all non-website-records) .... Guess that i need to add a timestamp into the search-request. BTW - did not take into account if this would be gained with overpasss-api - too

(01 Jul '14, 20:00) say_hello_to...
showing 5 of 7 show 2 more comments
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×710
×84
×30
×20
×5

question asked: 30 Jun '14, 23:44

question was seen: 7,048 times

last updated: 01 Jul '14, 20:00

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum