Hi Matt,
Thanks a lot for the response.,
I need little more help.
I tried the example using following simple python script.
I was able to get the lines
example<http://trac.mapnik.org/browser/trunk/tests/data/good_maps/markers_symbolizer_lines.xml?rev=2158>
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)
Thanks,
---Manoj.
On Sun, Oct 24, 2010 at 10:13 PM, Matt Kenny <[email protected]> wrote:
> Hi Manoj,
>
> At this point, it looks like the MarkersSymbolizer currently supports SVG
> graphics as input as well as ellipses or circles when no SVG is given:
>
> http://trac.mapnik.org/wiki/MarkersSymbolizer
>
> Here are two examples:
>
> http://trac.mapnik.org/browser/trunk/tests/data/good_maps/markers_symbolizer_points.xml?rev=2158
>
>
> http://trac.mapnik.org/browser/trunk/tests/data/good_maps/markers_symbolizer_lines.xml?rev=2158
>
> Both examples list a minimum version of mapnik 0.7.1.
>
> Hope this helps,
> Matt
>
> On Sun, Oct 24, 2010 at 5:40 PM, Manoj Bist <[email protected]> wrote:
>
>> Hi,
>>
>> Is MarkersSymbolizer supported in 0.7.1 (current Mapnik release)?
>> I am using Mapnik on Ubuntu Karmic. I have build 0.7.1 as per the
>> instructions on documentation.
>> Somehow MarkersSymbolizer is a noop for me. All other symbolizers
>> (LinePattern, TextSymbolizer ShieldSymbolizers are working fine).
>>
>> I had tried to use MarkersSymbolizer last year with 0.6.1 but it did not
>> work that time either.
>>
>> Thanks,
>>
>> --MB.
>>
>>
>> _______________________________________________
>> Mapnik-users mailing list
>> [email protected]
>> https://lists.berlios.de/mailman/listinfo/mapnik-users
>>
>>
>
>
> --
> m a t t h e w k e n n y
> http://www.mkgeomatics.com
>
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users