com.supermap.data.conversion

Class ImportSetting

    • Constructor Detail

      • ImportSetting

        public ImportSetting()
    • 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