Exercise 9: Making versioned edits as a read/write user

This topic applies to ArcGIS for Desktop Standard and ArcGIS for Desktop Advanced only.

Complexity: Beginner Data Requirement: ArcGIS Tutorial Data for Desktop Goal: Log in as a read/write user, connect to a version other than the default version, and edit versioned data.

To see another way users with nonadministrative permissions can edit the data, you will log in as editor1, edit a feature class in ArcMap, then reconcile and post the edits to the edit version.

Logging in as editor1

Log off the computer and log back in as editor1.

Steps:
  1. Log in to the computer as editor1.

    How you do this depends on your operating system. On most Windows operating systems, you can use switch users. On Windows XP, log out, then log in again as editor1.

  2. Start ArcMap, open the Catalog window, then expand the Database Servers folder in the Catalog tree.

Connecting to a different version and saving the connection

By default, database server connections are always to the DEFAULT version. To change which version of a geodatabase you are connected to, you will use the Change Version dialog box. If you were to close ArcMap, the next time you started ArcMap and connected to the geodatabase through the database server node, you would again be connected to the DEFAULT version.

To save your connection to a specific version, you can save a database connection to this version. This creates a connection file under the Database Connections node in the Catalog tree.

Database connections save the connection properties you assign until you change them. That means the next time you start ArcMap as editor1, you will still have a connection to the version of the geodatabase you want without having to change any settings.

Steps:
  1. Double-click your database server in the Catalog window to connect to it.
  2. Right-click the Osokopf geodatabase and click Change Version.
  3. Make sure the Transactional or Tree View tab is active.
  4. Choose the railroadv1 version and click OK.

    The connection for the Osokopf geodatabase now shows you are connected to railroadv1.

  5. To save the connection to this version of the geodatabase, right-click the Osokopf geodatabase and click Save Connection.

    This creates a connection file for this version of the geodatabase under the Database Connections node.

  6. Expand the Database Connections node in the Catalog window.

    You can see a new connection has been created to the geodatabase. The default connection name is Connection to <machine_name>_<sql_server_express_instance>.

    TipTip:

    You can change the name of the connection by right-clicking the connection, clicking Rename, then typing a new name.

  7. Right-click this connection and click Connection Properties.

    As you can see, all the connection information has been completed for you. The Database Platform is set to SQL Server, the SQL Server Express instance name is in the Instance text box, operating system authentication is chosen for the authentication mode, and the database name is in the Database text box.

  8. Click OK or Cancel to close the Database Connection dialog box.
  9. To confirm that you are connected to the railroadv1 version, open the Geodatabase Connection Properties dialog box.
  10. Right-click the database connection and click Geodatabase Connection Properties.

    The Geodatabase Connection Properties dialog box opens and the railroadv1 transactional version is highlighted to show it is the version to which you are connected.

  11. Close the Geodatabase Connection Properties dialog box.

Making edits to a versioned dataset

In Exercise 8, manager1 imported a feature class—railroads—and registered it as versioned. You are going to edit that feature class in the railroadv1 version.

Preparing to edit

Add the versioned dataset and reference data to ArcMap.

Steps:
  1. Expand the new database connection to the Osokopf geodatabase.
  2. Click and drag the railroad feature class into ArcMap.
  3. For reference, add the streets and villages feature classes and the parks feature dataset to the map.
  4. Expand the buildings08 geodatabase on the database server and drag the gov_bldgs, schools, and utilities feature classes onto the map for reference as well.
  5. If necessary, drag the villages feature class to the bottom of the Layers list in the table of contents.

To help orient yourself on the map, you will label the streets feature class.

Steps:
  1. Right-click the Streets layer in the ArcMap table of contents and click Label Features.

    The names of streets for which a name attribute exists are drawn on the map.

Since the data you will edit is registered as versioned, be sure ArcMap is set to perform versioned edits.

Steps:
  1. Open the Editor toolbar if it is not already open.

    Customize > Toolbars > Editor

  2. Click Editor on the Editor toolbar and click Options on the drop-down list.

    This opens the Editing Options dialog box.

  3. Click the Versioning tab.
  4. Be sure the Edit a version of the database with the ability to undo and redo box is checked. If not, check it.
  5. There are other options on this dialog box you can set to control the behavior of a versioned edit session. These include setting which sorts of edits can be considered conflicts, which edits to use during auto-reconciliation, and whether to automatically save edits after auto-reconciliation. For more information on these options, see A quick tour of reconciling a version.

    Editor Options dialog box set for versioned edits

  6. You will use the default settings, so click OK to close the Editing Options dialog box.
  7. Now start an edit session.
  8. Click Editor on the Editor toolbar and click Start Editing.
  9. You will likely see warning messages indicating that some of the data cannot be registered because it is not registered as versioned. Click Continue to dismiss this message box.

Performing edits

You will add one new rail line and one side rail to the railroads feature class. You will also extend an existing side rail.

As noted earlier in this tutorial, when editing actual data, you would be more accurate, using coordinates or tracing from a georeferenced image. For the purposes of this tutorial, you will simply draw the features.

