| btw, Matt, I think I have a early revision of the patch somewhere I never finished (or posted) that expands the interface exposed in XML, adding options:
+ optional<boolean> off_start = get_opt_attr<boolean>(sym, "offset_start"); + optional<boolean> off_end = get_opt_attr<boolean>(sym, "offset_end"); + optional<boolean> symmetric = get_opt_attr<boolean>(sym, "symmetric");
basically I was playing with the idea of easily adding two offsets on each side of the line with symmetric=true rather than adding two symbolizers with positive and negative offsets.
And the offset_start and offset_end options would allow you to draw lines without offsets at endpoints. Image attached. Really I think for this to be useful we'd want to curved line from the last offset vertex and the endpoint.
So, basically as you use the patch keep your thoughts about what options need to be expose. Dane

On Jun 12, 2010, at 1:17 PM, Dane Springmeyer wrote: On Jun 12, 2010, at 12:55 PM, Matt Kenny wrote: Hello Everyone,
I'm working with mapnik to generate some tiles resulting from a pgRouting analysis (http://mkgeomatics.com/apps/bus/bus.html). These buildings currently are symbolized based on their proximity to bus stop locations.
I'd like to be able to display overlapping bus as offset lines, and have found these series of patches: http://trac.mapnik.org/ticket/180
I'm currently running mapnik version 0.7.1, and am wondering if anyone has tried applying these patches with that version? Any tips on exactly which combination of the three available patches i should be applying?
Hi Matt,
I think you'll want the second one as the third only provides a patch for one specific file. If you need the better handling of spikes then do svn revert include/mapnik.ctrans.hpp then apply the third patch on top of the previously patched code.
I just tested and it seems to apply fine against Mapnik 0.7.1:
cd release-0.7.1 patch -p0 < offset-0.7.0.patch svn revert include/mapnik/ctrans.hpp patch -p0 < sharp_spike_fix.patch
If you get this far and it builds fine, please do:
svn diff > mapnik0.7.1-offsets.patch
and re-post that to trac.
Thanks!
Dane
_______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users
|
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users