#1986 closed enhancement (fixed)
Stylization: allow retrieving visibility information
Reported by: | danstoica | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | General | Version: | 2.1.0 |
Severity: | trivial | Keywords: | |
Cc: | External ID: |
Description
Let's assume a layer has range styles or thematic rules. The Default Stylizer checks these constrains for feature and may decide not to draw. The issue is on the client side because these rules are owned by the Stylizer and the client needs a way to filter out the invisible features.
The solution is to expose these rules. The proposal is to add 2 public new methods on the Default Stylizer class:
Returns true if a valid range was found. Returns false otherwise. virtual bool HasValidScaleRange (MdfModel::VectorLayerDefinition* layer, double mapScale);
Returns a Filter containing the combined thematic rules. Returns NULL in case there are no rules. virtual FdoFilter * GetRulesFilter(MdfModel::VectorLayerDefinition* layer, double mapScale);
Change History (3)
comment:1 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 13 years ago
This enhancement ticket simply exposes some helper methods. In the 2.4 branch who would be using these?
I've reviewed Dan's fix and submitted it.