[OSM-dev] Osmosis UTF-8 problem...

Frederik Ramm frederik at remote.org
Mon Dec 3 02:02:12 GMT 2007


Hi,

   I have an UTF-8 problem with Osmosis.

I have taken the latest planet, cut out Europe, consecutively applied
the daily patches, and written it all to a file:

osmosis 
   --rx current-planet.osm 
   --buffer --bb left=-29 right=73 bottom=22 top=89 idTackerType=BitSet 
   --rxc diffs/daily-20071128-20071129.osc.bz2 --apply-change 
   --rxc diffs/daily-20071129-20071130.osc.bz2 --apply-change
   --rxc diffs/daily-20071130-20071201.osc.bz2 --apply-change 
   --rxc diffs/daily-20071201-20071202.osc.bz2 
   --bb left=-29 right=73 bottom=22 top=89 
   --wx europe-new.osm

This works fine. But trying to use the resulting europe-new file in a
--rx now complains:

Exception in thread "Thread-1-rx"
com.bretth.osmosis.core.OsmosisRuntimeException: Unable to read XML
file new-europe.osm.
  at com.bretth.osmosis.core.xml.v0_5.XmlReader.run(XmlReader.java:116)
  at java.lang.Thread.run(Thread.java:619)
Caused by:
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException:
Invalid byte 1 of 1-byte UTF-8 sequence.

How is it possible that Osmosis wrote a file but now refuses to read
the very same?

I'll try to pinpoint the exact byte sequence it chokes on;
unfortunately it doesn't say.

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00.09' E008°23.33'





More information about the dev mailing list