[OSM-dev] Importing planet.osm into api0.5 db?
Brett Henderson
brett at bretth.com
Mon Oct 1 23:18:05 BST 2007
Hi Ted,
I've checked in a fix for the problem you're having. It updates the
expected schema version to 8 and fixes a bug in the insert statement
which was causing the error message you saw.
You're right in that the recent tile changes caused the problem. I had
made the tile changes but didn't have a new tile ready schema for 0.5 to
test on at the time. I still don't but I've managed to reproduce your
error and fix it. I still need to create the latest 0.5 schema to
verify it all works properly.
I haven't released a new version of osmosis but it is all available in
svn if you wish to compile it yourself. Just run ant in the
applications/utils/osmosis directory.
Cheers,
Brett
Ted Mielczarek wrote:
> On 10/1/07, Frederik Ramm <frederik at remote.org> wrote:
>
>> I must admit that I never did this myself ;-)
>>
>> Osmosis should do it and it would be great if you could test it, the
>> schema error message is surely just a minor glitch.
>>
>
> If I pass "validateSchemaVersion=no" to osmosis, it fails with an exception:
>
> Exception in thread "Thread-1-read-xml-0.5"
> com.bretth.osmosis.core.OsmosisRuntimeException: Unable to set a
> prepared statement parameter for a node.
> at com.bretth.osmosis.core.mysql.v0_5.MysqlWriter.populateNodeParameters
> (MysqlWriter.java:384)
>
> I guess this doesn't work. :)
>
> Regards,
> -Ted
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
>
More information about the dev
mailing list