Table of Contents

ThinkGeo.MapSuite.Core.EditTools

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

This class is a wrapper class for the FeatureLayer that isolates only the editing methods to make them easily accessible to the programmer.

Inheritance Hierarchy

Members Summary

Public Constructors

EditTools(FeatureSource)

Remarks
Parameters

Protected Constructors

EditTools()

Remarks
Parameters

Public Methods

BeginTransaction()

Remarks
Return Value
Parameters

Add(BaseShape)

Remarks
Return Value
Parameters

Add(Feature)

Remarks
Return Value
Parameters

Add(BaseShape,Dictionary<String,String>)

Remarks
Return Value
Parameters

ScaleUp(String,Double)

Remarks
Return Value
Parameters

ScaleDown(String,Double)

Remarks
Return Value
Parameters

TranslateByDegree(String,Double,Double,GeographyUnit,DistanceUnit)

Remarks
Return Value
Parameters

TranslateByOffset(String,Double,Double,GeographyUnit,DistanceUnit)

Remarks
Return Value
Parameters

Rotate(String,PointShape,Single)

Remarks
Return Value
Parameters

Union(String,AreaBaseShape)

Remarks
Return Value
Parameters

Union(String,Feature)

Remarks
Return Value
Parameters

GetDifference(String,AreaBaseShape)

Remarks
Return Value
Parameters

GetDifference(String,Feature)

Remarks
Return Value
Parameters

Delete(String)

Remarks
Return Value
Parameters

Update(BaseShape)

Remarks
Return Value
Parameters

Update(Feature)

Remarks
Return Value
Parameters

Update(BaseShape,Dictionary<String,String>)

Remarks
Return Value
Parameters

RollbackTransaction()

Remarks
Return Value
Parameters

CommitTransaction()

Remarks
Return Value
Parameters

ToString()

Remarks
Return Value
Parameters

Equals(Object)

Remarks
Return Value
Parameters

GetHashCode()

Remarks
Return Value
Parameters

GetType()

Remarks
Return Value
Parameters

Protected Methods

Finalize()

Remarks
Return Value
Parameters

MemberwiseClone()

Remarks
Return Value
Parameters

Public Properties

IsInTransaction

This property returns true if the FeatureLayer is in a transaction and false if it is not.

Remarks

To enter a transaction, you must first call the BeginTransaction method of the FeatureLayer. It is possible that some FeatureLayers are read only and do not allow edits. To end a transaction, you must either call CommitTransaction or RollbackTransaction.

Return Value

IsTransactionLive

This property returns true if the features currently modified in a transaction are expected to reflect their state when calling other methods on the FeatureLayer, such as spatial queries.

Remarks

The live transaction concept means that all of the modifications you perform during a transaction are live from the standpoint of the querying methods on the object. As an example, imagine that you have a FeatureLayer that has 10 records in it. Next, you begin a transaction and then call GetAllFeatures. The result would be 10 records. After that, you call a delete on one of the records and call the GetAllFeatures again. This time you only get nine records, even though the transaction has not yet been committed. In the same sense, you could have added a new record or modified an existing one and those changes would be considered live, though not committed. In the case where you modify records – such as expanding the size of a polygon – those changes are reflected as well. For example, you expand a polygon by doubling its size and then do a spatial query that would not normally return the smaller record, but instead would return the larger records. In this case, the larger records are returned. You can set this property to be false, as well; in which case, all of the spatially related methods would ignore anything that is currently in the transaction buffer waiting to be committed. In such a case, only after committing the transaction would the FeatureLayer reflect the changes.

Return Value

IsEditable

This property returns whether the FeatureLayer allows edits or is read only.

Remarks

This property is useful to check if a specific FeatureLayer accepts editing. If you call BeginTransaction and this property is false, then an exception will be raised.

Return Value

TransactionBuffer

This property allows you get and set the transaction buffer.

Remarks

N/A

Return Value

Protected Properties

Public Events