Loading [MathJax]/extensions/tex2jax.js
ImportShape Class Reference

Specific import class for handling shape file imports. More...

+ Inheritance diagram for ImportShape:

Public Member Functions

def __init__ (self, file, filter=None, control=None, collectHdrContents=False, maxBulkPoints=1000, defaultLayout=None)
 creates new shape import object More...
 
def importDBFAttributes (self, flag)
 enable (default) or disable dbf attribute import. any subsequent importAttribute, v_setAddInfoMapping or v_setSemanticMapping call will automatic re-enable the dbf import flag More...
 
def setAttributeMapping (self, layout, mapping)
 to come More...
 
- Public Member Functions inherited from Import
def __init__ (self, file, format=DataFormat.auto, filter=None, control=None, collectHdrContents=False, maxBulkPoints=1000, defaultLayout=None)
 creates new import object More...
 
def getControlObject (self)
 
def getFileFormat (self)
 
def getFilename (self)
 
def getFilter (self)
 
def getHeader (self)
 
def getInvalidGeometries (self)
 
def getPolygonMerging (self)
 
def next (self)
 python 2.x increment iterator support for importing file in a for loop More...
 
def prepareForReading (self)
 
def read (self)
 read an object from file More...
 
def readHeaderSeparately (self)
 
def setControlObject (self, arg1)
 
def setFilter (self, arg1)
 
def setPolygonMerging (self, arg1)
 

Static Public Member Functions

def create (file, filter=None, control=None, collectHdrContents=False, maxBulkPoints=1000, defaultLayout=None)
 creates new shape import object More...
 
def getTableDefinition (file)
 retrieve the table definition of corresponding dbf file (deprecated. use attribute information in file header instead) More...
 
def importAttribute (self, *args, **kwargs)
 possible calls: More...
 
- Static Public Member Functions inherited from Import
def create (file, format=DataFormat.auto, filter=None, control=None, collectHdrContents=False, maxBulkPoints=1000, defaultLayout=None)
 creates new import object More...
 

Detailed Description

Specific import class for handling shape file imports.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  file,
  filter = None,
  control = None,
  collectHdrContents = False,
  maxBulkPoints = 1000,
  defaultLayout = None 
)

creates new shape import object

interface for importing geometry objects from a shpae file

Parameters
[in]fileshape filename
[in]filterfilter for subselecting/transforming objects during export
[in]controlcontrol object for retrieving export progress information
[in]collectHdrContentsflag for explicitly collecting header information while exporting
[in]maxBulkPointschunk size for bulk points being imported at once
[in]defaultLayoutdefault attribute layout for objects while importing (attribute stored within the file, will be extended to this layout)

Member Function Documentation

◆ create()

def create (   file,
  filter = None,
  control = None,
  collectHdrContents = False,
  maxBulkPoints = 1000,
  defaultLayout = None 
)
static

creates new shape import object

interface for importing geometry objects from a shpae file

Parameters
[in]fileshape filename
[in]filterfilter for subselecting/transforming objects during export
[in]controlcontrol object for retrieving export progress information
[in]collectHdrContentsflag for explicitly collecting header information while exporting
[in]maxBulkPointschunk size for bulk points being imported at once
[in]defaultLayoutdefault attribute layout for objects while importing (attribute stored within the file, will be extended to this layout)

◆ getTableDefinition()

def getTableDefinition (   file)
static

retrieve the table definition of corresponding dbf file (deprecated. use attribute information in file header instead)

◆ importAttribute()

def importAttribute (   self,
args,
**  kwargs 
)
static

possible calls:

  • importAttribute(self, dbfAttrIndex: object, ngCol: ColumnSemantic)
  • importAttribute(self, dbfAttrIndex: object, ngName: str, ngType: ColumnType)
Parameters
self(type: object) self pointer
*args(type: list) mandatory parameter
**kwargs(type: dict) mandatory parameter

◆ importDBFAttributes()

def importDBFAttributes (   self,
  flag 
)

enable (default) or disable dbf attribute import. any subsequent importAttribute, v_setAddInfoMapping or v_setSemanticMapping call will automatic re-enable the dbf import flag

◆ setAttributeMapping()

def setAttributeMapping (   self,
  layout,
  mapping 
)

to come

Parameters
self(type: ImportShape) self pointer
layout(type: AddInfoLayout) mandatory parameter
mapping(type: dict) mandatory parameter