Dear all,

I was trying to build a map of strings, where each string fill its entire 
shape, e.g. to display the name of the mountain ranges. Although I studied the 
documentation on Trac and the code itself, I was not able to find anything like 
this in the current /branches/0.7 release (unfortunately, I am not able to 
build boost 1.41 so I cannot use /trunk at the moment).

Therefore, I modified the current text renderer (placement_finder to be more 
exact) to support "justified" text rendering for line placement. Below are some 
screen-shots showing the end result (please note that the style is not optimal 
yet!).

An example of such a map is shown in the following image:

        o http://gmajna.net/svojat/lemmy/rezi.png

And two samples once integrated with our 3d visualisation soultion Gaea+:

        o http://gmajna.net/svojat/lemmy/gaea-1.png
        o http://gmajna.net/svojat/lemmy/gaea-2.png

Although such a style is seldom used in maps seen on the web I was wondering 
whether there is anyone else interested in such a feature of the text renderer. 
If so, I can try to clean up the code (yes, it's been a while since I worked 
with C++ :)) and share it.

Wish you all a great weekend,

        Gregor

=======================================================
Gregor Berginc | Product Manager | Gaea+
XLAB d.o.o. | Pot za Brdom 100 | SI-1000 Ljubljana | Slovenia | Europe
http://gaeaplus.com | [email protected] | http://xlab.si
T. +386 1 2447 754 | M. +386 31 340 745


_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to