[OSM-talk] Josm: bug in Simplify Way?

2008-07-27 Thread Douglas Furlong
 The simplify way action uses the Douglas-Peucker algorithm.  You can change
 its tolerance (in meters) by modifying the simplify-way.max-error preference
 (go to the preferences tab, click on the Einstein face, and click Add).

 Only nodes that are within the tolerance of the simplified way are removed.
 Nodes that are used by other ways or relations are not removed either.

 By default it uses a tolerance of 50 meters, so if you want less points to be
 removed, you might want to set this to, say, 10 meters.

Hi

I just wanted to pipe up on this particular topic.

I've recently done a lot of travelling around Crete, and there are
quite a few brand new roads that need to be mapped.

A lot of the roads that I travelled on, I went both ways, and as such
have two trails back and forth.

Is there any way to get the simplify way to work out the middle of
those two lines?
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Josm: bug in Simplify Way?

2008-07-17 Thread Niccolo Rigacci
On Thu, Jul 17, 2008 at 12:38:48AM +0200, Gabriel Ebner wrote:
 
 Fixed in OSM r9100,

Verified: fantastic!

This is another tale for those that - now and then - come up and 
say that nobody is accountable for free software.

Thank you, Gabriel!

-- 
Niccolo Rigacci
Firenze - Italy

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Josm: bug in Simplify Way?

2008-07-16 Thread Niccolo Rigacci
On Tue, Jul 15, 2008 at 10:54:32PM +, Gabriel Ebner wrote:
 The simplify way action uses the Douglas-Peucker algorithm.  You can change
 its tolerance (in meters) by modifying the simplify-way.max-error preference
 (go to the preferences tab, click on the Einstein face, and click Add).

Thank you Gabrile for your answer, this is very useful!

 By default it uses a tolerance of 50 meters, so if you want less points to be
 removed, you might want to set this to, say, 10 meters.

This is why I suppose a bug in the tool: the resulting way is far 
from the original one by more than 200 m.

Do you think that I should contact the developers?

-- 
Niccolo Rigacci
Firenze - Italy

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Josm: bug in Simplify Way?

2008-07-16 Thread Gabriel Ebner
On Wed, Jul 16, 2008 at 09:29:35AM +0200, Niccolo Rigacci wrote:
  By default it uses a tolerance of 50 meters, so if you want less points to 
  be
  removed, you might want to set this to, say, 10 meters.
 
 This is why I suppose a bug in the tool: the resulting way is far 
 from the original one by more than 200 m.
 
 Do you think that I should contact the developers?

You've already done that as I'm the one to be blamed for that code.

Could you please post the way that shows this problem?  (Is it by chance a
closed way?)

  Gabriel.

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Josm: bug in Simplify Way?

2008-07-16 Thread Niccolo Rigacci
On Wed, Jul 16, 2008 at 08:16:34PM +0200, Gabriel Ebner wrote:
  Do you think that I should contact the developers?
 
 You've already done that as I'm the one to be blamed for that code.

That's fantastic! :-)

 Could you please post the way that shows this problem?  (Is it by chance a
 closed way?)

No, it is a simple open way. Here http://www.rigacci.org/osm/bug/
you can find:

- a screenshot of the simplified way over the original GPX
- the .osm file with just the way before simplifying

Thanks for your interest.

--
Niccolo Rigacci
Firenze - Italy

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Josm: bug in Simplify Way?

2008-07-16 Thread Gabriel Ebner
On Wed, Jul 16, 2008 at 10:02:44PM +0200, Niccolo Rigacci wrote:
  Could you please post the way that shows this problem?  (Is it by chance a
  closed way?)
 
 No, it is a simple open way. Here http://www.rigacci.org/osm/bug/
 you can find:
 
 - a screenshot of the simplified way over the original GPX
 - the .osm file with just the way before simplifying
 
 Thanks for your interest.

Oops.  This is pretty embarrassing, but it seems I forgot to convert degrees
to radians before calculating the cross track error...

JOSM: State-of-the-art pseudo-random polyline excerpts

Fixed in OSM r9100,
  Gabriel.

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Josm: bug in Simplify Way?

2008-07-16 Thread Dermot McNally
2008/7/16 Gabriel Ebner [EMAIL PROTECTED]:

 Oops.  This is pretty embarrassing, but it seems I forgot to convert degrees
 to radians before calculating the cross track error...

As long as we're on the subject...

I tend to find that I can't simplify ways at all, unless I first split
them. Generally, I'll select the second node in the way, split on it
and _then_ the simplify way function will happily let me simplify the
remaining way. Is this expected? Are others seeing it?

Dermot

-- 
--
Iren sind menschlich

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Josm: bug in Simplify Way?

2008-07-15 Thread Gabriel Ebner
On Mon, Jul 14, 2008 at 11:26:39PM +0200, Niccolo Rigacci wrote:
  Don't rely on automated simplifiers for conversion of GPS data, do it by 
  hand.
 
 Why not?
 
 I suppose the algorithm is well known and definited: nodes should 
 be removed only if the semplified way does not diverge by a 
 predefinite amount.

The simplify way action uses the Douglas-Peucker algorithm.  You can change
its tolerance (in meters) by modifying the simplify-way.max-error preference
(go to the preferences tab, click on the Einstein face, and click Add).

Only nodes that are within the tolerance of the simplified way are removed.
Nodes that are used by other ways or relations are not removed either.

By default it uses a tolerance of 50 meters, so if you want less points to be
removed, you might want to set this to, say, 10 meters.

Hope this helps,
  Gabriel.


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


[OSM-talk] Josm: bug in Simplify Way?

2008-07-14 Thread Niccolo Rigacci
Hi,

I use regularly the Simplify Way feature in Josm before uploading 
tracks acquired at 10 m samples.

Today I noticed that the funcion over-simplify a trace: the worst 
node in the resulting way is more than 200 m far from the 
original track!

Here [1] you can see a screenshot of the simplified way above the 
original GPX track, look at the scale!

Here [2] it is the offending way, so you can test it.

Should I open a ticket?


I use the latest Josm (v. 716) with updated plugins, on Linux 
with SUN Java 1.6.0.

[1] http://www.rigacci.org/osm/bug/josm_simplify_bug.png
[2] http://www.rigacci.org/osm/bug/josm_simplify_bug.osm

-- 
Niccolo Rigacci
Firenze - Italy

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Josm: bug in Simplify Way?

2008-07-14 Thread Thomas Wood
On Mon, Jul 14, 2008 at 4:17 PM, Niccolo Rigacci [EMAIL PROTECTED] wrote:
 Hi,

 I use regularly the Simplify Way feature in Josm before uploading
 tracks acquired at 10 m samples.

Uploading as vector data to the main database, or as a simplified GPS track?

 Today I noticed that the funcion over-simplify a trace: the worst
 node in the resulting way is more than 200 m far from the
 original track!

Don't rely on automated simplifiers for conversion of GPS data, do it by hand.

 Here [1] you can see a screenshot of the simplified way above the
 original GPX track, look at the scale!

 Here [2] it is the offending way, so you can test it.

 Should I open a ticket?


 I use the latest Josm (v. 716) with updated plugins, on Linux
 with SUN Java 1.6.0.

 [1] http://www.rigacci.org/osm/bug/josm_simplify_bug.png
 [2] http://www.rigacci.org/osm/bug/josm_simplify_bug.osm

 --
 Niccolo Rigacci
 Firenze - Italy

 ___
 talk mailing list
 talk@openstreetmap.org
 http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk




-- 
Regards,
Thomas Wood
(Edgemaster)

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Josm: bug in Simplify Way?

2008-07-14 Thread Niccolo Rigacci
On Mon, Jul 14, 2008 at 05:42:36PM +0100, Thomas Wood wrote:
 
  I use regularly the Simplify Way feature in Josm before uploading
  tracks acquired at 10 m samples.
 
 Uploading as vector data to the main database, or as a simplified GPS track?

I do the following:
 - Open GPX in Josm
 - Convert to data layer
 - Remove the unwanted parts
 - Simplify Way
 - Add tags
 - Upload to the main database.


 Don't rely on automated simplifiers for conversion of GPS data, do it by hand.

Why not?

I suppose the algorithm is well known and definited: nodes should 
be removed only if the semplified way does not diverge by a 
predefinite amount.

I see an open ticket to make the simplify tool user adjustable.

-- 
Niccolo Rigacci
Firenze - Italy

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk