Hello Jürgen
Thank you for your answer

I presume the dll needed are the ones available in the apps\qgis\plugins folder in the Qgis installation (postgresprovider.dll and ogrprovider.dll)

I tried to add that folder to my PATH environement variable but it didnt change anything.

I also ran qgis_mapserv.fcgi.exe into Dependency Walker to see if there was some dll not found, but I dont see anything wrong beside the fact none of the dll in the plugins folder are even wanted at all.
the only qgis dll loaded are:
QGIS_CORE.dll and QGIS_ANALYSIS.dll,
there are also a bunch of osgeo dll loaded from C:\OSGeo4W\bin (I wont list them here)

maybe the dll are dynamically loaded when the correct parameter are passed to the cgi? sadly I didnt found any way to simulate the passing of the SERVICE=WMS&REQUEST=GetCapabilities query string when accessing the qgis_mapserv.fcgi.exe directly in commandline.

I tried to copy all the dll from apps\qgis\plugins into the C:\OSGeo4W\bin folder, and restart apache, it didnt solve the problem either.

Did anyone succeded to make qgis-mapserver work correctly on windows ?

regards
Oliver

----- Original Message ----- From: "Jürgen E. Fischer" <[email protected]>
To: <[email protected]>
Sent: Friday, February 11, 2011 9:16 PM
Subject: Re: [Qgis-user] qgis-mapserver on Windows ignore my postgis andshapefile layers


Hi Oliver,

On Fri, 11. Feb 2011 at 15:38:10 +0100, Oliver Christen wrote:
(The project is the same I used on Linux, but I had to correct the path
to the shapefiles as they seems to be stored as absolut path in the QGIS
project and obviously the apache cgi-bin folder is not at the same place
on both OS)

Any idea why the postgis and shapefile layers are ignored?

Is suspect that mapserver doesn't find some DLLs an therefore cannot load the postgres and OGR provider. Unfortunately I think with the current apache in OSGeo4W one cannot SetEnv PATH for CGIs (this could be [1]) and so you'd have
to change the PATH for the service is running in.

IIRC running apache manually from a cmd with proper PATH did help. I didn't
find time to debug that further, but now that the Qt update is done...


Jürgen

[1] https://issues.apache.org/bugzilla/show_bug.cgi?id=43906

--
Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-20 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de

--
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user


_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to