Hi,
I can render XML map definitions in python but not with the QT based
viewer.
Using information from the XML tutorial at XmlGettingStarted I get
the following output.
Python
---------
>>> mapnik.render_to_file(m, map_output)
scale=0.351562
start map processing bbox=Envelope(-180,-135,180,135)
scale denominator = 1.39771e+08
start layer processing : world
datasource = 0x331010
total shapes read=3784
end layer processing
end map processing
0.99 s
Viewer
---------
carl-gleisners-macbook:MacOS carlj$ ./viewer
loading /Users/carlj/milos/geodata/world_styles.xml
Warning: program compiled against libxml 207 using older 206
scale=75046.8
start map processing
bbox
=
Envelope
(-22326437.1984382,-20037508.3428,22326437.1984382,20037508.3428)
start layer processing : world
datasource = 0
end layer processing
end map processing
Envelope
(-22326437.1984382,-20037508.3428,22326437.1984382,20037508.3428)
(getting the steelblue background)
XML map definition
--------------------------
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<Map bgcolor="steelblue" srs="+proj=latlong +datum=WGS84">
<Style name="My Style">
<Rule>
<PolygonSymbolizer>
<CssParameter name="fill">#f2eff9</CssParameter>
</PolygonSymbolizer>
<LineSymbolizer>
<CssParameter name="stroke">rgb(50%,50%,50%)</CssParameter>
<CssParameter name="stroke-width">0.1</CssParameter>
</LineSymbolizer>
</Rule>
</Style>
<Layer name="world">
<StyleName>My Style</StyleName>
<Datasource>
<Parameter name="type">shape</Parameter>
<Parameter name="file">/Users/carlj/milos/geodata/world_borders/
world_borders</Parameter>
</Datasource>
</Layer>
</Map>
My environment
----------------------
Mapnik 0.6.0
Mac OS X 10.5.6
Boost 1.35 (built using macprots according to instructions)
Is this a known issue? Cannot find anything in the archive.
Where am I wrong with this thing?
Best regards, Carl Gleisner
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users