Package com.luciad.ogc.sld.view.gxy
Class TLcdSLDContext
java.lang.Object
com.luciad.ogc.sld.view.gxy.TLcdSLDContext
A container class expressing the context in which a style should be interpreted.
It contains :
-
Constructor Summary
ConstructorDescriptionTLcdSLDContext
(ILcdOGCFilterEvaluator aFilterEvaluator, ILcdGeoReference aReference, ILcdOGCFeatureIDRetriever aFeatureIdRetriever, ILcdPropertyRetrieverProvider aPropertyRetrieverProvider) Creates a new SLD context.TLcdSLDContext
(ILcdOGCFilterEvaluator aFilterEvaluator, ILcdGeoReference aReference, ILcdOGCFeatureIDRetriever aFeatureIdRetriever, ILcdPropertyRetrieverProvider aPropertyRetrieverProvider, ILcdSLDOnlineResourceResolver aOnlineResourceResolver) Creates a new SLD context. -
Method Summary
Modifier and TypeMethodDescriptionReturns the feature id retriever set to this context.Returns a filter context based on the geo reference, feature id retriever and property retriever provider set to this SLD context.Returns the filter evaluator set to this context.Returns the geo reference set to this context.Returns a resolver forTLcdSLDOnlineResource
instances.Returns the property retriever provider set to this context.
-
Constructor Details
-
TLcdSLDContext
public TLcdSLDContext(ILcdOGCFilterEvaluator aFilterEvaluator, ILcdGeoReference aReference, ILcdOGCFeatureIDRetriever aFeatureIdRetriever, ILcdPropertyRetrieverProvider aPropertyRetrieverProvider) Creates a new SLD context. By default, anILcdSLDOnlineResourceResolver
is used that returns theresource's href
property.- Parameters:
aFilterEvaluator
- a filter evaluator, for exampleTLcdOGCFilterEvaluator
aReference
- The reference for geometries, usually the model reference.aFeatureIdRetriever
- An interface to retrieve id's from model objectsaPropertyRetrieverProvider
- The property retrieve that is used to evaluate XPath's against model objects.- See Also:
-
TLcdSLDContext
public TLcdSLDContext(ILcdOGCFilterEvaluator aFilterEvaluator, ILcdGeoReference aReference, ILcdOGCFeatureIDRetriever aFeatureIdRetriever, ILcdPropertyRetrieverProvider aPropertyRetrieverProvider, ILcdSLDOnlineResourceResolver aOnlineResourceResolver) Creates a new SLD context.- Parameters:
aFilterEvaluator
- a filter evaluator, for exampleTLcdOGCFilterEvaluator
aReference
- The reference for geometries, usually the model reference.aFeatureIdRetriever
- An interface to retrieve id's from model objectsaPropertyRetrieverProvider
- The property retrieve that is used to evaluate XPath's against model objects.aOnlineResourceResolver
- The online resource resolver that is used to retrieve the path to external icons.- Since:
- 2023.0
- See Also:
-
-
Method Details
-
getFilterEvaluator
Returns the filter evaluator set to this context.- Returns:
- the filter evaluator set to this context.
-
getGeoReference
Returns the geo reference set to this context.- Returns:
- the geo reference set to this context.
-
getFeatureIdRetriever
Returns the feature id retriever set to this context.- Returns:
- the feature id retriever set to this context.
-
getPropertyRetrieverProvider
Returns the property retriever provider set to this context.
This provider is not necessarily the same as the one passed in the constructor. For example to improve the performance of SLD styling and filtering, the returned provider can be a decorated instance of the one passed in the constructor to add caching.
- Returns:
- the property retriever provider set to this context.
-
getFilterContext
Returns a filter context based on the geo reference, feature id retriever and property retriever provider set to this SLD context.- Returns:
- a filter context based on the geo reference, feature id retriever and property retriever provider set to this SLD context. The same instance is returned every time.
-
getOnlineResourceResolver
Returns a resolver forTLcdSLDOnlineResource
instances. AnTLcdSLDOnlineResource
is used to represent the link to an external graphic. By default, the location is stored in theresource's href
property. By plugging in a resolver, you can customize this location; for example, to replace a relative path with an absolute path.- Returns:
- a resolver for
TLcdSLDOnlineResource
instances. - Since:
- 2023.0
-