[mapserver-users] Mapserver 7 - CLUSTER layer getfeatureinfo / php mapscript queryByPoint broken?
AndyC79
acowie at gmail.com
Tue Apr 19 03:56:12 PDT 2016
Hi Thomas,
Thanks for the swift response!
Ok cool, I shall find out if funding may be available for fix, will contact
Tamas if there is.
Cheers
Andrew
On 19 April 2016 at 11:13, tbonfort [via OSGeo.org] <
ml-node+s1560n5261840h24 at n6.nabble.com> wrote:
> Andy: It's a known issue:
> https://github.com/mapserver/mapserver/issues/5205, 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.
> Regards,
> Thomas
>
>
> On 19 April 2016 at 12:07, AndyC79 <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5261840&i=0>> wrote:
>
>> 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.
>> _______________________________________________
>> mapserver-users mailing list
>> [hidden email] <http:///user/SendEmail.jtp?type=node&node=5261840&i=1>
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
> _______________________________________________
> mapserver-users mailing list
> [hidden email] <http:///user/SendEmail.jtp?type=node&node=5261840&i=2>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://osgeo-org.1560.x6.nabble.com/Mapserver-7-CLUSTER-layer-getfeatureinfo-php-mapscript-queryByPoint-broken-tp5261838p5261840.html
> To unsubscribe from Mapserver 7 - CLUSTER layer getfeatureinfo / php
> mapscript queryByPoint broken?, click here
> <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5261838&code=YWNvd2llQGdtYWlsLmNvbXw1MjYxODM4fDE4MDMwOTM1MDk=>
> .
> NAML
> <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-7-CLUSTER-layer-getfeatureinfo-php-mapscript-queryByPoint-broken-tp5261838p5261850.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160419/fd7dbc4a/attachment.htm>
More information about the MapServer-users
mailing list