[Mapserver-users] getFeatureInfo on dynamic layer - empty exception

Frieso ter Haseborg ter-haseborg at sf-datentechnik.de
Tue Oct 28 03:51:30 EST 2003


Hi,

I ran into a problem doing a getFeatureInfo-request on a dynamic layer.
I've got a PHP/Mapscript-component to build dynamic layers, this works
well on getMap-requests. Trying to do a getFeatureInfo-request I get
some strange results:

When performin a request with a url like this:

http://my.ip/cgi-bin/mapserv.exe?map=../htdocs/ims.map&version=1.1.0&req
uest=getFeatureInfo&query_layers=wms&x=251&y=329&INFO_FORMAT=text/plain&
BBOX=2574700,5752000,2589700,5767000

I get an xml-doc with an empty exception statement:

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM
"http://www.digitalearth.gov/wmt/xml/exception_1_1_0.dtd">
<ServiceExceptionReport version="1.1.0">
<ServiceException>
</ServiceException>
</ServiceExceptionReport>

This is the corresponding part of the mapfile:

LAYER
   NAME "wms"
   TEMPLATE test.html
   STATUS ON
   TYPE POLYGON
   CONNECTION "http://my.ip/kmvims/test4.php"
   CONNECTIONTYPE WMS
   TOLERANCE 3
   METADATA
     "wms_srs"             "EPSG:26915 EPSG:42101 EPSG:4269 EPSG:4326
EPSG:42304"
     "wms_name"            "wms"
     "wms_title"				"test"
     "wms_server_version"  "1.1.0"
     "wms_formatlist"      "image/gif,image/png,image/jpeg,image/wbmp"
     "wms_format"          "image/gif"
     "WMS_FEATURE_INFO_MIME_TYPE"    "text/html"

   END
   OFFSITE 255 255 255
END

system-configuration: Win2k; Apache 2.0.47; MS 4.0; PHP 4.3.2, MapScript
rev 1.177

The getFeatureInfo-request works fine on my shape-layers but no success
on the dynamic layer. And what's oddest, the php in my dynamic layer
seems not to be executed at all. When doing a getFeatureInfo-request I
do just a echo "test"; and log the get-Parameters into a logfile. But
the log stays untouched, whereas the log works fine on the
getMap-request. Any ideas? 

Any hint would be appreciated.

TIA,
 
Frieso ter Haseborg
- Software Development - 
 
--

-------------------------------------------------- 
S&F Datentechnik GmbH&Co.KG 
Reimersstr. 41b 
26789 Leer, Germany






More information about the mapserver-users mailing list