Add a rail line

Steps:
  1. Click the Zoom In button on the ArcMap Tools toolbar.
  2. Hold down the mouse button and draw a box around the northeastern portion of the island.

    Zooming in to the upper-right area of map

  3. The section of rail line you will add starts at the existing Cross Island line between Serpent and Sandpiper streets, east of Pilot street, and ends at the tip of the existing Centremont East line.
    TipTip:

    To identify features on the map, click the Identify button on the ArcMap Tools toolbar and click a feature. This opens the Identify window, which shows the attributes of the feature.

    Start and end points for the new rail line

  4. Click Railroads in the Create Features window.
  5. Click Line under the Construction Tools.
  6. Pause the pointer on the Cross Island line between Serpent and Sandpiper until you see you are on the edge of the railroad line.

    Hovering over the rail line to find the edge

  7. Right-click, click Snap to Feature, then click Edge.

    This snaps the first vertex of the new line to the edge of the Cross Island line.

  8. Extend the line between Dock and Sandpiper until you reach the end of the Centremont East line.

    Hovering over the end of Centremont East line to find the end point

  9. Right-click, click Snap to Feature, then click Endpoint to place an end vertex for your new feature.
  10. Right-click and click Finish Sketch to add the new feature to the railroads feature class.

    New rail line

  11. Click Editor on the Editor toolbar and click Save Edits to save the changes you have made so far.
  12. Click the Attributes button Attribute button on the Editor toolbar.

    The Attributes dialog box opens.

  13. Click in the field next to rail_owner and type Oso Rail.

Add a side rail

Change your extent by panning to the area where the next feature will be added.

Steps:
  1. Click the Pan button Pan button on the ArcMap Tools toolbar.

    Your cursor changes to the pan symbol.

  2. Click in the center of the map, hold down the mouse button, and pull the map down until both the College Sports Park and the sewage treatment plant are visible.

    New extent

  3. You will add a new side rail on the Cross Island line, east of Serpent.

    Location for new side rail

  4. Click railroad in the Create Feature window and click line.
  5. Pause the pointer on the Cross Island rail line in the location indicated in the previous graphic until you are over the railroad edge.
  6. Right-click, click Snap to Feature, then click Edge.
  7. Draw a curved line that tends toward the northeast. Click to add vertices to create the curve.

    Drawing the new side rail

  8. Double-click the end vertex to finish the sketch.
  9. NoteNote:

    For the purpose of this tutorial, edits do not have to be exact. When you edit your own data, you will be much more precise when adding features.

  10. Click the Attributes button on the Editor toolbar.
  11. Type Oso Rail in the field next to rail_owner.
  12. Click Editor on the Editor toolbar and click Save Edits to save the changes you have made so far.

Extend the Cross Island college side rail

The college side rail should be visible in your current extent. If it is not, pan to it.

College side rail

You are going to extend this line.

Steps:
  1. Click the Edit Tool button Edit Tool button on the Editor toolbar.
  2. Click the Cross Island college side rail to select it.
  3. Click the Edit Vertices button Edit Vertices button on the Editor toolbar.

    The vertices of the college side rail are visible on the map.

  4. Right-click the college side rail line just before the end vertex and click Insert Vertex.
  5. Pause the pointer on the end vertex until handles appear around the vertex.

    Select end vertex

  6. Click and drag the vertex until it is closer to Morris Street.

    Extend rail near street

  7. Right-click and click Finish Sketch.
  8. Click Editor on the Editor toolbar and click Save Edits to save the changes you have made so far.

Reconciling edits and posting changes

You have finished the edits you will do on the railroads feature class. Now you will reconcile and post your edits to the DEFAULT version.

Steps:
  1. Open the Versioning toolbar if it is not already open.

    Customize > Toolbars > Versioning

  2. Click the Reconcile button Reconcile button on the Versioning toolbar.

    The Reconcile dialog box opens.

  3. The dbo.DEFAULT version is already chosen as the target version, so you do not need to choose a target version. You will also use the default setting for defining conflicts, so leave By object (by row) selected. However, you will change how conflicts are resolved.
  4. Click In favor of the Edit Version on the Reconcile dialog box.
  5. Click OK.
  6. No other users were editing this data in the DEFAULT version, so no conflicts were detected. This is a common result, especially when you are using geodatabases on a database server. It is uncommon for other users to be editing the same features in the same feature class as you in a geodatabase on a database server.

    Since you did not encounter any conflicts, you can now post your changes to the DEFAULT version.

  7. Click the Post button Post button on the Versioning toolbar.

    Your edits are moved into the DEFAULT version. Now, anyone who connects to the DEFAULT version can see your changes.

  8. Click Editor on the Editor toolbar and click Stop editing.

You logged in with a login that has read and write access to the geodatabase and performed a set of versioned edits on a feature class. You then reconciled and posted your edits to the DEFAULT version of the geodatabase. In Exercise 10, you will log in as manager1 and compress the geodatabase.

11/6/2012