Re: [OSM-talk] Documentation on Editing Relations

2010-03-28 Thread Graham Jones
Hi,
Thank you all for your help -  "Download Object" was the fundamental thing I
had missed.

I had kind of hoped that you would just point me to the nice new user
instruction page on the Wiki that I had not spotted.

I'll have a look at improving it, but it is not an insignificant job.   How
about if we divide the basic documentation into chunks (like a mapping
party, but not as good for you), and different people volunteer to update a
different aspect to bring it up to date in terms of software, and "custom
and practice"?   I am happy to co-ordinate, but will struggle to do it all.

I think this would be a big help in encouraging wider participation in the
project.

Could even be a "Project of the Week"?

Regards


Graham.

On 27 March 2010 23:57, Sebastian Klein  wrote:

> Graham Jones wrote:
> > Is there a command line way of adding ways to a relation - for
> > example, rather than doing it by clicking on things, I would quite
> > like to do "add ways to relation  where route="Pennine Way" or
> > name="Pennine Way".
>
> If you have the problem that you cannot download the entire area because
> the route is too long, the XAPI can save your day.
>
> You will need two XAPI requests, one for route=... and one for name=...
> Then you can merge the layers in JOSM.
>
> (Btw. there is an easy way to get the bbox parameters for XAPI requests:
> Select the area in the slippy map of the download dialog. Then go to the
> second tab and simply copy the list of coordinates...)
>
> > Any pointers would be appreciated.  Sorry for being dumb - I must
> > have missed the documentation somewhere?
>
> Why not write some, when you have mastered the high art of
> relations? :)
>
> __
>
> Sebastian
>
> ___
> talk mailing list
> talk@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk
>



-- 
Dr. Graham Jones
Hartlepool, UK
email: grahamjones...@gmail.com
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Documentation on Editing Relations

2010-03-27 Thread Sebastian Klein
Graham Jones wrote:
> Is there a command line way of adding ways to a relation - for
> example, rather than doing it by clicking on things, I would quite
> like to do "add ways to relation  where route="Pennine Way" or
> name="Pennine Way".

If you have the problem that you cannot download the entire area because
the route is too long, the XAPI can save your day.

You will need two XAPI requests, one for route=... and one for name=...
Then you can merge the layers in JOSM.

(Btw. there is an easy way to get the bbox parameters for XAPI requests:
Select the area in the slippy map of the download dialog. Then go to the
second tab and simply copy the list of coordinates...)

> Any pointers would be appreciated.  Sorry for being dumb - I must
> have missed the documentation somewhere?

Why not write some, when you have mastered the high art of
relations? :)

__

Sebastian

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


Re: [OSM-talk] Documentation on Editing Relations

2010-03-27 Thread Shaun McDonald

On 27 Mar 2010, at 22:20, Graham Jones wrote:

> Hi,
> I have always tried to avoid using relations (never really accepted that is 
> better than adding route= tags to ways, and they seem to complicate things 
> quite a lot), but I am trying to tidy up some long distance footpaths 
> that have been done as relations.

Once you start using the relations and get used to them, you'll never look back.

