[josm-dev] UI development

Gabriel Ebner ge at gabrielebner.at
Sat Dec 15 11:25:02 GMT 2007


On Sat, Dec 15, 2007 at 11:10:23AM +0000, Gervase Markham wrote:
> Gabriel Ebner wrote:
> > No, currently you can't directly edit a GPX layer.  You'd have to convert it
> > to an OSM layer first.
> 
> Right. But once you do that, you manipulate the GPX points just like 
> nodes? If so, we don't need specific operations for manipulating GPX points.

Just that it isn't a GPX layer anymore then. </nitpick>

> Even if it did become possible to directly edit GPX layers, you could 
> still use the same operations as for nodes.

Of course.

> >> - Someone has added "Delete segment". I thought segments were no longer 
> >> part of the data model?
> > 
> > Yes, the server knows of no such thing as a segment; however sometimes you
> > want to delete just a part of a way:
> 
> Aha. So this is basically equivalent to splitting the way at a node, 
> then deleting one end of one of the ways?
> 
> 
>       +----+----+----+----+----+
> 
> 		|

This step requires some kind of split-and-duplicate-nodes, which we don't
currently have.

>   		V
> 
>       +----+----+ +--+----+----+
> 
> 		|
>   		V
>       +----+----+    +----+----+
> 
> ?
> 
> If so, I would suggest that it be done using this two-step process, 
> unless it's a very common operation.

Yes, it amounts to the same and I can't remember if I ever used it.  Right
after the modeless changes someone complained about about it and now it's in
JOSM.

> >> - Someone has added "Split ways with duplicating nodes at identical 
> >> positions (yielding not connected ways)". I'm not quite sure what that 
> >> means, but I thought that was how splitting a way would work. What other 
> >> options are there?
> > 
> > Currently when you split a way at a node, you'll get two ways, and they'll
> > share the node where you split them. 
> 
> Right. So is there any UI feedback at all that this operation has been 
> completed?

AFAIK, just the selection list is updated.

> When is it useful to be able to do this?

Say you want to only tag a part of a way as oneway=yes, or as bridge=yes
layer=1, then you wouldn't want the way to be disconnected from the rest.
(Honestly, I don't think I've ever needed the other behaviour.)

  Gabriel.




More information about the josm-dev mailing list