Re: [osmosis-dev] APIDB replication stalled

2012-07-25 Thread Paul Norman
Thanks – working now. Few days to catch up on, I might catch up just in time to 
reload with ODbL data

 

From: Brett Henderson [mailto:br...@bretth.com] 
Sent: Tuesday, July 24, 2012 9:19 AM
To: Paul Norman
Cc: osmosis-dev@openstreetmap.org
Subject: Re: [osmosis-dev] APIDB replication stalled

 

Hi Paul,

On 22 July 2012 05:18, Paul Norman penor...@mac.com wrote:

My apidb replication appears to of stalled. The error given is
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to insert
user with id 712141 into the database.

The relevant line from the full error log (below) seems to be Caused by:
org.postgresql.util.PSQLException: ERROR: duplicate key value violates
unique constraint users_display_name_idx
  Detail: Key (display_name)=(lucabon) already exists.

How would I go about fixing this?


A workaround would be to search for the existing lucabon user in the user 
table and rename it.  Something like should do it:
UPDATE users SET display_name = 'lucabon_old' WHERE display_name = 'lucabon';

Brett

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


Re: [osmosis-dev] Extract Bounding Box

2012-07-25 Thread Yiannis Gkoufas
Hi Tobias,

thanks a lot for your response! Your post is already my starting point.
However, I didn't find a way to extract the bounding box multiple times
from the same loaded osm file.
So, for the time I am just going to use the API.

Cheers!

On 25 July 2012 07:23, Tobias Knerr o...@tobias-knerr.de wrote:

 On 23.07.2012 18:13, Yiannis Gkoufas wrote:
  What I want to achieve is this: load the osm file in memory and make
  several bounding-box requests to it through Java.
  Can someone point me to any reference that will help me with that?

 I've once written a forum post with some example code on how to load a
 file into a Java application using Osmosis:

 http://forum.openstreetmap.org/viewtopic.php?pid=213212#p213212

 Maybe it helps you to get started. I've not used the bounding box
 feature inside a Java application yet, but I assume it would be possible
 to build a pipeline of Osmosis tasks by setting a BoundingBoxFilter
 instance as the sink of the reader.

 Let us know if you get it to work!

 Regards,
 Tobias

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

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


Re: [OSM-dev] [GSoC] Improvements to Vespucci

2012-07-25 Thread Jan Schejbal
Am 2012-07-25 07:20, schrieb Graham Jones:
 The UI looks very similar to your previous version, where you have a menu
 at the top to select move/edit/edit tags modes.
 Does 'Easy Edit' mode need to be selected somehow?

Yes. The new UI comes into play when you select a node or way in
EasyEdit mode. It should then show an action mode with options like tag,
delete, history, split, merge/join (or a subset, depending on the
selected element). History will be shown iff the element has a positive
OsmID (i.e. is already uploaded to the server), Split will be shown on
ways with 2 nodes, and Join will be shown only if a way is selected
that can be merged (i.e. there has to be a second way sharing end nodes
and either both need to have the same tags, or one of them must not have
any tags).


 Your tag editing dialog has a Okay and a Revert button.   Is 'Revert'
 the same as 'Cancel' on other UIs (ie close the dialog without saving
 changes), or does 'Revert' do something else?

It restores the tags to what they were when the dialog was opened, but
keeps the dialog open.

Kind regards,
Jan

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


Re: [OSM-dev] [GSoC] Improvements to Vespucci

2012-07-25 Thread Derick Rethans
On Wed, 25 Jul 2012, Jan Schejbal wrote:

 Hi,
 I have implemented a number of significant changes, and released a new
 APK at the usual location, http://www.janschejbal.de/temp/vespucci.apk
 
 Changes include:
  - Context menu is gone from EasyEdit mode, nearest nodes will be picked
 automatically
  - Introduced new UI strongly based on action modes
  - Ways can be single-tapped to select them, or double-tapped for tagging
  - Selected elements provide an action mode based list of actions,
 including tagging, deletion, viewing the history (if the node is on the
 server), splitting ways (for ways with more than two nodes), and merging
 ways (for ways where a second, mergeable way is available).

Lovely new changes! What I really miss in Vespuci though is: Undo. I 
end up fat-fingering so many things that I then have to abort and 
redownload. Is Undo on your planning?

cheers,
Derick

-- 
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug

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


Re: [OSM-dev] [GSoC] Improvements to Vespucci

2012-07-25 Thread Jan Schejbal
Am 2012-07-25 15:29, schrieb Derick Rethans:
 Is Undo on your planning?

Yes. Appropriate TODO markers informing about the exact data that needs
to be saved on each action are already present in the code.

I plan to do the following:

* Checkpoints are created at appropriate intervals, e.g. before each
user-initiated action is actually performed

* Every time an element is changed (this includes creation and deletion,
iff the element is not yet included in the checkpoint, the current state
of the element is stored, including flags indicating if the element is
in currentStorage and apiStorage

On Undo, a new checkpoint (the redo checkpoint) is created and for
each element in the last checkpoint (the undo checkpoint), the current
(i.e. changed) state of the element is stored in the redo checkpoint.
After this, the state described by the undo checkpoint is restored
(adding/deleting elements as required and changing the values of the
elements).

Kind regards,
Jan

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


Re: [OSM-dev] [GSoC] Improvements to Vespucci

2012-07-25 Thread Graham Jones
Ah - I had missed the fact that the 'mode' menu is scrollable and has 'easy
edit' at the bottom - It is probably worth having this at the top of the
list, or the default mode when it is finished.
I'll play with it now.

Thanks

Graham.

On 25 July 2012 13:44, Jan Schejbal jan.mailinglis...@googlemail.comwrote:

 Am 2012-07-25 07:20, schrieb Graham Jones:
  The UI looks very similar to your previous version, where you have a menu
  at the top to select move/edit/edit tags modes.
  Does 'Easy Edit' mode need to be selected somehow?

 Yes. The new UI comes into play when you select a node or way in
 EasyEdit mode. It should then show an action mode with options like tag,
 delete, history, split, merge/join (or a subset, depending on the
 selected element). History will be shown iff the element has a positive
 OsmID (i.e. is already uploaded to the server), Split will be shown on
 ways with 2 nodes, and Join will be shown only if a way is selected
 that can be merged (i.e. there has to be a second way sharing end nodes
 and either both need to have the same tags, or one of them must not have
 any tags).


  Your tag editing dialog has a Okay and a Revert button.   Is 'Revert'
  the same as 'Cancel' on other UIs (ie close the dialog without saving
  changes), or does 'Revert' do something else?

 It restores the tags to what they were when the dialog was opened, but
 keeps the dialog open.

 Kind regards,
 Jan




-- 
Graham Jones
Hartlepool, UK.
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] [GSoC] Improvements to Vespucci

2012-07-25 Thread Toby Murray
I finally decided to give this a try. For some reason I couldn't
install your APK at first. It just failed saying Software not
installed or something along those lines. I uninstalled Vespucci from
my phone and then your APK worked fine. So now sure what was going on
there.

But now that I have it working, I think I like your changes!

Question: What does the Save button do? I couldn't find any files on
the file system after I used it. Maybe I was just looking in the wrong
place?

Toby

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


Re: [OSM-dev] [GSoC] Improvements to Vespucci

2012-07-25 Thread Graham Jones
Toby,
The odd error message is an android 'feature' that caught me out a few
times.
You can only upgrade an app with one built by the same person (or at least
on the same computer), so Jan's version and one you either built yourself
or downloaded from the project site will be incompatible.
It would be much nicer if android said I won't install this because it
looks like someone is impersonating the vespucci  developersI think
there is an issue raised about this with android, but it doesn't seem to
have been fixed yet...

Graham.

On 25 July 2012 16:30, Toby Murray toby.mur...@gmail.com wrote:

 I finally decided to give this a try. For some reason I couldn't
 install your APK at first. It just failed saying Software not
 installed or something along those lines. I uninstalled Vespucci from
 my phone and then your APK worked fine. So now sure what was going on
 there.

 But now that I have it working, I think I like your changes!

 Question: What does the Save button do? I couldn't find any files on
 the file system after I used it. Maybe I was just looking in the wrong
 place?

 Toby

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




-- 
Graham Jones
Hartlepool, UK.
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] [GSoC] Improvements to Vespucci

2012-07-25 Thread Jan Schejbal
Am 2012-07-25 17:30, schrieb Toby Murray:
 Question: What does the Save button do? I couldn't find any files on
 the file system after I used it. Maybe I was just looking in the wrong
 place?

Sorry, first reply didnt go to list:
I have removed the button, as it only does what the auto-save feature
does automatically (and now reliably).

Kind regards,
Jan

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


Re: [OSM-dev] [GSoC] Improvements to Vespucci

2012-07-25 Thread Toby Murray
On Wed, Jul 25, 2012 at 4:46 PM, Jan Schejbal
jan.mailinglis...@googlemail.com wrote:
 Am 2012-07-25 17:30, schrieb Toby Murray:
 Question: What does the Save button do? I couldn't find any files on
 the file system after I used it. Maybe I was just looking in the wrong
 place?

 Sorry, first reply didnt go to list:
 I have removed the button, as it only does what the auto-save feature
 does automatically (and now reliably).

Aha. All questions answered. I thought maybe you had implemented the
save to file to edit in JOSM before uploading feature while I wasn't
looking :)

Toby

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