Class TLfnVectorTileStoreModelDescriptor
- All Implemented Interfaces:
ILcdDataModelDescriptor
,ILcdDataSourceModelDescriptor<TLfnTileStoreDataSource>
,ILcdModelDescriptor
,Serializable
ALfnTileStoreModel
containing a vector coverage.
The model's elements are ILcdDataObject
s with the same data types and properties as the original source data.
Usually, all the original source data's data types and properties will have been preserved, unless you've explicitly
configured it otherwise using
TLfnVectorCoverageMetadata.Builder.dataModel(TLcdDataModel)
, for example
to preserve only a filtered subset of the original source data's data types or properties.
For scalability reasons, you should never call ILcdModel.elements()
on a fusion vector model: it will
return empty results.
Instead, you should always use ILcd2DBoundsIndexedModel.applyOnInteract2DBounds(com.luciad.shape.ILcdBounds, boolean, com.luciad.util.ILcdFunction, double, double)
, which
will select the features within bounds at a certain level of detail.
You should be careful when accessing the domain objects as 'regular' ILcdShape
: when
accessed directly, you will work with the full geometry at the most detailed level, which quickly becomes a
performance bottleneck.
For visualization and a lot of other practical use cases, you should consider using the tiled (reduced) geometry
which can be accessed using TLfnGXYVectorLayer.getTiledGeometry(Object)
or TLspFusionVectorLayer.getTiledGeometry(Object, ILspView)
or
TLspFusionGeometryProvider
.
- Since:
- 11.0
- See Also:
-
Constructor Summary
ConstructorDescriptionTLfnVectorTileStoreModelDescriptor
(ALfnTileStore aTileStore, ALfnCoverageMetadata aCoverageMetadata) Deprecated.TLfnVectorTileStoreModelDescriptor
(String aSourceName, ALfnTileStore aTileStore, ALfnCoverageMetadata aCoverageMetadata) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the data model of this model.Deprecated.Returns a set containing all the data types of which instances can be elements in the model associated with this descriptor.Deprecated.Returns a set containing all the types of which instances can be used (including both top-level elements and child objects) in the model associated with this descriptor.Methods inherited from class com.luciad.fusion.tilestore.model.TLfnTileStoreModelDescriptor
getCoverageMetadata, getCoverageMetadatas, getDataSource, getURI
Methods inherited from class com.luciad.model.TLcdModelDescriptor
getDisplayName, getSourceName, getTypeName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.model.ILcdModelDescriptor
getDisplayName, getSourceName, getTypeName
-
Constructor Details
-
TLfnVectorTileStoreModelDescriptor
public TLfnVectorTileStoreModelDescriptor(ALfnTileStore aTileStore, ALfnCoverageMetadata aCoverageMetadata) Deprecated. -
TLfnVectorTileStoreModelDescriptor
public TLfnVectorTileStoreModelDescriptor(String aSourceName, ALfnTileStore aTileStore, ALfnCoverageMetadata aCoverageMetadata) Deprecated.
-
-
Method Details
-
getDataModel
Deprecated.Gets the data model of this model. The data model is described in TLfnVectorCoverageMetadata.getDataModel().- Specified by:
getDataModel
in interfaceILcdDataModelDescriptor
- Returns:
- the data model that describes the elements of the model
-
getModelElementTypes
Deprecated.Description copied from interface:ILcdDataModelDescriptor
Returns a set containing all the data types of which instances can be elements in the model associated with this descriptor. Implementations are free to limit the result to only include the types of which there are actually elements in the model; but they are not required to do so.
Implementations should return
null
in case they don't know which element types are present in the model.For each element of the model associated with this model descriptor, the following holds true :
getModelElementTypes().contains( element.getDataType() )
.- Specified by:
getModelElementTypes
in interfaceILcdDataModelDescriptor
- Returns:
- a set containing all the data types of which instances can be elements in the model associated with this descriptor
-
getModelTypes
Deprecated.Description copied from interface:ILcdDataModelDescriptor
Returns a set containing all the types of which instances can be used (including both top-level elements and child objects) in the model associated with this descriptor. Implementations are free to limit the result to only include the types of which there are actually instances in the model; but they are not required to do so.
A simple and correct implementation would be to return
getDataModel().getTypes()
. Implementations are encouraged to return a subset of this set if they can do so without spending an unreasonable amount of resources.Implementations should return
null
in case they don't know which types are present in the model.- Specified by:
getModelTypes
in interfaceILcdDataModelDescriptor
- Returns:
- a set containing all the data types of which instances can be used in the model associated with this descriptor
-