User talk:Esscue/Labelling

From OpenStreetMap Wiki
Jump to navigation Jump to search

Algorithm

Did you document your algorithm somewhere? I'm really interested in improving label-placement in one of the realtime-renderers in Traveling Salesman with this. --MarcusWolschon 06:46, 5 August 2009 (UTC)

I'm not quite sure if simulated annealing would work for a realtime-renderer (I suppose you search something for optimizing moving maps like you have it in a car navigation system. Is this right?). You could read the paper I cited on my page. If this satisfies your needs, you could use my java API. I tried to design the API in a very generic way so that it could also be used independently of batik. But be aware, till now it's undocumented. But as soon as I get a svn account I'll do my best to add the missing documentation.
--Esscue 17:20, 5 August 2009 (UTC)
You can now access the source code (sadly it's not yet well documented) via http://svn.openstreetmap.org/applications/rendering/OSMLabelOptimizer/ . Running ant javadoc will give you the output from javadoc. Perhaps this helps you to get a first impression of the api. If you have questions, don't hesitate to ask me.
--Esscue 21:11, 19 August 2009 (UTC)