public class RealspaceImpl extends java.lang.Object implements Realspace, ComponentContextAware, Disposable
The implementation class for the 3D Services component interface (Realspace
).
Three - dimensional service component is a class of GIS service components that encapsulate GIS functions related to three - dimensional.
Constructor and Description |
---|
RealspaceImpl()
The Constructor.
|
RealspaceImpl(RealspaceContext context)
Constructs a RealspaceImpl object based on the three-dimensional context information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
cleanCacheData(java.lang.String dataName)
Clears the cache of dynamic publishing data.
|
void |
dispose()
Release the resource object.
|
java.lang.String |
getCacheAccessKey()
Returns the password used to encrypt the cached data.
|
RealspaceDataResult |
getData(RealspaceDataParam dataParam)
Gets 3D tile data results.
|
RealspaceDataResult |
getData(java.lang.String sceneName, java.lang.String layerName, RealspaceDataParam dataParam)
According to the scene name and layer name and tile parameters three-dimensional tile data results.
|
byte[] |
getDataConfig(java.lang.String dataName)
Obtains 3D cache data configuration file according to the name of the 3D data.
|
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 fall 3D data information.
|
java.lang.String |
getDataVersion(java.lang.String dataName, int xIndex, int yIndex, int level, java.lang.String fileExtension)
Obtain the latest version number of the tile data according to the index.
|
java.lang.String |
getDataVersion(java.lang.String dataName, java.lang.String relativePath)
Obtains the latest version number of the tile data according to the relative path.
|
java.lang.String |
getLayerExtendXML(java.lang.String sceneName, java.lang.String layerName)
Gets the layer extension information for the specified layer
|
PrjCoordSys |
getLayerPrj(java.lang.String sceneName, java.lang.String layerName)
Gets the projection information for the specified layer
|
byte[] |
getModelIndex(java.lang.String dataName)
The model index file of the 3D model cache data is obtained according to the name of the 3D data.
|
java.util.List<OfflineDataInfo> |
getOfflineDataPaths(java.lang.String sceneName, java.lang.String layerName)
Gets the location information for all data offline packages for a particular 3D scene
|
SceneInfo |
getSceneInfo(java.lang.String sceneName)
According to the name of the 3D scene, gets the information of the 3D scene.
|
java.util.List<java.lang.String> |
getSceneNames()
Returns the name of all available 3D scenes.
|
RealspaceTilesRevisionInfo |
getTilesRevisionInfo(java.lang.String dataName, long revisionNumber)
Gets the tile change information for the specified version number.
|
byte[] |
getVectorIndex(java.lang.String dataName)
According to the name of the 3D data to obtain the three-dimensional vector cache data index file.
|
boolean |
isCacheCanReuse()
Whether the three-dimensional cache is allowed to copy and reuse.
|
boolean |
isDataAvailable(java.lang.String dataName)
Whether the three-dimensional data is available.
|
static boolean |
isDataAvaliableUseLayerName(RealspaceProvider realspaceProvider, java.lang.String layerName)
Whether the three-dimensional provider supports the given data, and refers to the data with the layer name.
|
boolean |
isSceneAvailable(java.lang.String sceneName)
Whether the 3D scene is available.
|
boolean |
isSecurityEnabled()
Whether the security mechanism is enabled.
|
RealspaceDataResult[] |
outputDataToMemory(java.lang.String sceneName, java.lang.String layerName, Output3DDataToMemoryParam dataParam)
Generates 3D tiles into memory based on scene name and layer name
|
void |
setComponentContext(ComponentContext context)
Sets the context information.
|
public RealspaceImpl()
The Constructor.
public RealspaceImpl(RealspaceContext context)
context
- Three-dimensional context information.public final java.util.List<java.lang.String> getSceneNames() throws RealspaceException
getSceneNames
in interface Realspace
RealspaceException
- 3D exception information.public final SceneInfo getSceneInfo(java.lang.String sceneName) throws RealspaceException
getSceneInfo
in interface Realspace
sceneName
- the name of the 3D scene.RealspaceException
- 3D exception information.public final java.lang.String getDataVersion(java.lang.String dataName, int xIndex, int yIndex, int level, java.lang.String fileExtension) throws RealspaceException
getDataVersion
in interface Realspace
dataName
- The name of the 3D data. Corresponds to the name of the 3D layer in the SuperMap 3D scene (LayerName).xIndex
- The index of the tile data in the X direction.yIndex
- The index of the tile data in the Y direction.level
- The layer number of the tile data, only the 3D cache data of the model needs to be set.fileExtension
- Tile data extension name. Including * .png, *. Jpg, *. bil and so on.RealspaceException
- 3D exception information.public final java.lang.String getDataVersion(java.lang.String dataName, java.lang.String relativePath) throws RealspaceException
Obtains the latest version number of the tile data according to the relative path.
The settings of the tile data relative path are as follows:
getDataVersion
in interface Realspace
dataName
- The name of the 3D data. Corresponds to the name of the 3D layer in the SuperMap 3D scene (LayerName).relativePath
- the relative path of tile data.RealspaceException
- 3D exception information.public RealspaceDataResult getData(java.lang.String sceneName, java.lang.String layerName, RealspaceDataParam dataParam) throws RealspaceException
Realspace
getData
in interface Realspace
sceneName
- Scene name.layerName
- Layer name.dataParam
- Tile parameters.RealspaceException
public RealspaceDataResult getData(RealspaceDataParam dataParam) throws RealspaceException
Realspace
getData
in interface Realspace
dataParam
- Tile parameters.RealspaceException
public final byte[] getDataConfig(java.lang.String dataName) throws RealspaceException
getDataConfig
in interface Realspace
dataName
- The name of the 3D data. Corresponds to the name of the 3D layer in the SuperMap 3D scene (LayerName).RealspaceException
- 3D exception information.public byte[] getDataConfig(java.lang.String dataName, CompressType compressType) throws RealspaceException
Realspace
getDataConfig
in interface Realspace
dataName
- The name of the 3D data. Corresponds to the name of the 3D layer in the SuperMap 3D scene (LayerName).RealspaceException
- 3D exception information.public final byte[] getModelIndex(java.lang.String dataName) throws RealspaceException
The model index file of the 3D model cache data is obtained according to the name of the 3D data.
The file is indexed with "index" as the file extension name, and the configuration file for the model cache data (the file with the extension "scm") is located in the same parent directory.
getModelIndex
in interface Realspace
dataName
- The name of the 3D data. Corresponds to the name of the 3D layer in the SuperMap 3D scene (LayerName).RealspaceException
- 3D exception information.public byte[] getVectorIndex(java.lang.String dataName) throws RealspaceException
According to the name of the 3D data to obtain the three-dimensional vector cache data index file.
The file is in the same parent directory as the "dat" file extension, with the configuration file for the vector cached data (the file with the extension "scv").
getVectorIndex
in interface Realspace
dataName
- The name of the 3D data. Corresponds to the name of the 3D layer in the SuperMap 3D scene (LayerName).RealspaceException
- 3D exception information.public static boolean isDataAvaliableUseLayerName(RealspaceProvider realspaceProvider, java.lang.String layerName)
realspaceProvider
-dataName
-public final java.util.List<RealspaceDataInfo> getDataInfos() throws RealspaceException
getDataInfos
in interface Realspace
RealspaceException
- 3D exception information.public final boolean isDataAvailable(java.lang.String dataName) throws RealspaceException
isDataAvailable
in interface Realspace
dataName
- The name of the 3D data. Corresponds to the name of the 3D layer in the SuperMap 3D scene (LayerName).RealspaceException
- 3D exception information.public final boolean isSceneAvailable(java.lang.String sceneName) throws RealspaceException
isSceneAvailable
in interface Realspace
sceneName
- the name of the 3D scene.RealspaceException
- 3D exception information.public void setComponentContext(ComponentContext context)
Sets the context information.
setComponentContext
in interface ComponentContextAware
context
- Context informationpublic void dispose()
Release the resource object. All classes that need to achieve releasing resources need to be implemented ()
.
dispose
in interface Disposable
public java.lang.String getCacheAccessKey() throws RealspaceException
Returns the password used to encrypt the cached data.
getCacheAccessKey
in interface Realspace
RealspaceException
- 3D exception information.public boolean isSecurityEnabled() throws RealspaceException
Whether the security mechanism is enabled.
isSecurityEnabled
in interface Realspace
RealspaceException
- 3D exception information.public boolean cleanCacheData(java.lang.String dataName) throws RealspaceException
cleanCacheData
in interface Realspace
dataName
- Data name whoes cache needs to be cleared.RealspaceException
- 3D exception information.public java.util.List<OfflineDataInfo> getOfflineDataPaths(java.lang.String sceneName, java.lang.String layerName) throws RealspaceException
getOfflineDataPaths
in interface Realspace
sceneName
- Name of 3D scene.RealspaceException
public boolean isCacheCanReuse()
Realspace
Whether the three-dimensional cache is allowed to copy and reuse.
isCacheCanReuse
in interface Realspace
public RealspaceTilesRevisionInfo getTilesRevisionInfo(java.lang.String dataName, long revisionNumber) throws RealspaceException
Realspace
getTilesRevisionInfo
in interface Realspace
revisionNumber
- version number.RealspaceException
public PrjCoordSys getLayerPrj(java.lang.String sceneName, java.lang.String layerName) throws RealspaceException
Realspace
getLayerPrj
in interface Realspace
sceneName
- Scene name.layerName
- Layer nameRealspaceException
public RealspaceDataResult[] outputDataToMemory(java.lang.String sceneName, java.lang.String layerName, Output3DDataToMemoryParam dataParam) throws RealspaceException
Realspace
outputDataToMemory
in interface Realspace
sceneName
- Scene name.layerName
- Layer nameRealspaceException
public java.lang.String getLayerExtendXML(java.lang.String sceneName, java.lang.String layerName) throws RealspaceException
Realspace
getLayerExtendXML
in interface Realspace
sceneName
- Scene name.layerName
- Layer nameRealspaceException