[OpenLayers-Users] WMSGetFeatureInfo and proxy

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Fri Sep 18 10:53:46 EDT 2009


firebug found OpenLayers.ProxyHost into example.js
That is a script from mapfish used for the print widget example.

Just removed it and now it is working with or without specifying the url 
in the parameters list of WMSGetFeatureInfo.

Thanks for your help,
Steve

Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction des risques biologiques, environnementaux et occupationnels
Institut national de santé publique du Québec
945, avenue Wolfe
Québec, Qc G1V 5B3 
Tél.: (418) 650-5115 #5281
Fax.: (418) 654-3144
steve.toutant at inspq.qc.ca
http://www.inspq.qc.ca
 




Christopher Schmidt <crschmidt at metacarta.com>@openlayers.org 
Envoyé par : users-bounces at openlayers.org
18/09/2009 10:05 AM

A
Steve.Toutant at inspq.qc.ca
cc
users at openlayers.org
Objet
Re: [OpenLayers-Users] WMSGetFeatureInfo and proxy








On Fri, Sep 18, 2009 at 09:27:15AM -0400, Steve.Toutant at inspq.qc.ca wrote:
> Hi,
> I'm using WMSGetFeatureInfo to query a specific layer. The information 
is 
> retrieved from the same server/domain where the application and 
mapserver 
> are installed.
> The answer I get is "The requested URL /cgi-bin/proxy.cgi was not found 
on 
> this server."
> I read this http://faq.openlayers.org/proxyhost/all/
> and I already set a proxy on another server for another project.
> 
> But in this case my understanding was that I don't need a proxy since 
I'm 
> not querying a remote server. I can't see why my code is requesting 
> /cgi-bin/proxy. It should call directly cgi-bin/mapserver? isn'it?
> 
> Here is my code
> infoControls = 
>         {
>             click: new OpenLayers.Control.WMSGetFeatureInfo({
>                 //url: 'http://IP 
> address/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_hlm.map&', 

>                 maxFeatures: 12,
>                 title: 'Identify features by clicking',
>                 layers: [overlays['HLM']],
>                 queryVisible: true,
>                 infoFormat:'text/html'
>             })
> }
> infoControls['click'].events.register("getfeatureinfo", this, showInfo);
> map.addControl(infoControls['click']);
> infoControls['click'].activate();
> 
> If I uncomment the url parameter I got the same result.
> What could be the reason why it is looking for a proxy?
> This line IS NOT in my code
> OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";

If you type "OpenLayers.ProxyHost" into Firebug or some other debugging 
tool,
what does it tell you?

-- Chris

> 
> thanks
> Steve

> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users


-- 
Christopher Schmidt
MetaCarta
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090918/3ae1575f/attachment.html


More information about the Users mailing list