com.supermap.data.conversion
Class ImportSetting
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.conversion.ImportSetting
-
- Direct Known Subclasses:
- ImportSettingCSV, ImportSettingDWG, ImportSettingDXF, ImportSettingIMG, ImportSettingSHP, ImportSettingTIF
public abstract class ImportSetting extends InternalHandleDisposable
import setting parameter class
-
-
Constructor Summary
Constructors Constructor and Description ImportSetting()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description EncodeTypegetEncodeType()Deprecated.CharsetgetSourceFileCharset()Obtains file string type to be importedjava.lang.StringgetSourceFilePath()Obtains path information of data to be importedFileTypegetSourceFileType()Obtains data type to be importedPrjCoordSysgetSourcePrjCoordSys()Obtains source data coordinate, only support TIF, SIT, IMG, SHP, MIF, TAB coordinate so far, and others are nulljava.lang.StringgetTargetDatasetName()Obtains target dataset nameDatasourcegetTargetDatasource()Obtains target datasourceDatasourceConnectionInfogetTargetDatasourceConnectionInfo()Obtains connection information of datasource to be importedEncodeTypegetTargetEncodeType()Sets dataset encoding type to be generatedPrjCoordSysgetTargetPrjCoordSys()Obtains target data coordinate after importedvoidsetEncodeType(EncodeType type)Deprecated.voidsetImportEmptyDataset(boolean bImportEmptyDT)Sets whether it is null dataset. the default is not imported, if the imported data is null, return false when import.voidsetSourceFileCharset(Charset charset)sets file string type to be importedvoidsetSourceFilePath(java.lang.String path)Sets path information of data to be importedvoidsetTargetDatasetName(java.lang.String targetDatasetName)sets the name of the target dataset.voidsetTargetDatasource(Datasource datasource)sets target datasourcevoidsetTargetDatasourceConnectionInfo(DatasourceConnectionInfo connectionInfo)Sets connection information of datasource to be importedvoidsetTargetEncodeType(EncodeType type)Sets dataset encoding type to be generatedvoidsetTargetPrjCoordSys(PrjCoordSys prjCoordSys)Sets target data coordinate after imported
-
-
-
Method Detail
-
getSourceFilePath
public java.lang.String getSourceFilePath()
Obtains path information of data to be imported- Returns:
- data path
-
setSourceFilePath
public void setSourceFilePath(java.lang.String path)
Sets path information of data to be imported- Parameters:
path- data path
-
getTargetDatasetName
public java.lang.String getTargetDatasetName()
Obtains target dataset name- Returns:
- The name of the target dataset.
-
setTargetDatasetName
public void setTargetDatasetName(java.lang.String targetDatasetName)
sets the name of the target dataset.- Parameters:
targetDatasetName- target dataset name
-
getSourceFileType
public FileType getSourceFileType()
Obtains data type to be imported- Returns:
- Data type.
-
getTargetDatasourceConnectionInfo
public DatasourceConnectionInfo getTargetDatasourceConnectionInfo()
Obtains connection information of datasource to be imported- Returns:
- Datasource connection information.
-
setTargetDatasourceConnectionInfo
public void setTargetDatasourceConnectionInfo(DatasourceConnectionInfo connectionInfo)
Sets connection information of datasource to be imported- Parameters:
connectionInfo- datasource connection information
-
getTargetDatasource
public Datasource getTargetDatasource()
Obtains target datasource- Returns:
- target datasource.
-
setTargetDatasource
public void setTargetDatasource(Datasource datasource)
sets target datasource- Parameters:
datasource- target datasource.
-
getTargetEncodeType
public EncodeType getTargetEncodeType()
Sets dataset encoding type to be generated- Returns:
- encoding type
-
getEncodeType
@Deprecated public EncodeType getEncodeType()
Deprecated.Sets dataset encoding type to be generated- Returns:
- encoding type
-
setEncodeType
@Deprecated public void setEncodeType(EncodeType type)
Deprecated.Sets dataset encoding type to be generated- Parameters:
type- encoding type
-
getSourceFileCharset
public Charset getSourceFileCharset()
Obtains file string type to be imported- Returns:
- string type
-
setSourceFileCharset
public void setSourceFileCharset(Charset charset)
sets file string type to be imported- Parameters:
charset- string type
-
setTargetEncodeType
public void setTargetEncodeType(EncodeType type)
Sets dataset encoding type to be generated- Parameters:
type- encoding type
-
getTargetPrjCoordSys
public PrjCoordSys getTargetPrjCoordSys()
Obtains target data coordinate after imported- Returns:
- target data coordinate
-
setTargetPrjCoordSys
public void setTargetPrjCoordSys(PrjCoordSys prjCoordSys)
Sets target data coordinate after imported- Parameters:
prjCoordSys- target data coordinate
-
getSourcePrjCoordSys
public PrjCoordSys getSourcePrjCoordSys()
Obtains source data coordinate, only support TIF, SIT, IMG, SHP, MIF, TAB coordinate so far, and others are null- Returns:
- coordinate
-
setImportEmptyDataset
public void setImportEmptyDataset(boolean bImportEmptyDT)
Sets whether it is null dataset. the default is not imported, if the imported data is null, return false when import. Currently, only supported shp file.- Parameters:
bImportEmptyDT- whether import null dataset, true means import, false means do not import
-
-