[osmosis-dev] Task type write-mysql doesn't exist

2010-01-07 Thread Oliver Schrenk
Hi,

I was trying to populate a local mysql database with a sample osm file, much 
like the example at

http://wiki.openstreetmap.org/index.php/Osmosis#Example_Usage

and also mentioned at

http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage#--write-mysql_.28--wm.29

by calling

osmosis-0.32/bin/osmosis --read-xml file=utrecht-snippet.osm --write-mysql 
host=localhost database=osm user=root


But all I got was

Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Task type write-mysql 
doesn't exist.
at 
org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactoryRegister.getInstance(TaskManagerFactoryRegister.java:60)
at 
org.openstreetmap.osmosis.core.pipeline.common.Pipeline.buildTasks(Pipeline.java:50)
at 
org.openstreetmap.osmosis.core.pipeline.common.Pipeline.prepare(Pipeline.java:112)
at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:79)
at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:30)


Has the feature been removed?


Best regards
Oliver Schrenk



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


[OSM-dev] PHP OSM OAuth anyone?

2010-01-07 Thread Frederik Ramm
Hi,

does anyone have, or know of, an open source web application that 
uses PHP and OAuth to write edits to OSM? There's an existing seamark 
mapping project (freietonne.de) and they currently have their editor set 
up to feed edits to OSM under one hard-coded user id. They would like to 
upgrade to proper OAuth, and would be happy to be able to copy from an 
existing implementation.

Bye
Frederik

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


Re: [OSM-dev] PHP OSM OAuth anyone?

2010-01-07 Thread Karl Guggisberg
Hi,

see http://oauth.net/code/, there are references to a couple of PHP 
implementations, including a PEAR package.

-- Karl

Am 07.01.2010 11:12, schrieb Frederik Ramm:
 Hi,

  does anyone have, or know of, an open source web application that
 uses PHP and OAuth to write edits to OSM? There's an existing seamark
 mapping project (freietonne.de) and they currently have their editor set
 up to feed edits to OSM under one hard-coded user id. They would like to
 upgrade to proper OAuth, and would be happy to be able to copy from an
 existing implementation.

 Bye
 Frederik

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



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


Re: [OSM-dev] PHP OSM OAuth anyone?

2010-01-07 Thread Frederik Ramm
Hi,

Karl Guggisberg wrote:
 see http://oauth.net/code/, there are references to a couple of PHP 
 implementations, including a PEAR package.

Thank you. I was hoping that there might be something a little less 
abstract, which would already have all the stuff in place for talking to 
OSM and requesting the required privileges, and later doing the API calls...

Bye
Frederik


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


Re: [OSM-dev] Removing Minutely and Hourly Changesets

2010-01-07 Thread Florian Lohoff
On Thu, Jan 07, 2010 at 12:03:27PM +1100, Brett Henderson wrote:
 I haven't heard anything but I've disabled the hourly diffs as well.  They
 can be re-enabled if necessary.

Thanks - i hadnt switched yet - trying now.

 As per the minute and minute-slow diffs, I'll delete these if nobody yells.
 I'll give it at least a few days though.

How do i init the --rri task (--rrii) to a specific date/time? 

I am set off at 7th of Jan 0:00 and i'd like to continue with --rri from
there.

Flo
-- 
Florian Lohoff f...@zz.de
Es ist ein grobes Missverständnis und eine Fehlwahrnehmung, dem Staat
im Internet Zensur- und Überwachungsabsichten zu unterstellen.
- - Bundesminister Dr. Wolfgang Schäuble -- 10. Juli in Berlin 


signature.asc
Description: Digital signature
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[josm-dev] JOSM command line syntax and processing

2010-01-07 Thread Bodo Meissner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello developers,

is there any documentation about Josm's command line arguments?

While thinking about bug 4288 I tried to understand the processing of command 
line arguments.
It looks a bit strange and I think it is difficult to change or to extend.

In order to fix the bug it must be possible to process a set of image files 
instead of individual files.
I'm not sure if the command line processing should be changed to handle this or 
if batch importers should handle this automatically with a little help from the 
command line processing.
Maybe it's a good idea to clean up the command line processing.


