Package com.luciad.wms.client.model
Class TLcdWMSGetFeatureInfoParameters.Builder
java.lang.Object
com.luciad.wms.client.model.TLcdWMSGetFeatureInfoParameters.Builder
- Enclosing class:
TLcdWMSGetFeatureInfoParameters
Builder class for
TLcdWMSGetFeatureInfoParameters objects. Use TLcdWMSGetFeatureInfoParameters.newBuilder()
to create an instance of this builder.- Since:
- 2016.1.
-
Method Summary
Modifier and TypeMethodDescriptionall(TLcdWMSGetFeatureInfoParameters aGetFeatureInfoContext) Sets all parameters on the builder based on the given GetFeatureInfo context.build()Builds the context with the set parameters.featureInfoFormat(String aFeatureInfoFormat) Specifies the feature info format to use.layersToQuery(Collection<String> aLayersToQuery) Specifies the layers to query.maxFeatureCount(int aMaxFeatureCount) Sets the maximum number of features returned when doing a query.
-
Method Details
-
featureInfoFormat
Specifies the feature info format to use. If this method is not called, the query should use a fallback feature info format, seeALcdWMSProxy.getFeatureInfoFormat().- Parameters:
aFeatureInfoFormat- the feature info format to use.- Returns:
this
-
layersToQuery
Specifies the layers to query. If this method is not called, the query should use all layers.- Parameters:
aLayersToQuery- the layers to query. These are WMS layer names, seeALcdWMSNamedLayer.getNamedLayerName().- Returns:
this
-
maxFeatureCount
Sets the maximum number of features returned when doing a query.
The default is
1.- Parameters:
aMaxFeatureCount- the maximum number of features returned when doing a query- Returns:
this
-
all
public TLcdWMSGetFeatureInfoParameters.Builder all(TLcdWMSGetFeatureInfoParameters aGetFeatureInfoContext) Sets all parameters on the builder based on the given GetFeatureInfo context.
This is useful for example to create a new context that has almost all properties equal to another context.
- Parameters:
aGetFeatureInfoContext- a GetFeatureInfo context- Returns:
this
-
build
Builds the context with the set parameters.- Returns:
- a context with the set parameters.
-