Hi, Please add also the GetFeatureInfo request that your application is sending.
-Jukka Rahkonen- -----Alkuperäinen viesti----- Lähettäjä: mapserver-users [mailto:[email protected]] Puolesta astron Lähetetty: 15. helmikuuta 2018 12:17 Vastaanottaja: [email protected] Aihe: [mapserver-users] Wrong getfeatureinfo result from cluster layer Hi, When I click on a point in my cluster layer, I get the getfeatureinfo result from another point. That is, after the first click, I get the same result from every point. If the point is a cluster that represent more than 1 entity, I get the correct amount of results, but all the entities contains the same info. The only time the result changes, is when I zoom in or out. It looks like it’s only when I zoom in really close, I get a correct result, but it’s only the first entity I click that is correct. The next will give me the same result as the first. A regular layer without clustering, works fine. I'm using Mapserver 7.0.7. Any help would be appreciated. My mapfile: MAP DEBUG 5 CONFIG "MS_ERRORFILE" "/logs/ms_error.txt" NAME test_service PROJECTION "init=epsg:4326" END STATUS ON EXTENT 3 58 27 71 #SIZE 512 512 #IMAGECOLOR 200 255 255 SYMBOLSET symbols FONTSET fonts/fonts.txt CONFIG "CGI_CONTEXT_URL" "1" UNITS dd WEB IMAGEPATH "./" IMAGEURL "/tmp/" METADATA "wms_onlineresource" "http://server:8787/cgi-bin/mapserv/?map=/map/test.map" "wms_enable_request" "*" "wms_title" "test_service" "wms_srs" "EPSG:4326 EPSG:32633" END END LAYER NAME "testlayer" TEMPLATE "dummy" FOOTER "dummy" HEADER "dummy" DEBUG 5 TYPE POINT EXTENT 3 58 27 71 UNITS dd CONNECTIONTYPE POSTGIS CONNECTION "host=x dbname=x user=x password=x port=5432" DATA "geometry from data.table using unique id using srid=4326" METADATA "wms_title" "myttitle" "wms_include_items" "all" "wms_feature_info_mime_type" "text/plain" "gml_include_items" "name,id" END STATUS ON LABELITEM "Cluster_FeatureCount" CLASSITEM "Cluster_FeatureCount" CLUSTER MAXDISTANCE 30 REGION "ellipse" END PROCESSING "CLUSTER_GET_ALL_SHAPES=ON" PROCESSING "ITEMS=name,description" CLASS EXPRESSION ([Cluster_FeatureCount] > 1) LABEL COLOR 255 255 255 #OUTLINECOLOR 255 255 255 FONT "OpenSans-Regular" TYPE truetype SIZE 6 FORCE TRUE POSITION cc PARTIALS FALSE END STYLE SYMBOL "default-circle" COLOR 255 0 0 SIZE 35 ANTIALIAS true END END CLASS EXPRESSION ([Cluster_FeatureCount] = 1) STYLE SYMBOL "default-circle" COLOR 255 0 0 SIZE 7 ANTIALIAS true END LABEL COLOR 255 0 0 OUTLINECOLOR 255 255 255 FONT "OpenSans-Regular" TYPE truetype SIZE 7 POSITION auto PARTIALS FALSE TEXT "[name]" END END END END Thanks, Erik -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html _______________________________________________ mapserver-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/mapserver-users
