Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Error in lines2curves.pl, not working with latest osmarender #2002

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

Comments

@openstreetmap-trac
Copy link

Reporter: david[at]oxtract.se
[Submitted to the original trac issue database at 3.34pm, Sunday, 28th June 2009]

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

@openstreetmap-trac
Copy link
Author

Author: bob[at]cakebox.net
[Added to the original trac issue at 4.23pm, Monday, 29th June 2009]

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.

@openstreetmap-trac
Copy link
Author

Author: david[at]oxtract.se
[Added to the original trac issue at 7.52pm, Monday, 29th June 2009]

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant