com.supermap.services.providers
Class TilesetRealspaceProvider
- java.lang.Object
-
- com.supermap.services.components.spi.RealspaceProviderBase
-
- com.supermap.services.providers.TilesetRealspaceProvider
-
- All Implemented Interfaces:
- ProviderContextAware, RealspaceProvider
- Direct Known Subclasses:
- MongoDBRealspaceProvider
public abstract class TilesetRealspaceProvider extends RealspaceProviderBase implements ProviderContextAware
The base class of the 3D service provider implemented based on tile set.
- Since:
- 7.1.2
-
-
Field Summary
Fields Modifier and Type Field and Description protected java.util.List<RealspaceDataAdapter>realspaceDataAdapters
-
Constructor Summary
Constructors Constructor and Description TilesetRealspaceProvider()
-
Method Summary
Methods Modifier and Type Method and Description java.lang.StringgetCacheAccessKey()Returns the password used to encrypt the cached data.RealspaceDataResultgetData(RealspaceDataParam dataParam)Gets 3D tile data results.byte[]getDataConfig(java.lang.String dataName)Gets the configuration file for the 3D cache data by name.byte[]getDataConfig(java.lang.String dataName, CompressType compressType)Gets the configuration file for the 3D cache data by name.java.util.List<RealspaceDataInfo>getDataInfos()Gets all the 3D data of the current Provider.java.util.List<java.lang.String>getSceneNames()Gets the names of all available 3D scenes in the current service provider.protected voidinit(Tileset<?,?>[] tilesets, java.lang.String... tilesetNames)Initializes the tile set.booleanisDataAvailable(java.lang.String dataName)Whether the three-dimensional data is available.booleanisSecurityEnabled()Whether the security mechanism is enabled.-
Methods inherited from class com.supermap.services.components.spi.RealspaceProviderBase
cleanCacheData, getData, getDataVersion, getDataVersion, getLayerExtendXML, getLayerPrj, getModelIndex, getOfflineDataPaths, getSceneInfo, getTilesRevisionInfo, getVectorIndex, isSceneAvailable, outputDataToMemory
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.supermap.services.components.spi.ProviderContextAware
setProviderContext
-
-
-
-
Field Detail
-
realspaceDataAdapters
protected java.util.List<RealspaceDataAdapter> realspaceDataAdapters
-
-
Method Detail
-
init
protected void init(Tileset<?,?>[] tilesets, java.lang.String... tilesetNames)
Initializes the tile set.
-
getCacheAccessKey
public java.lang.String getCacheAccessKey()
Description copied from interface:RealspaceProviderReturns the password used to encrypt the cached data.- Specified by:
getCacheAccessKeyin interfaceRealspaceProvider- Overrides:
getCacheAccessKeyin classRealspaceProviderBase- Returns:
- Returns the password used to encrypt the cached data.
-
getSceneNames
public java.util.List<java.lang.String> getSceneNames() throws RealspaceExceptionDescription copied from interface:RealspaceProviderGets the names of all available 3D scenes in the current service provider.- Specified by:
getSceneNamesin interfaceRealspaceProvider- Overrides:
getSceneNamesin classRealspaceProviderBase- Returns:
- List of available scene names.
- Throws:
RealspaceException- 3D exception information.
-
getData
public RealspaceDataResult getData(RealspaceDataParam dataParam) throws RealspaceException
Description copied from interface:RealspaceProviderGets 3D tile data results.- Specified by:
getDatain interfaceRealspaceProvider- Overrides:
getDatain classRealspaceProviderBase- Parameters:
dataParam- Tile parameters.- Throws:
RealspaceException
-
getDataConfig
public byte[] getDataConfig(java.lang.String dataName) throws RealspaceExceptionDescription copied from interface:RealspaceProviderGets the configuration file for the 3D cache data by name.- Specified by:
getDataConfigin interfaceRealspaceProvider- Overrides:
getDataConfigin classRealspaceProviderBase- Parameters:
dataName- The name of the 3D data. Corresponds to the name of the 3D layer in the SuperMap 3D scene (LayerName).- Returns:
- 3D cache data configuration file.
- Throws:
RealspaceException- 3D exception information.
-
getDataConfig
public byte[] getDataConfig(java.lang.String dataName, CompressType compressType) throws RealspaceExceptionDescription copied from interface:RealspaceProviderGets the configuration file for the 3D cache data by name.- Specified by:
getDataConfigin interfaceRealspaceProvider- Overrides:
getDataConfigin classRealspaceProviderBase- Parameters:
dataName- The name of the 3D data. Corresponds to the name of the 3D layer in the SuperMap 3D scene (LayerName).- Returns:
- 3D cache data configuration file.
- Throws:
RealspaceException- 3D exception information.
-
getDataInfos
public java.util.List<RealspaceDataInfo> getDataInfos() throws RealspaceException
Description copied from interface:RealspaceProviderGets all the 3D data of the current Provider.- Specified by:
getDataInfosin interfaceRealspaceProvider- Overrides:
getDataInfosin classRealspaceProviderBase- Returns:
- 3D data information.
- Throws:
RealspaceException- 3D exception information.
-
isDataAvailable
public boolean isDataAvailable(java.lang.String dataName) throws RealspaceExceptionDescription copied from interface:RealspaceProviderWhether the three-dimensional data is available.- Specified by:
isDataAvailablein interfaceRealspaceProvider- Overrides:
isDataAvailablein classRealspaceProviderBase- Parameters:
dataName- The name of the 3D data. Corresponds to the name of the 3D layer in the SuperMap 3D scene (LayerName).- Returns:
- 3D data is available to return true; otherwise it returns false.
- Throws:
RealspaceException- 3D exception information.
-
isSecurityEnabled
public boolean isSecurityEnabled()
Description copied from interface:RealspaceProviderWhether the security mechanism is enabled.- Specified by:
isSecurityEnabledin interfaceRealspaceProvider- Overrides:
isSecurityEnabledin classRealspaceProviderBase- Returns:
- Returns true if the security mechanism is enabled; false otherwise.
-
-