public class UGCRealspaceProvider extends java.lang.Object implements RealspaceProvider, ProviderContextAware, Disposable
SuperMap 3D service provider.
UGCRealspaceProvider provides SuperMap map related services, encapsulates with the SuperMap 3D-related GIS functions.
Modifier and Type | Class and Description |
---|---|
static class |
UGCRealspaceProvider.WorkspaceDataRefresh
The data in the workspace is modified to refresh the workspace.
|
Constructor and Description |
---|
UGCRealspaceProvider()
The Constructor.
|
UGCRealspaceProvider(UGCRealspaceProviderSetting setting)
Builds the
UGCRealspaceProvider object with SuperMap 3D service provider configuration. |
Modifier and Type | Method and Description |
---|---|
boolean |
cleanCacheData(java.lang.String dataName)
Clears the cache of dynamic publishing data
|
void |
dispose()
Release 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 dataName, java.lang.String relativePath)
Obtains tile data based on relative path.
|
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.
|
RealspaceDataResult |
getData(java.lang.String dataName, java.lang.String relativePath, RelativePathType relativePathType)
Obtains tile data based on relative path and relative path type.
|
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 all the 3D data of the current Provider.
|
java.lang.Object |
getdataSetFromWorkspace(Workspace workspace, java.lang.String dataName)
Gets the dataset or map object of the workspace in which the workspace is located
|
java.lang.String |
getDataVersion(RealspaceDataParam dataParam) |
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()
Gets the name of all available 3D scenes for the current service provider.
|
RealspaceTilesRevisionInfo |
getTilesRevisionInfo(java.lang.String dataName, long revisionNumber)
Gets the tile change information for the specified version number.
|
byte[] |
getVectorIndex(java.lang.String dataName)
Obtains the index file of the 3D vector cache data by name.
|
boolean |
isDataAvailable(java.lang.String dataName)
Whether the three-dimensional data is available.
|
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 outputParam)
Generates 3D tiles into memory based on scene name and layer name
|
void |
pauseForRefreshWorkspace()
Block requests to refresh the workspace.
|
void |
refreshWorkspace()
refreshes the workspace.
|
void |
refreshWorkspaceFinished()
Ends refreshing the workspace, then continues the request.
|
void |
setProviderContext(ProviderContext context)
Sets the service provider context
|
public UGCRealspaceProvider()
The Constructor.
public UGCRealspaceProvider(UGCRealspaceProviderSetting setting)
Builds the UGCRealspaceProvider
object with SuperMap 3D service provider configuration.
setting
- uperMap 3D service provider setting configures.public RealspaceDataResult getData(RealspaceDataParam dataParam) throws RealspaceException
RealspaceProvider
getData
in interface RealspaceProvider
dataParam
- Tile parameters.RealspaceException
public RealspaceDataResult getData(java.lang.String sceneName, java.lang.String layerName, RealspaceDataParam dataParam) throws RealspaceException
RealspaceProvider
getData
in interface RealspaceProvider
sceneName
- Scene name.layerName
- Layer name.dataParam
- Tile parameters.RealspaceException
public RealspaceDataResult[] outputDataToMemory(java.lang.String sceneName, java.lang.String layerName, Output3DDataToMemoryParam outputParam) throws RealspaceException
RealspaceProvider
outputDataToMemory
in interface RealspaceProvider
sceneName
- Scene name.layerName
- Layer nameRealspaceException
public RealspaceDataResult getData(java.lang.String dataName, java.lang.String relativePath) throws RealspaceException
Obtains tile data based on relative path.
The setting of the relative data of the tile data is as follows:
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 dataName, java.lang.String relativePath, RelativePathType relativePathType) throws RealspaceException
Obtains tile data based on relative path and relative path type.
If the relative cache configuration file is set, the settings for the tile data relative path are as follows:
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.relativePathType
- the relative path of tile data.RealspaceException
- 3D exception information.public byte[] getDataConfig(java.lang.String dataName) throws RealspaceException
getDataConfig
in interface RealspaceProvider
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
RealspaceProvider
getDataConfig
in interface RealspaceProvider
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 java.util.List<RealspaceDataInfo> getDataInfos()
getDataInfos
in interface RealspaceProvider
RealspaceException
- 3D exception information.public java.lang.String getDataVersion(java.lang.String dataName, int xIndex, int yIndex, int level, java.lang.String fileExtension) throws RealspaceException
getDataVersion
in interface RealspaceProvider
dataName
- 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 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 setting of the relative data of the tile data is as follows:
getDataVersion
in interface RealspaceProvider
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 java.lang.String getDataVersion(RealspaceDataParam dataParam) throws RealspaceException
RealspaceException
public 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 RealspaceProvider
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
RealspaceProvider
getVectorIndex
in interface RealspaceProvider
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 SceneInfo getSceneInfo(java.lang.String sceneName) throws RealspaceException
getSceneInfo
in interface RealspaceProvider
sceneName
- the name of the 3D scene.RealspaceException
- 3D exception information.public java.util.List<java.lang.String> getSceneNames() throws RealspaceException
getSceneNames
in interface RealspaceProvider
RealspaceException
- 3D exception information.public boolean isDataAvailable(java.lang.String dataName) throws RealspaceException
isDataAvailable
in interface RealspaceProvider
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 boolean isSceneAvailable(java.lang.String sceneName) throws RealspaceException
isSceneAvailable
in interface RealspaceProvider
sceneName
- the name of the 3D scene.RealspaceException
- 3D exception information.public void setProviderContext(ProviderContext context)
Sets the service provider context
setProviderContext
in interface ProviderContextAware
context
- service provider contextpublic void dispose()
Release object.
dispose
in interface Disposable
public void refreshWorkspace()
refreshes the workspace.
public void refreshWorkspaceFinished()
Ends refreshing the workspace, then continues the request.
public void pauseForRefreshWorkspace()
Block requests to refresh the workspace.
public java.lang.String getCacheAccessKey()
RealspaceProvider
getCacheAccessKey
in interface RealspaceProvider
public boolean isSecurityEnabled()
RealspaceProvider
isSecurityEnabled
in interface RealspaceProvider
public boolean cleanCacheData(java.lang.String dataName) throws RealspaceException
cleanCacheData
in interface RealspaceProvider
dataName
-RealspaceException
public java.util.List<OfflineDataInfo> getOfflineDataPaths(java.lang.String sceneName, java.lang.String layerName) throws RealspaceException
getOfflineDataPaths
in interface RealspaceProvider
sceneName
- Name of 3D scene.RealspaceException
public RealspaceTilesRevisionInfo getTilesRevisionInfo(java.lang.String dataName, long revisionNumber)
RealspaceProvider
getTilesRevisionInfo
in interface RealspaceProvider
revisionNumber
- version number.public java.lang.Object getdataSetFromWorkspace(Workspace workspace, java.lang.String dataName)
workspace
-dataName
- data namepublic PrjCoordSys getLayerPrj(java.lang.String sceneName, java.lang.String layerName) throws RealspaceException
RealspaceProvider
getLayerPrj
in interface RealspaceProvider
sceneName
- Scene name.layerName
- Layer nameRealspaceException
public java.lang.String getLayerExtendXML(java.lang.String sceneName, java.lang.String layerName) throws RealspaceException
RealspaceProvider
getLayerExtendXML
in interface RealspaceProvider
sceneName
- Scene name.layerName
- Layer nameRealspaceException