SHPImportSettings

Shape file import settings.

@example:
# Settings class used to control parameters for Shape (SHP) import
settings = SHPImportSettings()
ce.importFile(ce.toFSPath("data/batchExportTests/graphsouth.shp"), settings)
ce.importFile(ce.toFSPath("data/batchExportTests/lotssouth.shp"), settings)

 

此处定义的方法如下:

getFile

getFile(self):

Gets File field.

@return: Value of File field.  [str]

load

load(self, name):

Load the named settings from the current scene file.

@param name: The name of the settings to load.  [str]
@return: result.

save

save(self, name):

Save the named settings to the current scene file.

@param name: The name of the settings to save.  [str]

setFile

setFile(self, stringValue):

Sets File field.

@param stringValue: the new value. [str]

在本主题中
  1. getFile
  2. load
  3. save
  4. setFile