[mapserver-users] Mapserver 7 - CLUSTER layer getfeatureinfo / php mapscript queryByPoint broken?
AndyC79
acowie at gmail.com
Tue Apr 19 03:07:20 PDT 2016
Hi,
Upgraded to MS 7 from 6.4.1 recently - getfeatinfo requests that used to
work against clustered layers, now return 500s with Apache logs detailing:
End of script output before headers: mapserv
Which as far as I understand means the mapserv process crashed?
request e.g:
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
I tried also using PHP mapscript to assemble a point query against the
cluster layer, however that also does not seem to work in MS 7. It fails at
the layerObj->queryByPoint method.
Makes me think there's either something fundamentally problematic with
querying CLUSTER layers in MS 7. Or perhaps the way I've had my mapfile
configured is now causing an issue.
** Can anyone confirm that getfeatureinfo / php mapscript queryByPoint is
working against CLUSTER layers in MS 7 ? **
The CLUSTERs draw fine. Just the querying that seems an issue.
Below extract from mapfile. I can provide further details if necessary.
LAYER
NAME 'rsr_sites'
TEMPLATE "../templates/rsr_sites_info_template.js"
TYPE POINT
INCLUDE "includes/connection.inc"
DATA "the_geom FROM (SELECT gid, the_geom, id AS site_id, url, lon, lat
FROM data.rsr_sites) AS query USING UNIQUE gid USING srid=3031"
INCLUDE 'includes/proj_3031.inc'
METADATA
"ows_name" "rsr_sites"
"ows_title" "RSR"
INCLUDE 'includes/default_layer_metadata.inc'
END
TOLERANCE 8
CLUSTER
MAXDISTANCE 22
REGION "ellipse"
END
PROCESSING 'ITEMS=site_id,url,lon,lat'
PROCESSING "CLUSTER_GET_ALL_SHAPES=ON"
LABELITEM "Cluster_FeatureCount"
CLASSITEM "Cluster_FeatureCount"
CLASS
NAME "Multiple Sites - proportional symbol"
EXPRESSION ("[Cluster_FeatureCount]" != "1")
STYLE
MINSIZE 25
MAXSIZE 50
SIZE [Cluster_FeatureCount]
SYMBOL "Circle"
COLOR '#885e49'
END
LABEL
FONT ATTriumMou-Cond
TYPE TRUETYPE
SIZE 7
MAXSIZE 8
MINSIZE 7
COLOR 255 255 255
ALIGN CENTER
PRIORITY 10
PARTIALS TRUE
FORCE TRUE
POSITION cc
END
END
CLASS
NAME 'Single Site'
EXPRESSION '1'
STYLE
SYMBOL 'Square'
SIZE 8
MINSIZE 8
MAXSIZE 8
COLOR '#953d38'
END
END
END
Cheers
Andrew
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-7-CLUSTER-layer-getfeatureinfo-php-mapscript-queryByPoint-broken-tp5261838.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list