Opened 12 years ago

Last modified 12 years ago

#4080 new defect

GetFeatureInfo returns incrorrect result with clustered layer

Reported by: dr Owned by: tamas
Priority: high Milestone: 6.2 release
Component: WMS Server Version: svn-trunk (development)
Severity: major Keywords: cluster
Cc: sholl

Description

Confirm the bug described at http://osgeo-org.1803224.n2.nabble.com/CLUSTER-and-GetFeatureInfo-tt6428949.html#a6959697.

Example of my layer description:

LAYER
    NAME "herbary"
    TYPE point
    DATA "herbary/herbary"
    DUMP TRUE
    TEMPLATE dummy.html
    PROJECTION
        "init=epsg:4326"
    END
    EXTENT -180 -90 180 90
    METADATA
        gml_include_items   "all"
        wms_include_items   "all"
    END
    CLUSTER
       MAXDISTANCE 30
       REGION "ellipse"
    END
    PROCESSING "CLUSTER_GET_ALL_SHAPES=ON"
    PROCESSING "ITEMS=Herbarium"
    TOLERANCE 30
    LABELITEM "Cluster:FeatureCount"
    CLASSITEM "Cluster:FeatureCount"
    CLASS
        NAME "Cluster"
        EXPRESSION ("[Cluster:FeatureCount]" != "1")
        STYLE
            SIZE 20
            SYMBOL "herbarypoint"
            COLOR 0 102 37
        END
        LABEL
            FONT "arial"
            TYPE TRUETYPE
            SIZE 8
            COLOR 255 255 255
            ALIGN CENTER
            PRIORITY 10
            BUFFER 1
            PARTIALS TRUE
            POSITION cc
        END
    END
    CLASS
        NAME "Alone feature"
        EXPRESSION "1"
        STYLE
            SYMBOL "herbary"
        END
    END
END # layer

Request:

localhost/cgi-bin/mapserv?map=localhost/taimyr/wms/taimyr.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=herbary&QUERY_LAYERS=herbary&STYLES=&BBOX=11657365.727597%2C11923462.339205%2C11739764.844077%2C11948075.062309&FEATURE_COUNT=100&HEIGHT=322&WIDTH=1078&FORMAT=image%2Fpng&INFO_FORMAT=text%2Fplain&SRS=EPSG%3A900913&X=415&Y=291

Server response in text/plain format:

GetFeatureInfo results:

Layer 'herbary'
  Feature 7344: 
    Herbarium = 'LE'
    Cluster:FeatureCount = ''
  Feature 7699: 
    Herbarium = 'LE'
    Cluster:FeatureCount = ''
  Feature 7439: 
    Herbarium = ''
    Cluster:FeatureCount = '3'

Change History (5)

comment:1 by tamas, 12 years ago

Owner: changed from mapserverbugs to tamas

comment:2 by dr, 12 years ago

Workaround: comment out the lines 593 and 594 in mapcluster.c file and recompile MapServer.

comment:3 by dr, 12 years ago

tamas, do you have progress on this bug?

comment:4 by sholl, 12 years ago

Cc: sholl added

Would be nice to have this solved in MS 6.2 though!

comment:5 by tamas, 12 years ago

I'll look into the problem ASAP

Note: See TracTickets for help on using tickets.