Enum Class FeatureLayerLoadingStrategy
- All Implemented Interfaces:
Serializable
,Comparable<FeatureLayerLoadingStrategy>
,Constable
FeatureLayer
should retrieve data from its IFeatureModel
.- Since:
- 2023.0.02
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAFeatureLayer
configured with this strategy will retrieve all data from its model that satisfies thequery configuration
.This strategy ensures that only the data which is in the visible extent of theMap
is retrieved from the model. -
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureLayerLoadingStrategy
Returns the enum constant of this class with the specified name.static FeatureLayerLoadingStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LoadEverything
AFeatureLayer
configured with this strategy will retrieve all data from its model that satisfies thequery configuration
.Even when only a small portion of the
Map
is visible, all data (also outside the visible position of the map) is loaded.Only use this loading strategy for relatively small models.
-
LoadSpatially
This strategy ensures that only the data which is in the visible extent of theMap
is retrieved from the model.If you attempt to use this strategy with a model that is not supported, the LoadEverything strategy will be used instead. A model supports this strategy when
- it
exposes its reference
- its reference is a geodetic or projected reference, not a geocentric or topocentric reference
- all the used
FeatureModelMetadata#getFeatureTypes
have anGeometryDataAnnotation
In a 3D scene it is possible that the visible extent of the
Map
covers multiple areas with different scales. For example, if the camera is tilted, data on the horizon is visualized at a lower scale than data closer to the camera. To that end, LuciadCPillar divides the map in multiple zones that correspond with scale levels that are defined by thequery configuration
. The loading strategy queries the underlying model by passing the bounds and the query object for each visible scale level zone, and combines the data in each zone for a consistent visualization. This approach allows you to visualize large data sets in 3D, while you can still apply data specific business rules when loading and visualizing the data.In order to take advantage of this loading capability the
query configuration
should define scale levels and the queries should limit the number of features for smaller scales. Or even to prevent from loading data at all for the least detailed scale. - it
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-