<div dir="ltr">Andy: It's a known issue: <a href="https://github.com/mapserver/mapserver/issues/5205">https://github.com/mapserver/mapserver/issues/5205</a>, that requires some non trivial amount of work to fix. Funding may help to get this fixed faster, you could contact Tamas if you wanted to go in that direction.<div>Regards,</div><div>Thomas<br><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 19 April 2016 at 12:07, AndyC79 <span dir="ltr"><<a href="mailto:acowie@gmail.com" target="_blank">acowie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Upgraded to MS 7 from 6.4.1 recently - getfeatinfo requests that used to<br>
work against clustered layers, now return 500s with Apache logs detailing:<br>
<br>
End of script output before headers: mapserv<br>
<br>
Which as far as I understand means the mapserv process crashed?<br>
<br>
request e.g:<br>
<br>
http://<server>/cgi-bin/mapserv?map=/path/to/mapfile.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&FORMAT=png8&TRANSPARENT=true&QUERY_LAYERS=TEST&LAYERS=TEST&TILED=true&INFO_FORMAT=application%2Fjson&X=50&Y=50&SRS=EPSG%3A3031&STYLES=&WIDTH=101&HEIGHT=101&BBOX=-925990.5180299012%2C195459.73995354102%2C-432454.67464720976%2C688995.5833362325<br>
<br>
I tried also using PHP mapscript to assemble a point query against the<br>
cluster layer, however that also does not seem to work in MS 7. It fails at<br>
the layerObj->queryByPoint method.<br>
<br>
Makes me think there's either something fundamentally problematic with<br>
querying CLUSTER layers in MS 7. Or perhaps the way I've had my mapfile<br>
configured is now causing an issue.<br>
<br>
** Can anyone confirm that getfeatureinfo / php mapscript queryByPoint is<br>
working against CLUSTER layers in MS 7 ? **<br>
<br>
The CLUSTERs draw fine. Just the querying that seems an issue.<br>
<br>
Below extract from mapfile. I can provide further details if necessary.<br>
<br>
<br>
LAYER<br>
NAME 'rsr_sites'<br>
TEMPLATE "../templates/rsr_sites_info_template.js"<br>
TYPE POINT<br>
INCLUDE "includes/connection.inc"<br>
DATA "the_geom FROM (SELECT gid, the_geom, id AS site_id, url, lon, lat<br>
FROM data.rsr_sites) AS query USING UNIQUE gid USING srid=3031"<br>
INCLUDE 'includes/proj_3031.inc'<br>
METADATA<br>
"ows_name" "rsr_sites"<br>
"ows_title" "RSR"<br>
INCLUDE 'includes/default_layer_metadata.inc'<br>
END<br>
TOLERANCE 8<br>
CLUSTER<br>
MAXDISTANCE 22<br>
REGION "ellipse"<br>
END<br>
PROCESSING 'ITEMS=site_id,url,lon,lat'<br>
PROCESSING "CLUSTER_GET_ALL_SHAPES=ON"<br>
LABELITEM "Cluster_FeatureCount"<br>
CLASSITEM "Cluster_FeatureCount"<br>
CLASS<br>
NAME "Multiple Sites - proportional symbol"<br>
EXPRESSION ("[Cluster_FeatureCount]" != "1")<br>
STYLE<br>
MINSIZE 25<br>
MAXSIZE 50<br>
SIZE [Cluster_FeatureCount]<br>
SYMBOL "Circle"<br>
COLOR '#885e49'<br>
END<br>
LABEL<br>
FONT ATTriumMou-Cond<br>
TYPE TRUETYPE<br>
SIZE 7<br>
MAXSIZE 8<br>
MINSIZE 7<br>
COLOR 255 255 255<br>
ALIGN CENTER<br>
PRIORITY 10<br>
PARTIALS TRUE<br>
FORCE TRUE<br>
POSITION cc<br>
END<br>
END<br>
CLASS<br>
NAME 'Single Site'<br>
EXPRESSION '1'<br>
STYLE<br>
SYMBOL 'Square'<br>
SIZE 8<br>
MINSIZE 8<br>
MAXSIZE 8<br>
COLOR '#953d38'<br>
END<br>
END<br>
END<br>
<br>
Cheers<br>
<br>
Andrew<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Mapserver-7-CLUSTER-layer-getfeatureinfo-php-mapscript-queryByPoint-broken-tp5261838.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/Mapserver-7-CLUSTER-layer-getfeatureinfo-php-mapscript-queryByPoint-broken-tp5261838.html</a><br>
Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></blockquote></div><br></div>