public class TLfnVectorTileStoreModelDescriptor extends TLfnTileStoreModelDescriptor implements ILcdDataModelDescriptor
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
.
Constructor and Description |
---|
TLfnVectorTileStoreModelDescriptor(ALfnTileStore aTileStore,
ALfnCoverageMetadata aCoverageMetadata)
Deprecated.
|
TLfnVectorTileStoreModelDescriptor(String aSourceName,
ALfnTileStore aTileStore,
ALfnCoverageMetadata aCoverageMetadata)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
TLcdDataModel |
getDataModel()
Deprecated.
Gets the data model of this model.
|
Set<TLcdDataType> |
getModelElementTypes()
Deprecated.
Returns a set containing all the data types of which instances can be elements in the model
associated with this descriptor.
|
Set<TLcdDataType> |
getModelTypes()
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.
|
getCoverageMetadata, getCoverageMetadatas, getDataSource, getURI
getDisplayName, getSourceName, getTypeName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDisplayName, getSourceName, getTypeName
public TLfnVectorTileStoreModelDescriptor(ALfnTileStore aTileStore, ALfnCoverageMetadata aCoverageMetadata)
public TLfnVectorTileStoreModelDescriptor(String aSourceName, ALfnTileStore aTileStore, ALfnCoverageMetadata aCoverageMetadata)
public TLcdDataModel getDataModel()
getDataModel
in interface ILcdDataModelDescriptor
public Set<TLcdDataType> getModelElementTypes()
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() )
.
getModelElementTypes
in interface ILcdDataModelDescriptor
public Set<TLcdDataType> getModelTypes()
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.
getModelTypes
in interface ILcdDataModelDescriptor