Dane Springmeyer wrote:
Quantumnik requires QGIS and some python modules to be installed first. Since 
QGIS uses its own copy of python2.5, the module installation seems not simple 
as usual.

That depends on the way that QGIS was built, but yes on windows the author has 
decided to bundle python25 inside the QGIS download which makes it a bit of a 
pain to get mapnik's python bindings recognized, but it can be done.

It will be grateful if you could offer some instructions on setting up Quantumnik on windows.
It is now able to build up a QStandardItemModel and optionally a QTreeView to 
display/modify the attributes of map and its layers.

I tried this on mac osx and could not get anything to appear...

Perhaps related?

Traceback (most recent call last):
  File "main_window.py", line 81, in on_actionOpen_triggered
    map_widget.open(q2py(xml))
  File "/Users/dane/Desktop/MapnikWidget.py", line 146, in open
    self.buildMapTree()
  File "/Users/dane/Desktop/MapnikWidget.py", line 95, in buildMapTree
    self.root.appendRow(_build_nvp('background', 
self.map.background.to_hex_string(), True))
AttributeError: 'NoneType' object has no attribute 'to_hex_string'


That's quite odd. Shouldn't the Map.background attribute already be available after the mapnik.load_map(self.map, xml) in MapnikWidget.open()? On win xp/vista the script runs successfully with mapnik0.71.


I forgot to remove these code at the beginning of the MapnikWidget.py

font_engine = mapnik.FontEngine.instance()
font_engine.register_font('C:/WINDOWS/Fonts/msyh.ttf')
font_engine.register_font('C:/WINDOWS/Fonts/msyhbd.ttf')

Does it matter?


p.s. The nabble proxy of mapnik-devel seems broken. There is only on post 
there. Hope someone can fix that. Nabble is very convenient while outside. The 
mail-archive.com is blocked by the nation's fire wall.

I've never looked at nabble for mapnik - can you advice on what you think might 
need to be done to fix it?


Some introduction from nabble site http://www.nabble.com/help/Answer.jtp?id=36 If not you, there must be someone else who built up this proxy for mapnik mailing list.
The mapnik on nabble : http://old.nabble.com/Mapnik-f28006.html.
The two child forums are corresponding to the two mailing lists.
You can view posts in different styles just like forum threads, and do the subscription, reply, post all in one place. Currently, mapnik nabble is still in old nabble system. There is hint below the child forum list:"To migrate this forum to the new Nabble2 system, please post a request in the Nabble support <http://n2.nabble.com/Nabble-Support-f1.html> forum". That could be helpful. But the Mapnik-Devel forum seems not setting properly to handle the mailing list server. Furthermore, osm has already been migrated to the nabble2 system: http://gis.638310.n2.nabble.com/OpenStreetMap-f660402.html It is grouped under GIS, and osm also quote the mapnik in its tools group, just like a huge forum consists of mailing lists.


 Regards, zsj
<http://old.nabble.com/Mapnik---Devel-f28008.html>



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

Reply via email to