GeoEco.Datasets.ArcGIS.ArcGISTable.OpenInsertCursor

ArcGISTable.OpenInsertCursor(rowCount=None, reportProgress=True, rowDescriptionSingular=None, rowDescriptionPlural=None)

Opens and returns an InsertCursor for adding rows to the table.

Parameters:
  • rowCount (int, optional) –

    Number of rows that will be inserted, if it is known ahead of time. If the number of rows is not known, omit this parameter.

    This parameter is only used in progress reporting and is ignored if reportProgress is False. If this parameter is provided, the progress reports will include the number of rows remaining and an estimated time of completion. If not provided, the progress reports will only include the number of rows accessed so far.

    Minimum value꞉ 0.

  • reportProgress (bool, optional) – If True, progress messages will be logged periodically as the query proceeds.

  • rowDescriptionSingular (str, optional) – Word to use in progress and error messages for a single row. If omitted, an appropriate generic word will be automatically selected based on the table’s geometry type, such as “point”, “line”, “polygon”, and so on. If the table does not have geometry, “row” will be used. Minimum length꞉ 1.

  • rowDescriptionPlural (str, optional) – Word to use in progress and error messages for plural rows. If omitted, an appropriate generic word will be automatically selected based on table’s geometry type, such as “points”, “lines”, “polygons”, and so on. If the table does not have geometry, “rows” will be used. Minimum length꞉ 1.

Returns:

Opened InsertCursor positioned on the first row (if any rows were returned).

Return type:

InsertCursor