Enum Class FeatureLayerLoadingStrategy

java.lang.Object
java.lang.Enum<FeatureLayerLoadingStrategy>
com.luciad.layers.features.FeatureLayerLoadingStrategy
All Implemented Interfaces:
Serializable, Comparable<FeatureLayerLoadingStrategy>, Constable

public enum FeatureLayerLoadingStrategy extends Enum<FeatureLayerLoadingStrategy>
Specifies how a FeatureLayer should retrieve data from its IFeatureModel.
Since:
2023.0.02
  • Enum Constant Details Link icon

    • LoadEverything Link icon

      public static final FeatureLayerLoadingStrategy LoadEverything
      A 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.

    • LoadSpatially Link icon

      public static final FeatureLayerLoadingStrategy LoadSpatially
      This strategy ensures that only the data which is in the visible extent of the 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

      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.

  • Method Details Link icon

    • values Link icon

      public static FeatureLayerLoadingStrategy[] 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 Link icon

      public static FeatureLayerLoadingStrategy valueOf(String name)
      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 name
      NullPointerException - if the argument is null