com.supermap.data.conversion
Class ImportSettingDXF
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.conversion.ImportSetting
-
- com.supermap.data.conversion.ImportSettingDXF
-
public class ImportSettingDXF extends ImportSetting
DXF file import parameter class.
-
-
Constructor Summary
Constructors Constructor and Description ImportSettingDXF()The default constructor creates a new ImportSettingDXF object.ImportSettingDXF(ImportSettingDXF importSettingDXF)Copy the constructor, and return an ImportSettingDXF object with the same set of information.ImportSettingDXF(java.lang.String sourceFilePath, Datasource targetDatasource)Constructs an ImportSettingDXF object by specifying the source file.ImportSettingDXF(java.lang.String sourceFilePath, DatasourceConnectionInfo targetConnectionInfo)Constructs an ImportSettingDXF object by specifying the source file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddispose()Disposes resources.booleangetIsBlackWhiteInverse()Whether black and white anti-colorSpatialIndexInfogetSpatialIndex()Gets the spatial index type, which is valid when the isSpatialIndexAutoBuilt property is truejava.lang.StringgetStyleMapFilePath()Get the style control pathbooleanisAttributeIgnored()Gets whether or not to ignore the attributebooleanisImportingAsCAD()Gets whether the target dataset type is a CAD type and defaults to truebooleanisImportingAsCADWithGIS()When importing a simple layer for CAD, whether it is stylebooleanisImportingByLayer()To obtain whether the CAD data in the source data is merged in the imported data, the CAD is stored in the layer information, The default is false, that is, all the layer information is merged into a CAD data set, or corresponding to the source data in each layer to generate a CAD data set.voidsetAttributeIgnored(boolean value)Sets whether or not to ignore attributesvoidsetImportingAsCAD(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 setvoidsetImportingAsCADWithGIS(boolean value)When importing a simple layer for CAD, whether it is stylevoidsetImportingByLayer(boolean value)Set whether to import layers, true for each layer to generate a CAD dataset, false to merge to generate a CAD datasetvoidsetIsBlackWhiteInverse(boolean inverse)Set whether black and white anti-colorvoidsetSpatialIndex(SpatialIndexInfo value)Set the spatial index typevoidsetStyleMapFilePath(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
-
ImportSettingDXF
public ImportSettingDXF()
The default constructor creates a new ImportSettingDXF object.
-
ImportSettingDXF
public ImportSettingDXF(ImportSettingDXF importSettingDXF)
Copy the constructor, and return an ImportSettingDXF object with the same set of information.- Parameters:
importSettingDXF- Parameter object
-
ImportSettingDXF
public ImportSettingDXF(java.lang.String sourceFilePath, DatasourceConnectionInfo targetConnectionInfo)Constructs an ImportSettingDXF object by specifying the source file.- Parameters:
sourceFilePath- Source file full pathtargetConnectionInfo- Target data source connection information
-
ImportSettingDXF
public ImportSettingDXF(java.lang.String sourceFilePath, Datasource targetDatasource)Constructs an ImportSettingDXF object by specifying the 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 to import the CAD dataset
-
setImportingAsCADWithGIS
public void setImportingAsCADWithGIS(boolean value)
When importing a simple layer for CAD, whether it is style- Parameters:
value- Whether with style
-
isImportingAsCADWithGIS
public boolean isImportingAsCADWithGIS()
When importing a simple layer for CAD, whether it is style- Returns:
- Whether with style
-
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
-
isImportingByLayer
public boolean isImportingByLayer()
To obtain whether the CAD data in the source data is merged in the imported data, the CAD is stored in the layer information, The default is false, that is, all the layer information is merged into a CAD data set, or corresponding to the source data in each layer to generate a CAD data set. Note: Only valid when imported into CAD data.- Returns:
- Whether to import with layers
-
setImportingByLayer
public void setImportingByLayer(boolean value)
Set whether to import layers, true for each layer to generate a CAD dataset, false to merge to generate a CAD dataset- Parameters:
value- Whether to import with layers
-
-