- Direct Known Subclasses:
ScaleRangeDisplayFilter
Features filtered from display remain available for query and analysis. Use display filter when only a subset of features needs to be visible while maintaining access to all features.
- Since:
- 100.13.0
- See Also:
-
Constructor Summary
ConstructorDescriptionDisplayFilter
(String name, String whereClause) Creates a newDisplayFilter
with the specified name and where clause. -
Method Summary
Modifier and TypeMethodDescriptionGets the identifier for this display filter.getName()
Gets a descriptive name for this display filter.Gets a SQL expression that defines which features are rendered.void
Sets a descriptive name for this display filter.void
setWhereClause
(String whereClause) Sets a SQL expression that defines which features are rendered.
-
Constructor Details
-
DisplayFilter
Creates a newDisplayFilter
with the specified name and where clause.- Parameters:
name
- a descriptive name for this display filterwhereClause
- a SQL expression that defines which features are rendered- Throws:
IllegalArgumentException
- if name is null or emptyIllegalArgumentException
- if whereClause is null or empty- Since:
- 100.13.0
-
-
Method Details
-
getFilterId
Gets the identifier for this display filter.Use a unique name to identify this display filter when used in a webmap as a
ManualDisplayFilterDefinition.getActiveFilter()
.- Returns:
- the identifier for this display filter
- Since:
- 100.13.0
-
getName
Gets a descriptive name for this display filter.- Returns:
- a descriptive name for this display filter
- Since:
- 100.13.0
-
setName
Sets a descriptive name for this display filter.- Parameters:
name
- a descriptive name for this display filter- Throws:
IllegalArgumentException
- if name is null- Since:
- 100.13.0
-
getWhereClause
Gets a SQL expression that defines which features are rendered.The where clause string that is used as the
getWhereClause()
should follow standard SQL syntax similar to what is discussed in the document SQL reference for query expressions used in ArcGIS. A where clause that is not valid for the data may result in no features being drawn when this display filter is applied either byManualDisplayFilterDefinition.getActiveFilter()
or byScaleRangeDisplayFilter.getMaxScale()
. Check the layer'sLayerViewState
for aLayerViewStatus.WARNING
; if there is one, then there might beLayerViewState.getError()
describing that the display filter's where clause is not valid.- Returns:
- a SQL expression that defines which features are rendered
- Since:
- 100.13.0
-
setWhereClause
Sets a SQL expression that defines which features are rendered.The where clause string that is used as the
getWhereClause()
should follow standard SQL syntax similar to what is discussed in the document SQL reference for query expressions used in ArcGIS. A where clause that is not valid for the data may result in no features being drawn when this display filter is applied either byManualDisplayFilterDefinition.getActiveFilter()
or byScaleRangeDisplayFilter.getMaxScale()
. Check the layer'sLayerViewState
for aLayerViewStatus.WARNING
; if there is one, then there might beLayerViewState.getError()
describing that the display filter's where clause is not valid.- Parameters:
whereClause
- a SQL expression that defines which features are rendered- Throws:
IllegalArgumentException
- if whereClause is null or empty- Since:
- 100.13.0
-