New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When combining Cluster and WMS dimension the Cluster is ignored #5364

Closed
szekerest opened this Issue Jan 4, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@szekerest
Member

szekerest commented Jan 4, 2017

Sample of mapfile etc:

GetMap request with dimension filter: &dim_mainmissiontype=Brann
gives non clustered map and if for instance Cluster_FeatureCount is used, an error is thrown
The same GetMap request without dimension filter
gives a image with clustered objects

Example mapfile:
LAYER
TYPE point
METADATA
"WMS_TITLE" "Fire rescue missions2"
"GML_INCLUDE_ITEMS" "oppdragid,mainmissiontype"
"WMS_INCLUDE_ITEMS" "oppdragid,mainmissiontype"
"WMS_MAINMISSIONTYPE_ITEM" "mainmissiontype"
"WMS_MAINMISSIONTYPE_EXTENT" "Andre oppdrag,Brann,Brannhindrende tiltak,Ulykke"
"WMS_MAINMISSIONTYPE_UNITS" ""
"WMS_MAINMISSIONTYPE_DEFAULT" ""
"WMS_DIMENSIONLIST" "mainmissiontype"
END
CONNECTION "user=xx password=xx dbname=xx host=localhost port=5433"
CONNECTIONTYPE postgis
DATA "wkb_geometry FROM (SELECT oppdragid, mainmissiontype, wkb_geometry FROM firerescuemissions) AS MYTABLE USING UNIQUE oppdragid USING SRID=4326"
EXTENT -9223372036.854776 0 31.118456919 9223372036.854776
NAME "layer_x"
PROCESSING "CLOSE_CONNECTION=DEFER"
PROCESSING "CLUSTER_GET_ALL_SHAPES=ON"
PROCESSING "ITEMS=oppdragid,mainmissiontype"
PROJECTION "init=epsg:4326" END
CLASS
NAME "class"
STYLE
ANGLE auto
COLOR 255 127 0
LINECAP round
LINEJOIN round
MAXSIZE 30
MINSIZE 10
OUTLINECOLOR 0 0 0
SIZE [Cluster_FeatureCount]
SYMBOL "circle"
WIDTH 1
END
END
CLUSTER
MAXDISTANCE 40
REGION "ellipse"
END
END

Example error message:
Error using Mapserver 7.0.1 and 7.0.2:
msDrawMap(): Image handling error. Failed to draw layer named 'layer_x'.msPostGISLayerWhichShapes(): Query error. Error executing query. Check server logs
Error using Mapserver 6.4.0:
msDrawMap(): Image handling error. Failed to draw layer named 'layer_x'.msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: column "Cluster:FeatureCount" does not exist
LINE 1: select "Cluster:FeatureCount",encode(ST_AsBinary(ST_Force_2D...

@szekerest szekerest self-assigned this Jan 4, 2017

szekerest added a commit that referenced this issue Jan 4, 2017

@frodewj

This comment has been minimized.

Show comment
Hide comment
@frodewj

frodewj Jan 5, 2017

This seems to fix the error message when combining cluster and wms dimension but it seems like the filter/dimension is ignored. All features are returned when using a filter/dimension that should only return some of them

frodewj commented Jan 5, 2017

This seems to fix the error message when combining cluster and wms dimension but it seems like the filter/dimension is ignored. All features are returned when using a filter/dimension that should only return some of them

szekerest added a commit that referenced this issue Jan 5, 2017

@szekerest

This comment has been minimized.

Show comment
Hide comment
@szekerest

szekerest Jan 5, 2017

Member

Fixed with the commit above

Member

szekerest commented Jan 5, 2017

Fixed with the commit above

@frodewj

This comment has been minimized.

Show comment
Hide comment
@frodewj

frodewj Jan 6, 2017

Excellent, tested and it works perfectly

frodewj commented Jan 6, 2017

Excellent, tested and it works perfectly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment