Functions | |
| int | Shapefile.EditAddShape (Shape Shape) |
| Adds a new shape to the shapefile. | |
| bool | Shapefile.EditClear () |
| Deletes all the shapes from the shapefile. | |
| bool | Shapefile.EditDeleteShape (int ShapeIndex) |
| Deletes a shape from the shapefile. | |
| bool | Shapefile.EditInsertShape (Shape Shape, ref int ShapeIndex) |
| Inserts a new shape in the shapefile. | |
| bool | Shapefile.StartEditingShapes (bool StartEditTable, ICallback cBack) |
| Starts editing mode for the shapefile. | |
| bool | Shapefile.StopEditingShapes (bool ApplyChanges, bool StopEditTable, ICallback cBack) |
| Stops editing modes for the shapefile and optionally saves the changes. | |
Properties | |
| bool | Shapefile.EditingShapes [get] |
| Gets the value indicating whether editing operations are allowed for shapefile. | |
Here is a list of properties and methods which control the editing of shapefile. This module is a part of the documentation of Shapefile class.
| int Shapefile.EditAddShape | ( | Shape | Shape | ) |
Adds a new shape to the shapefile.
| Shape | The shape to be added. |
| bool Shapefile.EditClear | ( | ) |
Deletes all the shapes from the shapefile.
Both shapefile and attribute table must be in editing mode for the successful operation. The records of atribute table will be removed as well to ensure shapefile integrity.
| bool Shapefile.EditDeleteShape | ( | int | ShapeIndex | ) |
Deletes a shape from the shapefile.
Both shapefile and attribute table must be in editing mode for the successful operation. Corresponding record will be removed from atribute table to ensure shapefile integrity.
| ShapeIndex | The index of shape to delete. |
| bool Shapefile.EditInsertShape | ( | Shape | Shape, |
| ref int | ShapeIndex | ||
| ) |
Inserts a new shape in the shapefile.
Both shapefile and attribute table must be in editing mode for the successful operation. A record will be automatically added to the atribute table to ensure shapefile integrity.
| Shape | The shape object to insert. |
| ShapeIndex | The index to insert the new shape at. An ivalid index will be automatically substituted with closest allowable value without reporting the error. |
| bool Shapefile.StartEditingShapes | ( | bool | StartEditTable, |
| ICallback | cBack | ||
| ) |
Starts editing mode for the shapefile.
In case editing mode has already been opened the new call will return true inspite of it which is different from the bevavior of the earlier versions (before 4.8).
| StartEditTable | A value which indicate whether or not the editing mode will be opened for attribute table associated with the shapefile. |
| cBack | A callback object to report errors and progress information. |
| bool Shapefile.StopEditingShapes | ( | bool | ApplyChanges, |
| bool | StopEditTable, | ||
| ICallback | cBack | ||
| ) |
Stops editing modes for the shapefile and optionally saves the changes.
| ApplyChanges | The value which indicates whether changes made to the shapefile shoud be saved. |
| StopEditTable | The value which indicates whether editing mode for associated attribute table should be closed as well. |
| cBack | A callback object to report errors and progress information. |
bool Shapefile.EditingShapes [get] |
Gets the value indicating whether editing operations are allowed for shapefile.
Shapefile.EditInsertShape, Shapefile.EditDeleteShape, Shapefile.EditClear are affected by this property.
Use Shapefile.StartEditingShapes and Shapefile.StopEditingShapes to control the editing mode.
1.7.6.1