As far as I found out this is the current implementation:

The command line args are passed to main() as String argArray[].
The array values are copied to a ListString argList.
A hash map that assigns a Collection of values to a key is created from 
argArray:
   all values not starting with -- are prepended with --download=
   if the value does not contain '=' everything after -- is regarded as a key 
and an empty string will be added to the value list
   if the value contains '=' the part between -- and '=' is used as a key and 
the part after '=' is added to the values list of this key
(This implementation stores options like -? or -h in the has map in the 
values list of key download.)

main() checks the HashMap for the existence of key reset-preferences (must 
have been --reset-preferences or --reset-preferences=foo) and for the first 
value of key language (--language=foo)

After this, main() checks argList for help options --help, -? and -h. In 
this case the program exits which means that the wrong values for the 
download key will be ignored

main() passes the HashMap args to preConstructorInit(args)

After creating the mainFrame and closing the splash screen, main() checks the 
HashMap args for no-maximize, geometry and maximize

At the end of main() a Runnable is added to the event queue that will pass the 
HashMap args to main.postConstructorProcessCmdLine()

Main.postConstructorProcessCmd() handles keys download, downloadgps and 
selection.
All individual values of download and downloadgps are passed to 
downloadFromParamString() which distinguishes between file: and http: URLs, 
strings that contain exactly 3 commas which are trated as a bounding box and 
other strings that are treated as a file name.

file: URLs and file name arguments are handled individually by 
OpenFileAction.openFile().


Bodo
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktF/YoACgkQnMz9fgzDSqeBJQCdEMVUsRWAItc9Saa3ntxgxcQN
Z1IAn0w5zmE1oJIZ47MQdzQujHRAxwzT
=Pa1K
-END PGP SIGNATURE-

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


Re: [OSM-dev] Removing Minutely and Hourly Changesets

2010-01-07 Thread Jeremy Adams

 How do i init the --rri task (--rrii) to a specific date/time?

 I am set off at 7th of Jan 0:00 and i'd like to continue with --rri from
 there.

 Flo


Run ./osmosis --rrii workingDirectory=/work  with a suitable directory.
Osmosis will create some files in that directory.  Open the configuration
file and set the url to http://planet.openstreetmap.org/minute-replicate.
Set interval to whatever makes sense for your application.

Next, find the state.txt file on planet.openstreetmap.org that corresponds
to the time you'd like to start at.  Download that state.txt file and save
it to the osmosis working directory.  For instance, the state.txt file for
Jan 7 at 00:00 is 167266.

Run osmosis with --rri option to start downloading data.

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


[josm-dev] New translations system

2010-01-07 Thread Dirk Stöcker
Hello,

I switched the translations from the gettext support to an own version 
using Java mechanisms. This now means adding new languages results in a 
small change in josm (adding the plural mode - one line). As a result the 
final josm jar is a bit smaller again (no longer multiple english strings).

Please all of you test if josm is still working reliable in your native 
language!

@Frederik:
For your one-language version. For english you may simply remove all 
data/*.lang files. For any other language en.lang and lang.lang must be 
present (i.e. en.lang must be present to allow translations).

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)


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


Re: [josm-dev] New translations system

2010-01-07 Thread Ævar Arnfjörð Bjarmason
On Thu, Jan 7, 2010 at 13:05, Dirk Stöcker openstreet...@dstoecker.de wrote:
 I switched the translations from the gettext support to an own version
 using Java mechanisms. This now means adding new languages results in a
 small change in josm (adding the plural mode - one line). As a result the
 final josm jar is a bit smaller again (no longer multiple english strings).

 Please all of you test if josm is still working reliable in your native
 language!

It works fine for Icelandic, neat that we can continue translating
without JOSM blowing up.

Out of curiosity though since you were changing the internal storage
away from Gettext why did you go with something custom instead of
using Java ResourceBundles or whatever the system Java projects
usually use is?

I'm not familiar with Java i18n issues so it would be interesting to know.

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