Class UGCPlotProvider
- java.lang.Object
-
- com.supermap.services.providers.UGCPlotProvider
-
- All Implemented Interfaces:
- Disposable, PlotProvider, ProviderContextAware
public class UGCPlotProvider extends java.lang.Object implements PlotProvider, ProviderContextAware, Disposable
SuperMap dynamic mapping service provider.
UGCPlotProvider provides SuperMap dynamic mapping of related services, and encapsulates with SuperMap dynamic mapping related to GIS functions.
-
-
Constructor Summary
Constructors Constructor and Description UGCPlotProvider()Default constructorUGCPlotProvider(UGCPlotProviderSetting providerSetting)Build the UGCPlotProvider object with SuperMap data service provider configuration information.
-
Method Summary
Methods Modifier and Type Method and Description java.lang.BooleandeleteSMLFile(java.lang.String smlFileName)According to the situation map file description to delete the specified situation map file information.voiddispose()Release object.GeoGraphicObjectgetGraphicObject(GetGraphicObjectParameter getGOParameters)Obtains graphic object information according to LibID, Code, point string and other related parameters.byte[]getSMLFileBinary(java.lang.String smlFileName)Gets the contents of the binary form of the specified situation map file.java.lang.StringgetSMLFileContent(java.lang.String smlFileName)According to the situation map file description to obtain the specified situation map file content, in the form of a string to return.java.util.List<SMLInfo>getSMLInfos(int start, int count)Gets the list of situation map information.SymbolLibgetSymbolLib(int libID)Obtains the label library information according to the label library ID.int[]getSymbolLibIDs()Returns all label library IDs supported by server.booleansaveAsSMLFile(java.lang.String content, java.lang.String smlFileName, java.lang.Boolean isCover)Stores the situation map file informationvoidsetProviderContext(ProviderContext context)Sets the context of the SuperMap dynamic plotting service provider.
-
-
-
Constructor Detail
-
UGCPlotProvider
public UGCPlotProvider()
Default constructor
-
UGCPlotProvider
public UGCPlotProvider(UGCPlotProviderSetting providerSetting)
Build the UGCPlotProvider object with SuperMap data service provider configuration information.
- Parameters:
providerSetting- SuperMap data service provider configuration information.
-
-
Method Detail
-
getSymbolLibIDs
public int[] getSymbolLibIDs()
Returns all label library IDs supported by server.
- Specified by:
getSymbolLibIDsin interfacePlotProvider- Returns:
- Returns the list of label library IDs.
-
getSymbolLib
public SymbolLib getSymbolLib(int libID)
Obtains the label library information according to the label library ID.
- Specified by:
getSymbolLibin interfacePlotProvider- Parameters:
libID- Label library ID.- Returns:
- Returns label library information.
-
getGraphicObject
public GeoGraphicObject getGraphicObject(GetGraphicObjectParameter getGOParameters)
Obtains graphic object information according to LibID, Code, point string and other related parameters.
- Specified by:
getGraphicObjectin interfacePlotProvider- Parameters:
getGOParameters- Related parameters.- Returns:
- Returns the primitive object information.
-
saveAsSMLFile
public boolean saveAsSMLFile(java.lang.String content, java.lang.String smlFileName, java.lang.Boolean isCover)Stores the situation map file information
- Specified by:
saveAsSMLFilein interfacePlotProvider- Parameters:
content- Situation chart content.smlFileName- Situation map physical file name.isCover- Whether or not to cover the existing situation map.- Returns:
- Whether the preservation is successful
-
getSMLFileContent
public java.lang.String getSMLFileContent(java.lang.String smlFileName)
According to the situation map file description to obtain the specified situation map file content, in the form of a string to return.
- Specified by:
getSMLFileContentin interfacePlotProvider- Parameters:
smlFileName- the situation map physical file name.- Returns:
- the situation map information.
-
deleteSMLFile
public java.lang.Boolean deleteSMLFile(java.lang.String smlFileName)
According to the situation map file description to delete the specified situation map file information.
- Specified by:
deleteSMLFilein interfacePlotProvider- Parameters:
smlFileName- the situation map physical file name.- Returns:
- whether the delete operation succesful.
-
getSMLFileBinary
public byte[] getSMLFileBinary(java.lang.String smlFileName)
Gets the contents of the binary form of the specified situation map file.
- Specified by:
getSMLFileBinaryin interfacePlotProvider- Parameters:
smlFileName- the situation map physical file name.- Returns:
- file stream.
-
getSMLInfos
public java.util.List<SMLInfo> getSMLInfos(int start, int count)
Gets the list of situation map information.
- Specified by:
getSMLInfosin interfacePlotProvider- Parameters:
start- Returns the starting index of the situation map file list.count- Returns the number of the situation map file list.- Returns:
- Gets the list of situation map information.
-
setProviderContext
public void setProviderContext(ProviderContext context)
Sets the context of the SuperMap dynamic plotting service provider.
Dynamic plotting dynamic plotting service provider.- Specified by:
setProviderContextin interfaceProviderContextAware- Parameters:
context- service provider context
-
dispose
public void dispose()
Release object.
- Specified by:
disposein interfaceDisposable
-
-