Re: [Qgis-developer] qgis-mapserver error?
On Tue, 15 Mar 2011 17:19:24 +0100, Marco Hugentobler wrote: > Hi Paolo > > As the error message indicates, there needs to be a service parameter. Try > this: > > http://localhost/cgi- > bin/toscana/qgis_mapserv.fcgi?SERVICE=WMS&REQUEST=GetCapabilities You're right, thanks Marco, and sorry for bothering. All the best. -- http://faunalia.it/pc ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis-mapserver error?
On Tue, 15 Mar 2011 17:29:45 +0100, Andreas Neumann wrote: > Well, that is normal - it is not a complete URL. You need to specify > the service (WMS) and the command > (GetCapabilites,GetMap,GetFeatureInfo,GetLegendGraphic,GetPrint) with > some additional parameters, depending on the command. > > The link you provide below is not complete and will in any case trigger > an error. Yes, but from within QGIS I get this (I'm pretty sure it worked a few weeks ago): Could not understand the response. The wms provider said: Could not get WMS capabilities: unexpected character at line 1 column 50 This is probably due to an incorrect WMS Server URL. Response was: 500 Internal Server Error Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/2.2.17 (Debian) Server at localhost Port 80 http://www.w3.org/2001/XMLSchema-instance"; version="1.3.0" xmlns="http://www.opengis.net/wms"; xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd";> WMS QGIS mapserver A WMS service with QGIS mapserver QGIS mapserver http://www.w3.org/1999/xlink"; xlink:href="http://www.sourcepole.ch/"/> Marco Hugentobler Sourcepole AG postal Elestastr. 18 Bad Ragaz SG 7310 SWITZERLAND +41 43 377 08 21 marco.hugentob...@sourcepole.ch none none 99 text/xml http://www.w3.org/1999/xlink"; xlink:href="http://localhost/cgi-bin/toscana/qgis_mapserv.fcgi?"/> image/jpeg image/png http://www.w3.org/1999/xlink"; xlink:href="http://localhost/cgi-bin/toscana/qgis_mapserv.fcgi?"/> text/plain text/html text/xml http://www.w3.org/1999/xlink"; xlink:href="http://localhost/cgi-bin/toscana/qgis_mapserv.fcgi?"/> text/xml province province EPSG:3003 -4.35611 -4.35611 0 0default default tows:province tows:province EPSG:3003 EPSG:4326 7.4619 12.4127 42.0044 44.4754default default province province EPSG:3003 EPSG:4326 9.6635 12.4127 42.209 44.4734default default Tried URL: http://localhost/cgi-bin/toscana/qgis_mapserv.fcgi?SERVICE=WMS&REQUEST=GetCapabilities -- http://faunalia.it/pc ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis-mapserver error?
Well, that is normal - it is not a complete URL. You need to specify the service (WMS) and the command (GetCapabilites,GetMap,GetFeatureInfo,GetLegendGraphic,GetPrint) with some additional parameters, depending on the command. The link you provide below is not complete and will in any case trigger an error. Andreas Here are some sample requests: //GetFeatureInfo: http://gis.uster.ch/cgi/qgis_mapserv.fcgi?map=/home/www/projekte/liegenschaftsentwaesserung/abwasser_werkplan.qgs&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=Liegenschaften&QUERY_LAYERS=Liegenschaften&STYLES=&BBOX=695675.338601,246009.226167,695855.648485,246107.154828&FEATURE_COUNT=10&HEIGHT=485&WIDTH=893&INFO_FORMAT=text/xml&SRS=EPSG:21781&X=352&Y=225 //GetCapabilities http://gis.uster.ch/cgi/qgis_mapserv.fcgi?map=/home/www/projekte/liegenschaftsentwaesserung/abwasser_werkplan.qgs&SERVICE=WMS&REQUEST=GetCapabilities //GetMap http://gis.uster.ch/cgi/qgis_mapserv.fcgi?map=/home/www/projekte/liegenschaftsentwaesserung/abwasser_werkplan.qgs&LAYERS=Amtliche Vermessung,Werkplan&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:21781&BBOX=696946.87242346,244935.49655783,697023.55888736,244995.20081571&WIDTH=1007&HEIGHT=784&dpi=96 //GetLegendGraphics http://gis.uster.ch/cgi/qgis_mapserv.fcgi?map=/home/www/projekte/liegenschaftsentwaesserung/abwasser_werkplan.qgs&LAYERS=Bodenbedeckungssymbole&FORMAT=image/png&SERVICE=WMS&VERSION=1.3&REQUEST=GetLegendGraphics&EXCEPTIONS=application/vnd.ogc.se_inimage&WIDTH=200&dpi=96 //GetPrint http://gis.uster.ch/cgi/qgis_mapserv.fcgi?map=/home/www/projekte/liegenschaftsentwaesserung/abwasser_werkplan.qgs&SERVICE=WMS&VERSION=1.3&REQUEST=GetPrint&FORMAT=pdf&EXCEPTIONS=application/vnd.ogc.se_inimage&TRANSPARENT=true&SRS=EPSG:21781&DPI=300&TEMPLATE=A3-Quer&map0:extent=695670.5,244696.7,695771,244758.2&map0:rotation=0&map0:scale=250&map0:grid_interval_x=25&map0:grid_interval_y=25&LAYERS=Bodenbedeckung%20(gefiltert)%2CLiegenschaften%2CParzellennummern%2CGemeindegrenze%2CEinzelobjekte%20Fl%C3%A4chen%2CEinzelobjekte%20Linien%2CEisenbahnen%20(Zentrumsachse)%2CEisenbahn%20Schienen%20(doppellinig)%2CGeb%C3%A4ude%20unterirdisch%2CUnterst%C3%A4nde%2CProjektierte%20Geb%C3%A4ude%2CGeb%C3%A4ude%2CGeb%C3%A4ude%20(%C3%BCbriger%20Geb%C3%A4udeteil%20Fl%C3%A4chen)%2CGeb%C3%A4ude%20(%C3%BCbriger%20Geb%C3%A4udeteil%20Linien)%2CGeb%C3%A4udenummern%2CGeb%C3%A4udeadressen%2CFlurnamen%2CStrassenbeschriftung%2CGel%C3%A4ndenamen%2CNamen%20Bodenbedeckung%2CBodenbedeckungssymbole%2CHaltungen%2 0(Massta b%201001%20-%202500)%2CKleine%20Haltungen%20(gr%20Massstab%201000)%2CHauptsammelkan%C3%A4le%20(kl%20Massstab%201000)%2CGrosse%20Haltungen%20(gr%20Massstab%201000)%2CGrosse%20Haltungen-Umrandung%20(gr%20Massstab%201000)%2CHaltungsbeschriftung%2CSonderbauwerke%20Fl%C3%A4chen%2CSonderbauwerke%20Linien%2CZwischenpunkt%2CVerbindungspunkte%20(Knoten%20Haltungs%C3%A4nderung)%2CNormschacht On Tue, 15 Mar 2011 17:10:58 +0100, Paolo Cavallini wrote: On Tue, 15 Mar 2011 15:46:49 +0100, Jürgen E. Fischer wrote: When doing what? http://localhost/cgi-bin/toscana/qgis_mapserv.fcgi? on firefox. -- -- Andreas Neumann Böschacherstrasse 10A 8624 Grüt (Gossau ZH) Switzerland ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis-mapserver error?
Hi Paolo As the error message indicates, there needs to be a service parameter. Try this: http://localhost/cgi- bin/toscana/qgis_mapserv.fcgi?SERVICE=WMS&REQUEST=GetCapabilities Regards, Marco Am Dienstag, 15. März 2011, um 17.10:58 schrieb Paolo Cavallini: > On Tue, 15 Mar 2011 15:46:49 +0100, Jürgen E. Fischer > > wrote: > > When doing what? > > http://localhost/cgi-bin/toscana/qgis_mapserv.fcgi? > on firefox. -- Dr. Marco Hugentobler Sourcepole - Linux & Open Source Solutions Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis-mapserver error?
On Tue, 15 Mar 2011 15:46:49 +0100, Jürgen E. Fischer wrote: > When doing what? http://localhost/cgi-bin/toscana/qgis_mapserv.fcgi? on firefox. -- http://faunalia.it/pc ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis-mapserver error?
Hi Paolo, On Tue, 15. Mar 2011 at 15:36:41 +0100, Paolo Cavallini wrote: > > ??? > > Service not specified. The SERVICE parameter is mandatory > > > > using stock wms_metadata.xml When doing what? Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-20 Dipl.-Inf. (FH) Rheinstraße 13Fax. +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-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] qgis-mapserver error?
Hi all. I'm getting: − Service not specified. The SERVICE parameter is mandatory using stock wms_metadata.xml Any explanation? All the best. -- http://faunalia.it/pc ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis mapserver error
> ls -lh /usr/lib/cgi-bin/test_qgis_mapserver/ > total 20K > lrwxrwxrwx 1 root root 67 2010-08-24 09:45 qgis_mapserv.fcgi -> > /home/luca/compilati/qgis_svn/build/src/mapserver/qgis_mapserv.fcgi > -rwxr-xr-x 1 root root 1.5K 2010-08-24 10:06 wms_metadata.xml > -rwxr-xr-x 1 root root 9.3K 2010-08-25 17:50 world.qgs Why is world.qgs owned by root? I guess this file should be readable by a normal user AND the apache process. Regards, Craig ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis mapserver error
2010/8/25 Pirmin Kalberer : > Hi Luca, > The error message says "Configuration file problem", which means, that no > valid > configuration (SLD or QGS file) was found. > I guess that the world.qgis file in the test_qgis_mapserver directory is > either > missing or not readeable for the Apache process. i have the file, this is my files inside test_qgis_mapserver ls -lh /usr/lib/cgi-bin/test_qgis_mapserver/ total 20K lrwxrwxrwx 1 root root 67 2010-08-24 09:45 qgis_mapserv.fcgi -> /home/luca/compilati/qgis_svn/build/src/mapserver/qgis_mapserv.fcgi -rwxr-xr-x 1 root root 1.5K 2010-08-24 10:06 wms_metadata.xml -rwxr-xr-x 1 root root 9.3K 2010-08-25 17:50 world.qgs > That the error XML message isn't valid is a bug... ok > Regards > Pirmin > regards Luca ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis mapserver error
Luca, I had the same problem when I forgot to copy a .qgs file into the cgi-bin/world directory. Jim On 08/25/2010 05:16 AM, Luca Delucchi wrote: Hi everybody, i tested qgis mapserver, but when i try the getcapabilities request i have this error [0]; i follow the example of tim in his blog [1] Someone can help me? thanks Luca [0] http://pastebin.com/08fNh3ZA [1] http://linfiniti.com/2010/08/qgis-mapserver-a-wms-server-for-the-masses/ ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis mapserver error
Hi Luca, The error message says "Configuration file problem", which means, that no valid configuration (SLD or QGS file) was found. I guess that the world.qgis file in the test_qgis_mapserver directory is either missing or not readeable for the Apache process. That the error XML message isn't valid is a bug... Regards Pirmin Am Mittwoch, 25. August 2010, um 13.45:45 schrieb Luca Delucchi: > 2010/8/25 Pirmin Kalberer : > > Hi Luca, > > > > Could you send me the full output - get it e.g. with wget -O cap.xml > > 'http://localhost/cgi- > > bin/test_qgis_mapserver/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUE > > ST=GetCapabilities' > > in attachment you find the file > > > Regards > > Pirmin > > thank's > Luca -- Pirmin Kalberer Sourcepole - Linux & Open Source Solutions http://www.sourcepole.com ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis mapserver error
2010/8/25 Pirmin Kalberer : > Hi Luca, > > Could you send me the full output - get it e.g. with wget -O cap.xml > 'http://localhost/cgi- > bin/test_qgis_mapserver/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities' > in attachment you find the file > > Regards > Pirmin > thank's Luca http://www.opengis.net/ogc"; > Configuration file problem ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis mapserver error
Hi Luca, Could you send me the full output - get it e.g. with wget -O cap.xml 'http://localhost/cgi- bin/test_qgis_mapserver/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities' Marco is offline this week, so no help from him... Regards Pirmin Am Mittwoch, 25. August 2010, um 12.16:26 schrieb Luca Delucchi: > Hi everybody, i tested qgis mapserver, but when i try the > getcapabilities request i have this error [0]; i follow the example of > tim in his blog [1] > Someone can help me? > > thanks > Luca > > [0] http://pastebin.com/08fNh3ZA > [1] > http://linfiniti.com/2010/08/qgis-mapserver-a-wms-server-for-the-masses/ > ___ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Pirmin Kalberer Sourcepole - Linux & Open Source Solutions http://www.sourcepole.com ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] qgis mapserver error
Hi everybody, i tested qgis mapserver, but when i try the getcapabilities request i have this error [0]; i follow the example of tim in his blog [1] Someone can help me? thanks Luca [0] http://pastebin.com/08fNh3ZA [1] http://linfiniti.com/2010/08/qgis-mapserver-a-wms-server-for-the-masses/ ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer