public enum FeatureLayerLoadingStrategy extends Enum<FeatureLayerLoadingStrategy>
FeatureLayer
should retrieve data from its IFeatureModel
.Enum Constant and Description |
---|
LoadEverything
A
FeatureLayer configured with this strategy will retrieve all data from its model that satisfies the query configuration . |
LoadSpatially
This strategy ensures that only the data which is in the visible extent of the
Map is retrieved from the model. |
Modifier and Type | Method and Description |
---|---|
static FeatureLayerLoadingStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FeatureLayerLoadingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FeatureLayerLoadingStrategy LoadEverything
FeatureLayer
configured with this strategy will retrieve all data from its model that satisfies the query 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.
public static final FeatureLayerLoadingStrategy LoadSpatially
Map
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
exposes its reference
FeatureModelMetadata#getFeatureTypes
have an GeometryDataAnnotation
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 the query 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.
public static FeatureLayerLoadingStrategy[] values()
for (FeatureLayerLoadingStrategy c : FeatureLayerLoadingStrategy.values()) System.out.println(c);
public static FeatureLayerLoadingStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null