<div class="gmail_quote">On Tue, Aug 3, 2010 at 11:37 PM, Scott Crosby <span dir="ltr"><<a href="mailto:scrosby@cs.rice.edu">scrosby@cs.rice.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Sun, Aug 1, 2010 at 6:39 AM, Brett Henderson <<a href="mailto:brett@bretth.com">brett@bretth.com</a>> wrote:<br>
<br>
> I'll help incorporate this into the rest of Osmosis.  There's a few things<br>
> to work through though.<br>
<br>
</div>I don't have a lot of time to work with this, but I can split up my<br>
working branch (which includes several unrelated changes) into<br>
separate orthogonal pieces. Git is *VERY* good at this. That would<br>
simplify integration.<br>
<div class="im"><br>
><br>
> Is there a demand for the binary format in its current incantation?  I'm not<br>
> keen to incorporate it if nobody will use it.<br>
<br>
</div>I think it would be used in the mkgmap splitter, if available.<br>
<div class="im"><br>
> Can the code be managed in the main OSM Subversion repo instead of GIT?<br>
<br>
</div>Yes. I use git personally, but there's very good SVN integration.<br>
<div class="im"><br>
> Is any code reuse between Osmosis and other applications required?<br>
<br>
</div>Yes.<br>
<br>
   The *.proto files must be shared with other applications that use<br>
the binary format, including C/Java/Python/.net/....<br>
<br>
    I wrote some java parser code that is intended to be shared across<br>
the other Java osmosis applications. (Eg, I'm using it in my splitter<br>
changes.) in crosby/binary/file and crosby/binary/*.java<br>
<br>
    I suggest that all of this be put in a separate library along with<br>
jamesmikedupont's C/C++ code.<br></blockquote><div><br>Currently Osmosis is split into a number of sub-projects.  For example, there's xml, apidb, pgsql, etc.  This would be a new project, something like osmbin although that's a fairly generic name.  But presumably we'd only be putting the Osmosis specific stuff in there.  The osmbin project would need to have a dependency on an external lib that contains your re-usable code.  That is the tricky bit.<br>
<br>Osmosis currently retrieves external dependencies from the public maven repository at <a href="http://repo1.maven.org">repo1.maven.org</a>.  The few libraries that aren't available there are checked in directly into the Osmosis managed repository stored in the build-support/repo directory.<br>
<br>The simplest way to solve this is to create your third party library through whatever means you wish, then we check in the resultant (properly versioned) jar file into the Osmosis build-support/repo Ivy repository.  Then the osmbin project can pull that lib in as a dependency and do a build.<br>
<br>If we go down this path I need two things:<br>1. A versioned jar file containing all re-usable code.  Scott, can you take care of this?<br>2. The Osmosis specific code that I can use in a new osmbin project within the Osmosis Subversion repo.  I can probably get them from GIT if you let me know which files I need.<br>
<br>Brett<br></div></div><br>