On Wed, Jan 7, 2009 at 4:25 PM, Frederik Ramm <span dir="ltr"><<a href="mailto:frederik@remote.org">frederik@remote.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I played around with the enableDateParsing option and found:<br>
<br>
$ time osmosis --rx testfile.osm enableDateParsing=yes --wx out.osm<br>
Jan 8, 2009 1:12:50 AM com.bretth.osmosis.core.Osmosis main<br>
INFO: Osmosis Version 0.29<br>
[...]<br>
Jan 8, 2009 1:13:10 AM com.bretth.osmosis.core.Osmosis main<br>
INFO: Pipeline complete.<br>
<br>
real 0m20.456s<br>
user 0m19.420s<br>
sys 0m1.290s<br>
$<br>
<br>
$ time osmosis --rx testfile.osm enableDateParsing=no --wx out.osm<br>
Jan 8, 2009 1:16:55 AM com.bretth.osmosis.core.Osmosis main<br>
INFO: Osmosis Version 0.29<br>
[...]<br>
Jan 8, 2009 1:17:15 AM com.bretth.osmosis.core.Osmosis main<br>
INFO: Pipeline complete.<br>
<br>
real 0m20.061s<br>
user 0m20.460s<br>
sys 0m0.930s<br>
$<br>
<br>
How can this be explained? I would have expected a significant, or at<br>
least noticeable, difference between running with and without date<br>
parsing! (I tried "enableDateParsing=foobar" just to make sure Osmosis<br>
recognizes the option, and it does complain that foobar is not a yes/no<br>
value...)<br>
<br>
Bye<br>
Frederik<br>
</blockquote></div><br>Brett changed it a while ago where the timestamps are preserved as strings instead of parsed into Date objects. So now, I think enableDateParsing=no will put in dummy timestamps. If you leave date parsing enabled (it is by default) and your original timestamps are in "standard" (ISO) format, then it will just pass the strings through unmodified.<br>
<br>Karl<br>