On Oct 26, 2010, at 11:27 PM, Manoj Bist wrote: > Hi, > > For me MarkersSymbolizer does not completely work with 0.7.1(details pasted > below previous conversation). > It does work with the mapnik2 code I downloaded from trunk. > > 1) Can someone confirm if the MarkersSymbolizer really works with 0.7.1 as > documented(if you have used it)? Or do I have to use some patch to get this > feature completely(by complete I mean use the options like allow_overlap and > color). >
Yes, sorry i did not respond sooner Manoj. The MarkersSymbolizer only supports these advanced features in Mapnik trunk (Mapnik2). Mapnik 0.7.x support is limited to blue arrows, whereas trunk has a number of new features as you can see on the wiki. > 2) Or is mapnik trunk (mapnik2) is really my only option. Yes, if you want to use these advanced features of MarkersSymbolizer. > If so, could someone comment on how risky Mapnik2 is for creating some tiles > offline. The code is now becoming much more stable, so I think it is certainly viable to use. If you are using generate_tiles.py you may just need to upgrade the import statement from: import mapnik to import mapnik2 I am happy to answer any other specific questions you may have about Mapnik2. > In past(when it was 0.6.x), I always used the trunk, as it was (I thought!) > considered to have the most recent bug fixes and relatively stable. I am not > sure mapnik2 is right for only mapnik developer, or its pre beta meant for > somone who really need the new features, or considered beta quality that is > propbaby ok use (With your milage may vary caveat). > > Thanks, > > --Manoj. > > ========= Details of what didn't work form in 0.7.1============ > > I tried the example using following simple python script. > I was able to get the lines example to work partially. Not sure what I am > missing. Here is what happens. > > 1) The image get the markerssymbolizer only on a pentagon, but not on spiral > or other line. > 2) The markers are blue in color (instead of colors specified in the xml). I > tried giving different colors and different options, but I am not able > to get the markers look different. > 3) (I am hoping this might help in debugging). I am not able to change the > color of line (LineSymbolizer) using attributes, but I am able to change the > color using the CSSParameter tags. > ie. following works, > > <LineSymbolizer> > <CssParameter name="stroke">#347C17</CssParameter> > <CssParameter name="stroke-width">2.5</CssParameter> > </LineSymbolizer> > > but this doesn't > <LineSymbolizer stroke-width=".2" stroke="red" /> > > #############script used to render ##### > #!/usr/bin/env python > import mapnik > mapfile = 'markers_symbolizer_lines.xml' > map_output = 'hello_world_using_xml_config.png' > m = mapnik.Map(600, 600) > mapnik.load_map(m, mapfile) > bbox = mapnik.Envelope(mapnik.Coord(-180.0, -70.0), mapnik.Coord(180.0, 70.0)) > m.zoom_to_box(bbox) > mapnik.render_to_file(m, map_output) > > > _______________________________________________ > 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

