Hello Dane,

thank you for the anser. Now Quantumnik is starting up.
Now I have the still unsolved issue with not rendering via mapnik. QGIS
draws lines out the postgis db and Mapnik Rendered Map stays white. The
export map graphics works all right.

regards,
Peter

Op 15-2-2011 20:47, Dane Springmeyer schreef:
> Passwords are not supported when reading through Mapnik's OGR plugin,
> which is what is happening because QGIS is reading through OGR.
>
> It is better if you add the Postgres layer using the native PostGIS
> data provider in QGIS, which will then map to Mapnik's native postgis
> plugin.
>
> So, add your layer by going to Layer -> Add PostGIS Layer rather than
> Layer -> Add Vector Layer.
>
> Dane
>
>
> On Feb 15, 2011, at 11:09 AM, Peter Peterse wrote:
>
>> Hello,
>>
>> I've a problem with QGIS and Quantumnik. When I start Quantumnik I
>> get an error:
>> ==============
>> Traceback (most recent call last):
>>   File "C:/Users/myname/.qgis/python/plugins\quantumnik\quantumnik.py", line 
>> 199, in toggle
>>     self.start_rendering()
>>   File "C:/Users/myname/.qgis/python/plugins\quantumnik\quantumnik.py", line 
>> 415, in start_rendering
>>     self.create_mapnik_map()
>>   File "C:/Users/myname/.qgis/python/plugins\quantumnik\quantumnik.py", line 
>> 382, in create_mapnik_map
>>     self.mapnik_map = self.easyCanvas.to_mapnik()
>>   File "C:/Users/myname/.qgis/python/plugins\quantumnik\sync.py", line 1256, 
>> in to_mapnik
>>     if lyr_a.is_valid():
>>   File "C:/Users/myname/.qgis/python/plugins\quantumnik\sync.py", line 1091, 
>> in is_valid
>>     ds = self.datasource()
>>   File "C:/Users/myname/.qgis/python/plugins\quantumnik\sync.py", line 762, 
>> in datasource
>>     return self.ogr()
>>   File "C:/Users/myname/.qgis/python/plugins\quantumnik\sync.py", line 60, 
>> in newf
>>     return f(*_args, **_kwds)
>>   File "C:/Users/myname/.qgis/python/plugins\quantumnik\sync.py", line 894, 
>> in ogr
>>     return 
>> mapnik.Ogr(file=self.source,layer=self.sub_layer_name,multiple_geometries=multiple_geometries)
>>   File "D:\OSGeo4W\apps\Python25\lib\site-packages\mapnik\__init__.py", line 
>> 418, in Ogr
>>     return CreateDatasource(keywords)
>> RuntimeError: Connection failed: PG:dbname='top10nl' host='remote-localhost' 
>> port='5432' user='dbuser' password='pwd231s' was not found or is not a 
>> supported format
>>
>> Python versie:
>> 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
>>
>>
>> QGIS versie:
>> 1.6.0-Capiapo Capiapo, exported
>>
>> Python pad: ['D:/OSGeo4W/apps/qgis/./python', 
>> 'C:/Users/myname/.qgis/python', 'C:/Users/myname/.qgis/python/plugins', 
>> 'D:/OSGeo4W/apps/qgis/./python/plugins', 'D:\\OSGeo4W\\apps\\gdal-17\\pymod' 
>> <smb://OSGeo4W//apps//gdal-17//pymod%27>, 'C:\\', <smb://%27,> 
>> 'D:\\OSGeo4W\\bin\\python25.zip' <smb://OSGeo4W//bin//python25.zip%27>, 
>> 'D:\\OSGeo4W\\apps\\Python25\\DLLs' 
>> <smb://OSGeo4W//apps//Python25//DLLs%27>, 'D:\\OSGeo4W\\apps\\Python25\\lib' 
>> <smb://OSGeo4W//apps//Pytho%0An25//lib%27>, 
>> 'D:\\OSGeo4W\\apps\\Python25\\lib\\plat-win' 
>> <smb://OSGeo4W//apps//Python25//lib//plat-win%27>, 
>> 'D:\\OSGeo4W\\apps\\Python25\\lib\\lib-tk' 
>> <smb://OSGeo4W//apps//Python25//lib//lib-tk%27>, 
>> 'D:\\OSGeo4W\\apps\\qgis\\bin' <smb://OSGeo4W//apps//qgis//bin%27>, 
>> 'D:\\OSGeo4W\\apps\\Python25' <smb://OSGeo4W//apps//Python25%27>, 
>> 'D:\\OSGeo4W\\apps\\Python25\\lib\\site-packages' 
>> <smb://OSGeo4W//apps//Python25//lib//site-packages%27>, 
>> 'D:\\OSGeo4W\\apps\\qgis\\python\\plugins\\fTools\\tools'] 
>> <smb://OSGeo4W//apps//qgis//python//plugins//fTools//tools%27]>
>> ==============
>>
>> QGIS has no problem to create a databse connection. It shows the map
>> without any problems.
>>
>> Can anyone help me to solve this problem?
>>
>> Thanks,
>> Peter
>> _______________________________________________
>> Mapnik-users mailing list
>> [email protected] <mailto:[email protected]>
>> https://lists.berlios.de/mailman/listinfo/mapnik-users
>

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

Reply via email to