iandees / xapi-servlet

XAPI Servlet
A Java servlet implementation of XAPI using Osmosis to do the heavy lifting.
27 stars 5 forks source link

Pbf support #8

Open IrlJidel opened 13 years ago

IrlJidel commented 13 years ago

src/main/java/com/yellowbkpk/geo/xapi/servlet/Filetype.java defines your Pbf writes as:

pbf("application/binary", "org.openstreetmap.osmosis.pbf.v0_6.PbfWriter");

However org.openstreetmap.osmosis.pbf.v0_6.PbfWriter class does not exist in either your git or master osmosis code base. Did you use a different osmosis src tree for your pbf support?

I'm using your git osmosis src and have json suport working

After looking at osmosis pbf code I attempted to make the following changes for Pbf support

http://mibpaste.com/7MKzi1

However I get for pbf requests I get:

HTTP Status 500 - I don't know how to serialize that.

http://xapi.openstreetmap.ie/xapi/api/0.6/*%5Bname%3DKippure%5D.pbf