[Geomoose-users] Fwd: Highlighting issue (Mapserver layer)
Matej Mailing
mailing at tam.si
Tue Oct 16 08:08:50 PDT 2012
Hi,
I was able to track the issue down to the query.php mode='map'. It
seems that this part of the code:
$request = ms_newowsrequestobj();
$request->loadparams();
ms_ioinstallstdouttobuffer();
$highlight_map->owsdispatch($request);
$contenttype = ms_iostripstdoutbuffercontenttype();
header('Content-type: '.$contenttype);
ms_iogetStdoutBufferBytes();
ms_ioresethandlers();
doesn't work as it should. The features are successfully added in the
for loop as points, but then it stops and I get a blank image. I am
using Ubuntu and have found out some issues with loadparams() and
suggestions to replace it with
foreach ($_GET as $k=>$v) {
$request->setParameter($k, $v);
}
but still - a blank image.
When checking the $request->numparams and $request->type, I get 19 for
numparams and 4294967295 for type so I suppose the parameters are
comming in successfully. What is the best way to debug further on?
Thanks for any ideas in advance.
Matej
---------- Forwarded message ----------
From: Matej Mailing <mailing at tam.si>
Date: 2012/10/16
Subject: Highlighting issue (Mapserver layer)
To: GeoMOOSE Users List <geomoose-users at lists.osgeo.org>
Hi,
I have a Mapserver layer where I can get the results successfully
from. There is also a highlight mapsource defined in mapbook:
" <map-source name="highlight" type="mapserver">
<file/>
<layer name="highlight"/>
<param name="TRANSPARENT" value="TRUE"/>
</map-source>"
I can see in firebug that the following request is made:
URL/query.php?service=WMS&version=1.1.1&request=GetMap&styles=&format=image%2Fjpeg&TRANSPARENT=true&MAP=&FORMAT=image%2Fpng&HIGHLIGHT=true&LAYER0=name1%2Fname2&TEMPLATE0=itemquery&FIELDNAME0=mac&COMPARITOR0=like-icase&VALUE0=54&DOJO_PREVENTCACHE=1350384735029&LAYERS=highlight
...
However the resulting image is empty. There is a file highlight.map in
php/itemquery directory, should I include it somewhere else?
Parameters in the query that contain data and attributes are the same
as in the working query result. For others I am not sure - shouldn't I
include highlight.map somewhere by name in the mapbook.xml?
I believe I am missing something but can't find out what.
Thanks,
Matej
More information about the Geomoose-users
mailing list