[OSM-talk] Osmosis and --rii
I'm using osmosis to download replicate diffs via the --rii task and write them out to change files using --wxc. Is there any way to have osmosis name the output file with the sequence ID or timestamp of the last replicate it downloaded? I'm using a script to name them with the current system timestamp when osmosis was invoked, but that's not the timestamp of when they were committed on the osm server. -Jeremy ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Osmosis and --rii
Hi, Jeremy Adams wrote: I'm using osmosis to download replicate diffs via the --rii task and write them out to change files using --wxc. Is there any way to have osmosis name the output file with the sequence ID or timestamp of the last replicate it downloaded? I'm using a script to name them with the current system timestamp when osmosis was invoked, but that's not the timestamp of when they were committed on the osm server. Why not modify your script to let osmosis write to a temp .osc file and then rename that according to what Osmosis put into its state.txt file? Bye Frederik -- Frederik Ramm ## eMail frede...@remote.org ## N49°00'09 E008°23'33 ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Osmosis and --rii
Hi, Jeremy Adams wrote: I'm using osmosis to download replicate diffs via the --rii task and write them out to change files using --wxc. Is there any way to have osmosis name the output file with the sequence ID or timestamp of the last replicate it downloaded? I'm using a script to name them with the current system timestamp when osmosis was invoked, but that's not the timestamp of when they were committed on the osm server. Why not modify your script to let osmosis write to a temp .osc file and then rename that according to what Osmosis put into its state.txt file? Bye Frederik That's my plan B. I'm not a superstar when it comes to bash, so I'll have to do some research on how to read the state.txt file and pull the sequence number out. -Jeremy ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Osmosis and --rii
Hi, Jeremy Adams wrote: That's my plan B. I'm not a superstar when it comes to bash, so I'll have to do some research on how to read the state.txt file and pull the sequence number out. SEQUENCE=`grep sequenceNumber state.txt|cut -d= -f2` mv osmosis-out.osc $SEQUENCE.osc Bye Frederik -- Frederik Ramm ## eMail frede...@remote.org ## N49°00'09 E008°23'33 ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Osmosis and --rii
Jeremy Adams wrote: That's my plan B. I'm not a superstar when it comes to bash, so I'll have to do some research on how to read the state.txt file and pull the sequence number out. SEQUENCE=`grep sequenceNumber state.txt|cut -d= -f2` mv osmosis-out.osc $SEQUENCE.osc Bye Frederik Many thanks - works perfectly. -Jeremy ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk