ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Editing Namespace / EditOperation Class / Rubbersheet Method / Rubbersheet(Layer,RubbersheetMethod) Method
The layer to rubbersheet.
The rubbersheet method to use.
Example

In This Topic
    Rubbersheet(Layer,RubbersheetMethod) Method
    In This Topic
    Rubbersheet a layer.
    Syntax
    public void Rubbersheet( 
       Layer layer,
       RubbersheetMethod rubbersheetMethod
    )
    Public Overloads Sub Rubbersheet( _
       ByVal layer As Layer, _
       ByVal rubbersheetMethod As RubbersheetMethod _
    ) 

    Parameters

    layer
    The layer to rubbersheet.
    rubbersheetMethod
    The rubbersheet method to use.
    Exceptions
    ExceptionDescription
    Rubbersheet method cannot be null.
    Invalid rubbersheet method
    Remarks
    Performs a rubbersheet using the specified rubbersheet method.
    Example
    Edit Operation Rubbersheet Features
    //Perform rubbersheet by geometries
    var rubbersheetMethod = new RubbersheetByGeometries()
    {
      RubbersheetType = RubbersheetMethodType.Linear, //The RubbersheetType can be Linear of NearestNeighbor
      LinkLines = linkLines, //IEnumerable list of link lines (polylines)
      AnchorPoints = anchorPoints, //IEnumerable list of anchor points (map points)
      LimitedAdjustmentAreas = limitedAdjustmentAreas //IEnumerable list of limited adjustment areas (polygons)
    };
    
    var rubbersheetOp = new EditOperation();
    //Performs linear rubbersheet transformation on the features belonging to "layer" that fall within the limited adjustment areas
    rubbersheetOp.Rubbersheet(layer, rubbersheetMethod);
    //Execute the operation
    if (!rubbersheetOp.IsEmpty)
    {
      var result = rubbersheetOp.Execute(); //Execute and ExecuteAsync will return true if the operation was successful and false if not
    }
    
    //Alternatively, you can also perform rubbersheet by layer
    var rubbersheetMethod2 = new RubbersheetByLayers()
    {
      RubbersheetType = RubbersheetMethodType.NearestNeighbor, //The RubbersheetType can be Linear of NearestNeighbor
      LinkLayer = linkLayer,
      AnchorPointLayer = anchorPointsLayer,
      LimitedAdjustmentAreaLayer = limitedAdjustmentAreaLayer
    };
    
    //Performs nearest neighbor rubbersheet transformation on the features belonging to "layer" that fall within the limited adjustment areas
    rubbersheetOp.Rubbersheet(layer, rubbersheetMethod2);
    if (!rubbersheetOp.IsEmpty)
    {
      //Execute the operation
      var result = rubbersheetOp.Execute(); //Execute and ExecuteAsync will return true if the operation was successful and false if not
    }
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also