Hi: I'm trying to make a getfeatureinfo request to a wms server (SIGPAC SPAIN). Here is the layer definition of my map file: LAYER NAME 'sigpac' TYPE RASTER CONNECTIONTYPE WMS CONNECTION 'http://wms.mapa.es/wms/wms.aspx?' METADATA 'wms_name' 'PARCELA' 'wms_server_version' '1.1.1' 'wms_format' 'image/png' 'wms_srs' 'EPSG:23029' 'wms_style' 'default' END METADATA 'wms_title' 'sigpac' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION "+proj=utm +zone=29 +ellps=intl +no_defs " END END
Pmapper draws this layer without problems but when I click on it to get information pmapper doesn`t work . I found that there was an error receveid in the log: [02-Jul-2009 18:38:05] P.MAPPER debug info dumpWMSQueryResults() - FeatureInfoURL: http://wms.mapa.es/wms/wms.aspx?QUERY_LAYERS=PARCELA&LAYERS=PARCELA&REQUEST=GetFeatureInfo&SERVICE=WMS&FORMAT=image%2Fpng&STYLES=default&HEIGHT=778&VERSION=1.1.1&SRS=EPSG:23029&WIDTH=1446&BBOX=639735%2E81505717%2C4772934%2E77107955%2C640500%2E460482175%2C4773345%2E93335999&TRANSPARENT=TRUE&FEATURE_COUNT=10&INFO_FORMAT=MIME&X=952&EXCEPTIONS=application/vnd.ogc.se_xml&Y=236 [02-Jul-2009 18:38:06] P.MAPPER debug info dumpWMSQueryResults() - Query Result: Array ( [0] => <?xml version="1.0" encoding="iso-8859-1" standalone="no"?> [1] => <!DOCTYPE WMT_MS_Capabilities SYSTEM " http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> [2] => <ServiceExceptionReport version="1.1.1"> [3] => <ServiceException code="InvalidFormat"><![CDATA[La petición contiene un formato no ofrecido por el servicio.]]></ServiceException> [4] => </ServiceExceptionReport> ) [3] means that there was an invalid format, so I changed line 375 in incphp/query/squery.php: $wmsResultURL = $this->qLayer->getWMSFeatureInfoURL($this->x_pix, $this->y_pix, 10, "MIME"); => $wmsResultURL = $this->qLayer->getWMSFeatureInfoURL($this->x_pix, $this->y_pix, 10, "text/html"); After this, I clicked again and the log showed: [02-Jul-2009 19:40:14] P.MAPPER debug info dumpWMSQueryResults() - FeatureInfoURL: http://wms.mapa.es/wms/wms.aspx?QUERY_LAYERS=PARCELA&LAYERS=PARCELA&REQUEST=GetFeatureInfo&SERVICE=WMS&FORMAT=image%2Fpng&STYLES=default&HEIGHT=745&VERSION=1.1.1&SRS=EPSG:23029&WIDTH=1446&BBOX=628022%2E459323108%2C4759730%2E21699973%2C628787%2E104749111%2C4760123%2E91679001&TRANSPARENT=TRUE&FEATURE_COUNT=10&INFO_FORMAT=text%2Fhtml&X=972&EXCEPTIONS=application/vnd.ogc.se_xml&Y=134 [02-Jul-2009 19:40:15] P.MAPPER debug info dumpWMSQueryResults() - Query Result: Array ( [0] => <html><head></head><body><table><tr><td><a href=" http://sigpac.mapa.es/fega/visor/AspLayerInfoProvider.aspx?layer=PARCELA&id=544471819&image=ORTOFOTOS ">544471819</a></td></tr></table></body></html> ) which is the correct response (is a link to a web with information), but I don`t know how to show this link back in pmapper. Anyone has any idea? ------------------------------------------------------------------------------ _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users