com.supermap.data.conversion
Class ImportSettingDWG
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.conversion.ImportSetting
-
- com.supermap.data.conversion.ImportSettingDWG
-
public class ImportSettingDWG extends ImportSetting
DWG file import parameter class
-
-
Constructor Summary
Constructors Constructor and Description ImportSettingDWG()
The default constructor creates a new ImportSettingDWG objectImportSettingDWG(ImportSettingDWG importSettingDWG)
Copy the constructor, and return an ImportSettingDWG object with the same set of informationImportSettingDWG(java.lang.String sourceFilePath, Datasource targetDatasource)
Constructors that construct a new ImportSettingDWG object from the specified source fileImportSettingDWG(java.lang.String sourceFilePath, DatasourceConnectionInfo targetConnectionInfo)
Constructs an ImportSettingDWG object by specifying the source file
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
dispose()
Disposes resources.boolean
getIsBlackWhiteInverse()
Whether black and white anti-colorSpatialIndexInfo
getSpatialIndex()
Gets the spatial index type, which is valid when the isSpatialIndexAutoBuilt property is truejava.lang.String
getStyleMapFilePath()
Get the style control pathboolean
isAttributeIgnored()
Gets whether or not to ignore the attributeboolean
isImportingAsCAD()
Gets whether the target dataset type is a CAD type and defaults to truevoid
setAttributeIgnored(boolean value)
Sets whether or not to ignore attributesvoid
setImportingAsCAD(boolean value)
Set the import mode, that is, the target data set type, that is, into the CAD data set, otherwise the data corresponding to the type of simple vector data setvoid
setIsBlackWhiteInverse(boolean inverse)
Set whether black and white anti-colorvoid
setSpatialIndex(SpatialIndexInfo value)
Set the spatial index typevoid
setStyleMapFilePath(java.lang.String value)
Set the style control path-
Methods inherited from class com.supermap.data.conversion.ImportSetting
getEncodeType, getSourceFileCharset, getSourceFilePath, getSourceFileType, getSourcePrjCoordSys, getTargetDatasetName, getTargetDatasource, getTargetDatasourceConnectionInfo, getTargetEncodeType, getTargetPrjCoordSys, setEncodeType, setImportEmptyDataset, setSourceFileCharset, setSourceFilePath, setTargetDatasetName, setTargetDatasource, setTargetDatasourceConnectionInfo, setTargetEncodeType, setTargetPrjCoordSys
-
-
-
-
Constructor Detail
-
ImportSettingDWG
public ImportSettingDWG()
The default constructor creates a new ImportSettingDWG object
-
ImportSettingDWG
public ImportSettingDWG(ImportSettingDWG importSettingDWG)
Copy the constructor, and return an ImportSettingDWG object with the same set of information- Parameters:
importSettingDWG
- Setting parameters
-
ImportSettingDWG
public ImportSettingDWG(java.lang.String sourceFilePath, DatasourceConnectionInfo targetConnectionInfo)
Constructs an ImportSettingDWG object by specifying the source file- Parameters:
sourceFilePath
- Source file full pathtargetConnectionInfo
- Target data source connection information
-
ImportSettingDWG
public ImportSettingDWG(java.lang.String sourceFilePath, Datasource targetDatasource)
Constructors that construct a new ImportSettingDWG object from the specified source file- Parameters:
sourceFilePath
- Source file full pathtargetDatasource
- Target data source
-
-
Method Detail
-
isImportingAsCAD
public boolean isImportingAsCAD()
Gets whether the target dataset type is a CAD type and defaults to true- Returns:
- Whether it is a CAD type
-
setImportingAsCAD
public void setImportingAsCAD(boolean value)
Set the import mode, that is, the target data set type, that is, into the CAD data set, otherwise the data corresponding to the type of simple vector data set- Parameters:
value
- Whether it is imported into a CAD dataset
-
getSpatialIndex
public SpatialIndexInfo getSpatialIndex()
Gets the spatial index type, which is valid when the isSpatialIndexAutoBuilt property is true- Returns:
- Spatial index type
-
setSpatialIndex
public void setSpatialIndex(SpatialIndexInfo value)
Set the spatial index type- Parameters:
value
- Spatial index type
-
isAttributeIgnored
public boolean isAttributeIgnored()
Gets whether or not to ignore the attribute- Returns:
- Whether the attribute is ignored
-
setAttributeIgnored
public void setAttributeIgnored(boolean value)
Sets whether or not to ignore attributes- Parameters:
value
- Whether the attribute is ignored
-
getStyleMapFilePath
public java.lang.String getStyleMapFilePath()
Get the style control path- Returns:
- path
-
setStyleMapFilePath
public void setStyleMapFilePath(java.lang.String value)
Set the style control path- Parameters:
value
- path
-
dispose
public void dispose()
Disposes resources.
-
setIsBlackWhiteInverse
public void setIsBlackWhiteInverse(boolean inverse)
Set whether black and white anti-color- Parameters:
inverse
- Whether black and white anti-color
-
getIsBlackWhiteInverse
public boolean getIsBlackWhiteInverse()
Whether black and white anti-color- Returns:
- Whether black and white anti-color
-
-