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 EncodeType
getEncodeType()
Deprecated.Charset
getSourceFileCharset()
Obtains file string type to be importedjava.lang.String
getSourceFilePath()
Obtains path information of data to be importedFileType
getSourceFileType()
Obtains data type to be importedPrjCoordSys
getSourcePrjCoordSys()
Obtains source data coordinate, only support TIF, SIT, IMG, SHP, MIF, TAB coordinate so far, and others are nulljava.lang.String
getTargetDatasetName()
Obtains target dataset nameDatasource
getTargetDatasource()
Obtains target datasourceDatasourceConnectionInfo
getTargetDatasourceConnectionInfo()
Obtains connection information of datasource to be importedEncodeType
getTargetEncodeType()
Sets dataset encoding type to be generatedPrjCoordSys
getTargetPrjCoordSys()
Obtains target data coordinate after importedvoid
setEncodeType(EncodeType type)
Deprecated.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.void
setSourceFileCharset(Charset charset)
sets file string type to be importedvoid
setSourceFilePath(java.lang.String path)
Sets path information of data to be importedvoid
setTargetDatasetName(java.lang.String targetDatasetName)
sets the name of the target dataset.void
setTargetDatasource(Datasource datasource)
sets target datasourcevoid
setTargetDatasourceConnectionInfo(DatasourceConnectionInfo connectionInfo)
Sets connection information of datasource to be importedvoid
setTargetEncodeType(EncodeType type)
Sets dataset encoding type to be generatedvoid
setTargetPrjCoordSys(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
-
-