> 
> The concept of relations is fine, but I am really struggling to find the 
> instructions on how to edit them properly without breaking anything - for 
> example:
>If I know a relation number, how do I load it (I don't mind which editor!) 
> - the bit of countryside I am editing does not include it, so it does not 
> appear in the JOSM relations list, but I have a number from a Wiki page.

If you have a recent version of JOSM you can go "File" > "Download Object…" and 
select "relation from the popup menu, and then enter the id of the relation. If 
you have the remote control plugin installed and JOSM is running at the time, 
you can click the "j" link beside most of the relation links on the wiki.

> I have pretty much worked out how to add ways to relations using JOSM's 
> relation editor, but haven't quite worked out how to re-order them, apart 
> from doing it manually - is this possible?

Generally it doesn't matter about the order of elements in a relation (at the 
moment, though i'm sure the Germans will disagree).

Shaun

> 
> Is there a command line way of adding ways to a relation - for example, 
> rather than doing it by clicking on things, I would quite like to do "add 
> ways to relation  where route="Pennine Way" or name="Pennine Way".
> 
> Any pointers would be appreciated.  Sorry for being dumb - I must have missed 
> the documentation somewhere?
> 
> Regards
> 
> 
> Graham.
> 
> -- 
> Dr. Graham Jones
> Hartlepool, UK
> email: grahamjones...@gmail.com
> ___
> talk mailing list
> talk@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk

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


Re: [OSM-talk] Documentation on Editing Relations

2010-03-27 Thread Craig Wallace
On 27/03/2010 22:20, Graham Jones wrote:
> Hi,
> I have always tried to avoid using relations (never really accepted that
> is better than adding route= tags to ways, and they seem to complicate
> things quite a lot), but I am trying to tidy up some long distance
> footpaths that have been done as relations.
>
> The concept of relations is fine, but I am really struggling to find the
> instructions on how to edit them properly without breaking anything -
> for example:
> If I know a relation number, how do I load it (I don't mind which
> editor!) - the bit of countryside I am editing does not include it, so
> it does not appear in the JOSM relations list, but I have a number from
> a Wiki page.

In JOSM, you can do File -> Download object (or Ctrl+Shift+O), then 
enter the relation number to load it.
Or you can do File -> Open location (Ctrl+L), and enter the URL of the 
API page for that relation. Note it has to be the api.openstreetmap.org 
address, the "browse" page doesn't work.

> I have pretty much worked out how to add ways to relations
> using JOSM's relation editor, but haven't quite worked out how to
> re-order them, apart from doing it manually - is this possible?

In the relation editor, there's an icon on the left hand side for 
"A..Z", which will sort the relation. Also the icon underneath that will 
reverse the order.

> Is there a command line way of adding ways to a relation - for example,
> rather than doing it by clicking on things, I would quite like to do
> "add ways to relation  where route="Pennine Way" or name="Pennine Way".

Not exactly command line, but you can use the Search feature in JOSM (on 
the Edit menu, or Ctrl+F). eg search for "Pennine Way" will select 
everything tagged as that. Then open the relation editor, and you can 
add all of the selected objects to the relation. Just make sure you are 
not adding ways that are already in the relation - JOSM should warn 
about that. You can also search for objects that are not part of a 
relation by using "-child".

> Any pointers would be appreciated.  Sorry for being dumb - I must have
> missed the documentation somewhere?

I'm not sure if there is any particularly good documentation about this. 
There is some stuff on the Relation:route page, including a step by step 
guide for creating a new route relation, but not much about the more 
advanced editing: http://wiki.openstreetmap.org/wiki/Relation:route

The JOSM relation editor was significantly improved / changed fairly 
recently, I don't know if theirs any documentation about its new 
features. The JOSM help seems to be a bit lacking.

Craig

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


[OSM-talk] Documentation on Editing Relations

2010-03-27 Thread Graham Jones
Hi,
I have always tried to avoid using relations (never really accepted that is
better than adding route= tags to ways, and they seem to complicate things
quite a lot), but I am trying to tidy up some long distance footpaths
that have been done as relations.

The concept of relations is fine, but I am really struggling to find the
instructions on how to edit them properly without breaking anything - for
example:
   If I know a relation number, how do I load it (I don't mind which
editor!) - the bit of countryside I am editing does not include it, so it
does not appear in the JOSM relations list, but I have a number from a Wiki
page. I have pretty much worked out how to add ways to relations using
JOSM's relation editor, but haven't quite worked out how to re-order them,
apart from doing it manually - is this possible?

Is there a command line way of adding ways to a relation - for example,
rather than doing it by clicking on things, I would quite like to do "add
ways to relation  where route="Pennine Way" or name="Pennine Way".

Any pointers would be appreciated.  Sorry for being dumb - I must have
missed the documentation somewhere?

Regards


Graham.

-- 
Dr. Graham Jones
Hartlepool, UK
email: grahamjones...@gmail.com
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk