Hi,<br><br>Looking at this file<br><a href="https://github.com/gravitystorm/openstreetmap-license-change/blob/master/extract_loader.rb" target="_blank">https://github.com/gravitystorm/openstreetmap-license-change/blob/master/extract_loader.rb</a><br>
<br>It seems if we do not use the --file, --users-agreed nor --changesets-agreed options, this will import the whole history file into an apidb.<br>This looks promising !<br>I am not a ruby guy, so I will surely need some time to understand how to install and run this file, but I will give it a try. What about performance ? Does it handle a big history file ?<br>
<br>Michael<br><br><br><br><div class="gmail_quote">2012/10/25 Andy Allan <span dir="ltr"><<a href="mailto:gravitystorm@gmail.com" target="_blank">gravitystorm@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 23 October 2012 09:15, kimaidou <<a href="mailto:kimaidou@gmail.com" target="_blank">kimaidou@gmail.com</a>> wrote:<br>
> Hi Paul,<br>
><br>
> Thanks for pointing this out. I would say this file is the one you pointed :<br>
> <a href="https://github.com/gravitystorm/openstreetmap-license-change/blob/master/check_history.rb" target="_blank">https://github.com/gravitystorm/openstreetmap-license-change/blob/master/check_history.rb</a><br>
<br>
</div>It's actually a different file for loading history extracts into an<br>
apidb database:<br>
<br>
<a href="https://github.com/gravitystorm/openstreetmap-license-change/blob/master/extract_loader.rb" target="_blank">https://github.com/gravitystorm/openstreetmap-license-change/blob/master/extract_loader.rb</a><br>
<br>
There's a lot of stuff in there about license acceptance, which of<br>
course was more relevant to the original purpose of the script. Don't<br>
worry though, all the licensing stuff is only for calculating the<br>
agreed_time column in the users table - it doesn't affect the main<br>
output of nodes/ways/relations.<br>
<br>
As far as I'm aware, it's still the only code that can load .osh files<br>
into an apidb database.<br>
<br>
Cheers,<br>
Andy<br>
</blockquote></div><br>