[osmosis-dev] Upload-Task

2009-11-11 Thread marcus.wolschon


Hello Brett,

I have the Java-code required to open a changeset and upload an OSC-file.
Are you interested in an upload-change-task for Osmosis?
It can do all kinds of things with changes but currently python
is required to upload them. So this is the one feature missing
for a consistent set of tasks. ;)


Marcus

___
osmosis-dev mailing list
osmosis-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/osmosis-dev


Re: [osmosis-dev] Problem using Osmosis (PluginLifecycleException)

2009-11-11 Thread Brett Henderson
On Wed, Nov 11, 2009 at 4:03 PM, Marcus Wolschon 
marcus.wolsc...@googlemail.com wrote:

 On Tue, Nov 10, 2009 at 11:03 PM, Brett Henderson br...@bretth.com
 wrote:

  Changing osmosis.bat is not the problem but how can I do an entry
  Does
  anybody know how to build a classpath list based on the jars contained in
 a
  directory within ant?

 http://ant.apache.org/manual/CoreTasks/jar.html
 That would be the attribute sub-element.


Unless I'm misunderstanding the attribute element that's not quite what I
meant.

I already have the following snippet in build.xml.
manifest file=build/binary/jar.txt
attribute name=Main-Class
value=org.openstreetmap.osmosis.core.Osmosis/
attribute name=Built-By value=${user.name}/
attribute name=Implementation-Title value=Osmosis Library/
attribute name=Implementation-Version
value=${project.version} (${TODAY})/
attribute name=Implementation-Vendor value=Brett
Henderson/
/manifest

I could add a classpath element, but I don't know how to add it dynamically
so that I don't have to hard code the list of jars.
___
osmosis-dev mailing list
osmosis-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/osmosis-dev


Re: [osmosis-dev] Problem using Osmosis (PluginLifecycleException)

2009-11-11 Thread marcus.wolschon
On Wed, 11 Nov 2009 22:37:27 +1100, Brett Henderson br...@bretth.com
wrote:
 http://ant.apache.org/manual/CoreTasks/jar.html
 That would be the attribute sub-element.

 
 Unless I'm misunderstanding the attribute element that's not quite what I
 meant.
 
 I already have the following snippet in build.xml.
 manifest file=build/binary/jar.txt
 attribute name=Main-Class
 value=org.openstreetmap.osmosis.core.Osmosis/
 attribute name=Built-By value=${user.name}/
 attribute name=Implementation-Title value=Osmosis
 Library/
 attribute name=Implementation-Version
 value=${project.version} (${TODAY})/
 attribute name=Implementation-Vendor value=Brett
 Henderson/
 /manifest
 
 I could add a classpath element, but I don't know how to add it
dynamically
 so that I don't have to hard code the list of jars.


I haven't tried it but this could do the trick:

http://stackoverflow.com/questions/1456852/ant-commands-to-print-fileset-into-a-file-one-match-per-line

fileset id=libs dir=../lib/test
include name=*.jar /
/fileset
property name=jars refid=libs /
manifest file=build/binary/jar.txt
 attribute name=Main-Class
value=org.openstreetmap.osmosis.core.Osmosis/
 attribute name=Built-By value=${user.name}/
 attribute name=Implementation-Title value=Osmosis 
   Library/
 attribute name=Implementation-Version
value=${project.version} (${TODAY})/
 attribute name=Implementation-Vendor value=Brett
Henderson/
 attribute name=Class-Path value=${jars}/
 /manifest

Now how to change ; into : in ${jars}
But maybe it works anyway.

Marcus

___
osmosis-dev mailing list
osmosis-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/osmosis-dev


[osmosis-dev] Relations with 65k members

2009-11-11 Thread Frederik Ramm
Hi,

we just had a problem with diff updates because someone created
relations with more than 65k members and Osmosis tries to store them as
a char which raised an exception.

I did a quick hack that would simply drop the excessive members with a
warning:

http://www.remote.org/frederik/tmp/remove_excessive_members.diff

I'm not checking that in.

I thought about simply patching Osmosis to use an integer but was
informed by Jon Burgess that osm2pgsql (which is next in my toolchain)
would carp on  65k members as well so I didn't bother - especially as
it turned out that the relations in question were an error in somebody's 
automated import and have been meanwhile fixed by Lennard (they 
contained the same element over and over).

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09 E008°23'33

___
osmosis-dev mailing list
osmosis-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/osmosis-dev


Re: [osmosis-dev] Relations with 65k members

2009-11-11 Thread Frederik Ramm
Hi,

Frederik Ramm wrote:
 I thought about simply patching Osmosis to use an integer but was
 informed by Jon Burgess that osm2pgsql (which is next in my toolchain)
 would carp on  65k members as well

Turns out osm2pgsql in its default config allows only up to 32767 members.

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09 E008°23'33

___
osmosis-dev mailing list
osmosis-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/osmosis-dev