ArcGIS for python arcpy (2)

Source: Internet
Author: User

The previous article talked about how to connect to the database.

The following describes how to start operating the database.

StarteditingThe method is used to start an editing session,StartoperationMethod to start the editing operation. To submit the edit operation, callStopoperation. To cancel the edit operation, callAbortoperation. To complete the edit session, callStopeditingThis method accepts a Boolean parameter to indicate that the changes made in the session are submitted or abandoned.

Whether the Undo and redo stacks are enabled in the edit session depends onStarteditingBoolean parameter of the method. If the edit session contains multiple operations that may be rolled back (and redone) according to the corresponding conditions, undo and redo stacks should be enabled. Otherwise, you can disable undo and redo stacks by setting the parameter to false to improve system performance (for example, an edit session contains only one operation ).

Figure 1

Edit the spatial data

One of my data tables

There are three ways for arcpy to insert data, but the details are different.

Use the shape @ XY token

Use the shape @ token

Do not use a token

 

The following statements with errors at three points inserted using the shape @ token are automatically ignored = .. =

View the catalog

3 point data inserted successfully

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.