Re: [osmosis-dev] Cannot represent -1 as a char.

2011-03-23 Thread Brett Henderson
Hi Scott, I've just modified the serialisation code to serialise the full 32-bit signed int instead of casting to an unsigned chararacter. This means that the internal serialisation format will be slightly less efficient but I suspect the difference will be immeasurable. Note that recently I

Re: [osmosis-dev] Cannot represent -1 as a char.

2011-03-08 Thread Scott Crosby
Brett, do you have any advice? In OsmosisBinaryParser, I'm using NOCHANGESET and NOVERSION when there's omitted metadata. Currently both are -1. The bug is because another serializer in osmosis is complaining that the version number is negative. We can set NOVERSION to 0, make that code more

Re: [osmosis-dev] Cannot represent -1 as a char.

2011-03-07 Thread Nakor
Can you give me more of the stack trace? Scott Here you go: SEVERE: Thread for task 1-read-pbf failed org.openstreetmap.osmosis.core.OsmosisRuntimeException: Cannot represent -1 as a char. at org.openstreetmap.osmosis.core.util.IntAsChar.intToChar(IntAsChar.java:35) at

Re: [osmosis-dev] Cannot represent -1 as a char.

2011-03-06 Thread Scott Crosby
then I get the exception: SEVERE: Thread for task 1-read-pbf failed org.openstreetmap.osmosis.core.OsmosisRuntimeException: Cannot represent -1 as a char.    at org.openstreetmap.osmosis.core.util.IntAsChar.intToChar(IntAsChar.java:35)    at