On Thu, Dec 4, 2008 at 9:20 AM, Matthias Julius <[EMAIL PROTECTED]>wrote:

> "Brett Henderson" <[EMAIL PROTECTED]> writes:
>
> > Part of the problem might be that a distribution of osmosis contains a
> > pre-compiled jar file.  If you patch the source and re-compile, the new
> jar
> > gets built under the "build" directory and packaged into a new zip
> > distribution under the "dist" directory but the jar at the top level
> never
> > gets updated.  If you wish to run a self-compiled version of osmosis
> without
> > using the generated zip file you have to actually run
> > <osmosis>/build/dist/bin/osmosis, not <osmosis>/bin/osmosis.  Yes, it's
> > confusing but it simplifies the ant script considerably.  In hindsight it
> > wasn't the best idea.
>
> This is the trick I was looking for. Thanks.  It is a good candidate
> for readme.txt
>
> I'll put a note on
> http://wiki.openstreetmap.org/index.php/Read_Only_Map_API
>

Rather than document around the problem in readme.txt, I've modified
build.xml to build in place.  In other words the build/dist directory no
longer exists and it will rebuild the osmosis.jar at the project root.  This
means you can run <osmosis>/bin/osmosis directly.  It was much simpler than
I expected, I should have done it long ago.  Apologies for any inconvenience
:-)  It's in svn now.

While I'm here I should mention another change I made recently.  The osmosis
pgsql schema now includes a uid column on all entity tables.  The 0.5 osm
and osc files now include a uid attribute which was originally slated for
introduction in 0.6.  The planet dump tool includes it already so I've
included it in osmosis 0.5 tasks as well.  I've had to update the pgsql
schema to include this additional attribute.  I don't think it will affect
you too much, but it will increase the database size slightly.  If it's a
problem, just use an old version of osmosis.
_______________________________________________
Tilesathome mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/tilesathome

Reply via email to