ARCMAP-updating values in a column using Python

Source: Internet
Author: User

Overview: In the foreign language online, many people ask in arcmap how to modify the value of the attribute field through SQL, I see the answer to the people said through "Field Calculator", seemingly cannot directly through the SQL statement.

Although the study of GIS development, but still the first touch python, a bit of programming experience, so it is easy to get started.

Steps:

1, first create a field in attribute table through "table Options", "Add field".

2, right-click on the name of the column (field) and select "Field Calculator".

3. Select the "Python" tab and select the desired type. Tick "Show Codeblock" and define the Python function in "Pre-logic Script Code", and invoke the Python function in the text box below it.:

For a quick introduction to Python, ESRI's help is still good. Here are some references:

Ref:http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/calculate_field_examples/005s0000002m000000/

ARCMAP-updating values in a column using Python

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.