[Tilesathome] improvements for lines2curves.pl (BezierCurves)
Martin Ždila
martin.zdila at freemap.sk
Mon Apr 11 11:28:47 BST 2011
Hello
We are using slightly modified tiles at home project to render map of Slovakia
at http://www.freemap.sk/. To make the map nicer, we are using
lines2curves.pl.
I found 2 problems there:
1. The script doesn't handle inner ways of multipolygons. Please check my
patch that fixes this issue: http://pastebin.com/G92Khdda
2. last line segment of the polygon is not curved. Currently I can easily
fix this problem because it is "slightly" more complicated than previous
one.
Small improvement is gained if
while (@$points_ref >= 3) {
is replaced by
while (@$points_ref >= 2) {
This way only last node is left sharp, but the previous one is "weirdly"
curved.
Could this be fixed? I can attach a very small example (osm and svg file),
but I am not sure if this mailing list supports attachments.
Thanks in advance
Best regards
--
Ing. Martin Ždila
OZ Freemap Slovakia
tel:+421-908-363-848
mailto:martin.zdila at freemap.sk
http://www.freemap.sk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20110411/eead78ef/attachment.html>
More information about the Tilesathome
mailing list