[OpenLayers-Users] GetFeatureInfo problems

Maria Panagou snowdrop at ath.forthnet.gr
Sun Jan 20 20:22:32 EST 2008


Thanks for your response. I managed to get the results locally by issuing the
following address in IE:

http://127.0.0.1/cgi-bin/mapserv.exe?map=../htdocs/mpanagou/Quakes1local.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&INFO_FORMAT=text/html&W
IDTH=650&HEIGHT=530&BBOX=19.2, 34.5, 29.8,
42.1&QUERY_LAYERS=Quakes&EXCEPTIONS=application/vnd.ogc.se_xml&X=185&Y=194&LAYERS=Quakes

however through my OL html page I still get the same error "Permition
denied.....". layer "quakes is defined as 

var quakes = new OpenLayers.Layer.WMS( "Óçìáíôéêïß Óåéóìïß", 
                       "http://127.0.0.1/cgi-bin/mapserv.exe?", 
                        {map: '../htdocs/mpanagou/Quakes1local.map', 
                          layers: 'Quakes',
						  transparent: true},
                          {isBaseLayer:false, singletile:true, reproject:
true});

which means that it is requested locally and proxy host is not needed. I set
up i proxy host on my pc and added the line

OpenLayers.ProxyHost = "http://127.0.0.1/cgi-bin/proxy.cgi?url="; 

to the html

by visiting  http://127.0.0.1/cgi-bin/proxy.cgi? 
I see openlayers page as i should but when i try:

http://127.0.0.1/cgi-bin/proxy.cgi?url=http://127.0.0.1/cgi-bin/mapserv.exe?map=../htdocs/mpanagou/Quakes1local.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&INFO_FORMAT=text/html&WIDTH=650&HEIGHT=530&BBOX=19.2,%2034.5,%2029.8,%2042.1&QUERY_LAYERS=Quakes&EXCEPTIONS=application/vnd.ogc.se_xml&X=185&Y=194&LAYERS=Quakes

i get the message

This proxy does not allow you to access that location.

{'TMP': '/ms4w/tmp', 'HTTP_COOKIE':
'__utma=96992031.910308952.1200877826.1200877826.1200877826.1;
__utmb=96992031; __utmc=96992031;
__utmz=96992031.1200877826.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)',
'SERVER_SOFTWARE': 'Apache/2.2.4 (Win32)', 'SCRIPT_NAME':
'/cgi-bin/proxy.cgi', 'SERVER_SIGNATURE': '', 'REQUEST_METHOD': 'GET',
'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING':
'url=http://127.0.0.1/cgi-bin/mapserv.exe?map=../htdocs/mpanagou/Quakes1local.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&INFO_FORMAT=text/html&WIDTH=650&HEIGHT=530&BBOX=19.2,%2034.5,%2029.8,%2042.1&QUERY_LAYERS=Quakes&EXCEPTIONS=application/vnd.ogc.se_xml&X=185&Y=194&LAYERS=Quakes',
'PATH':
'C:\\WINDOWS\\SYSTEM32;C:\\WINDOWS;C:\\WINDOWS\\SYSTEM32\\WBEM;C:\\PROGRAM
FILES\\VDMSOUND;C:\\PROGRAM FILES\\HYDRAULICS\\HEC\\HMS 222;C:\\PROGRAM
FILES\\HYDRAULICS\\HEC\\HMS 222\\BIN;G:\\Raster Design
2007;C:\\ArcGIS\\arcexe9x\\bin;C:\\Program Files\\Common Files\\Autodesk
Shared\\;C:\\PROGRA~1\\COMMON~1\\AUTODE~1\\GIS\\IMPORT~1\\2.0;C:\\Program
Files\\ATI Technologies\\ATI.ACE\\Core-Static;C:\\Program
Files\\QuickTime\\QTSystem\\', 'GDAL_DRIVER_PATH': '/ms4w/gdalplugins',
'HTTP_CONNECTION': 'Keep-Alive', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR':
'127.0.0.1', 'SERVER_PORT': '80', 'SERVER_ADDR': '127.0.0.1',
'DOCUMENT_ROOT': 'C:/ms4w/Apache/htdocs', 'GDAL_DATA': '/ms4w/gdaldata',
'SYSTEMROOT': 'C:\\WINDOWS', 'COMSPEC': 'C:\\WINDOWS\\system32\\cmd.exe',
'SCRIPT_FILENAME': 'C:/ms4w/Apache/cgi-bin/proxy.cgi', 'SERVER_ADMIN':
'snowdrop at ath.forthnet.gr', 'HTTP_USER_AGENT': 'Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)',
'HTTP_HOST': '127.0.0.1', 'PATHEXT':
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH', 'REQUEST_URI':
'/cgi-bin/proxy.cgi?url=http://127.0.0.1/cgi-bin/mapserv.exe?map=../htdocs/mpanagou/Quakes1local.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&INFO_FORMAT=text/html&WIDTH=650&HEIGHT=530&BBOX=19.2,%2034.5,%2029.8,%2042.1&QUERY_LAYERS=Quakes&EXCEPTIONS=application/vnd.ogc.se_xml&X=185&Y=194&LAYERS=Quakes',
'HTTP_ACCEPT': 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/x-gsarcade-launch,
application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword,
*/*', 'WINDIR': 'C:\\WINDOWS', 'GATEWAY_INTERFACE': 'CGI/1.1',
'REMOTE_PORT': '2065', 'HTTP_ACCEPT_LANGUAGE': 'el', 'PROJ_LIB':
'/ms4w/proj/nad/', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate'}


i'll try with window.open(url) cause that's what I probably want after all
and it may be easier.
-- 
View this message in context: http://www.nabble.com/GetFeatureInfo-problems-tp14985142p14989566.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list