Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#2002 closed defect (invalid)

Error in lines2curves.pl, not working with latest osmarender

Reported by: david@… Owned by: osm@…
Priority: major Milestone:
Component: tilesathome Version:
Keywords: osmarender lines2curves.pl Bézier curves Cc:

Description

There is an error in lines2curves.pl, which makes it not working with the latest osmarender.

The problem is on line 67:

    if ( $line =~ m{(<path \s id=\"(?:way|area)_\d+\" \s d=\") # the prefix of the path

should probably be something like (then it works for me)

    if ( $line =~ m{(<path \s id=\"(?:way|area)_(?:normal|mid)_\d+\" \s d=\") # the prefix of the path

Change History (4)

comment:1 Changed 10 years ago by Tom Hughes

Component: utilsosmarender
Owner: changed from Tom Hughes to osm@…

comment:2 Changed 10 years ago by Knut Arne Bjørndal

Component: osmarendertilesathome
Owner: changed from osm@… to osm@…

comment:3 Changed 10 years ago by Knut Arne Bjørndal

Resolution: invalid
Status: newclosed

Are you sure you have the latest file from SVN? Note that http://svn.openstreetmap.org/applications/rendering/tilesAtHome is deprecated, the stable version is http://svn.openstreetmap.org/applications/rendering/tilesAtHome-dev/tags/Ulm

The line you are talking about is no longer at line 67, but at 75, and it's been changed to this:

if ( $line =~ m{(<path \s id=\"(?:way|area)_(\S+)\" \s d=\") # the prefix of the path

Reopen this ticket if updating to the latest version does not fix the problem.

comment:4 in reply to:  3 Changed 10 years ago by david@…

Ok, I get it now, this was not the file I found. There is another file here: http://svn.openstreetmap.org/applications/rendering/osmarender/osmAtHome/lines2curves.pl maybe that should be removed if it is obsolete? I have updated the wiki to point to the correct file (http://wiki.openstreetmap.org/wiki/Osmarender/BezierCurves).

Note: See TracTickets for help on using tickets.