Hi Ævar,<br><br>Can you provide the full error output from Osmosis. I suspect there's a "caused by" nested exception that provides the root cause for the error.<br><br>As for SQLite support, it's a nice idea but a non-trivial amount of work. I'm happy to give somebody guidance on adding it, but I don't have time myself.<br>
<br>Brett<br><br><div class="gmail_quote">On Tue, Mar 2, 2010 at 11:07 PM, Ævar Arnfjörð Bjarmason <span dir="ltr"><<a href="mailto:avarab@gmail.com">avarab@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I maintain some statistics on the country dump for Iceland so as part<br>
of a daily cronjob I do:<br>
<br>
* drop database osm_iceland;<br>
* cd rails_port && rake db:migrate<br>
* osmosis import Iceland.osm<br>
<br>
Is it possible to to skip the step where I have to maintain a database<br>
copy of the rails port? I've tried script/contrib/apidb_0.6.sql in the<br>
osmosis distribution as well as using<br>
examples/pgsql_simple_schema_0.6.sql with the appropriate<br>
createdb/createlang statements & a postgis setup but I always get<br>
"Unable to check if user with id -1 exists in the database." from<br>
org.openstreetmap.osmosis.core.apidb.v0_6.impl.UserManager.doesUserExistInDb(UserManager.java:96).<br>
<br>
It would be really nice if there was an option in osmosis that I could<br>
use to tell it to create a simple database from a given .osm file from<br>
scratch, I.e. do the required CREATE TABLE operations to populate<br>
something like an apidb with nodes/ways/relations and their tags.<br>
<br>
It would be even better if it could write to an SQLite database, then<br>
it would be trivial to turn a .osm file into a .sqlite file for easy<br>
querying of the data. There's a lot of tools in the OSM SVN that could<br>
use something like this but right now they just implement their own<br>
ad-hoc XML parsing in a while (<>) {}.<br>
<br>
Consider this mainly a feature request. If someone's interested in<br>
implementing SQLite support I can help with that, I'm just lost with<br>
Java.<br>
<br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
</blockquote></div><br>