[mapserver-users] CLUSTER_GET_ALL_SHAPES gives bad query output
It seems that the problem described in http://osgeo-org.1560.x6.nabble.com/CLUSTER-and-GetFeatureInfo-td4227414.html is still present. When retrieving the details for a cluster, the cluster-related attributes are set only for the last member of the cluster, and normal attributes for that member aren't sent. The normal attributes for all members should be sent, and I would think the cluster-related ones should be set for each member, not just the last. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] CLUSTER_GET_ALL_SHAPES gives bad query output
I'm not sure which MapServer version we are talking about. The recent versions should provide all attributes. When using CLUSTER_GET_ALL_SHAPES you can use the Cluster_BaseFID attribute to identify the shapes which belong to the same cluster and Cluster_BaseFID is in fact the feature ID of the main shape of the cluster. Tamas 2014-10-04 16:01 GMT+02:00 yeryry : > It seems that the problem described in > > http://osgeo-org.1560.x6.nabble.com/CLUSTER-and-GetFeatureInfo-td4227414.html > is still present. When retrieving the details for a cluster, the > cluster-related attributes are set only for the last member of the > cluster, and normal attributes for that member aren't sent. The normal > attributes for all members should be sent, and I would think the > cluster-related ones should be set for each member, not just the last. > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] CLUSTER_GET_ALL_SHAPES gives bad query output
Ah, thanks. I had been using 6.4.1, with WMS GetFeatureInfo. https://github.com/mapserver/mapserver/commit/898ab8b944a6340b5a8742fe12d3aee6ca236e88 fixed my main problem. Using a newer version, the attributes for the last item are again present. The FeatureCount (Now Cluster_FeatureCount rather than Cluster:FeatureCount it seems?) is still only present for the last item in the cluster though. The new Cluster_BaseFID is present for each item. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] CLUSTER_GET_ALL_SHAPES gives bad query output
That might be true. The aggregated attributes are set only for the main shape of the cluster. Feel free to submit a ticket for the issue, I hope that this can be implemented with no performance impact. Colons have been replaced with underscores which are more xml friendly, but we might also require to modify the aggregate values (Min:, Max:, Sum:, Count:) this way. Best regards, Tamas 2014-10-04 22:03 GMT+02:00 yeryry : > Ah, thanks. I had been using 6.4.1, with WMS GetFeatureInfo. > > https://github.com/mapserver/mapserver/commit/898ab8b944a6340b5a8742fe12d3aee6ca236e88 > fixed my main problem. Using a newer version, the attributes for the > last item are again present. > The FeatureCount (Now Cluster_FeatureCount rather than > Cluster:FeatureCount it seems?) is still only present for the last > item in the cluster though. The new Cluster_BaseFID is present for > each item. > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users