Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone give me working code for this Python coding assignment? Manipulating Attributes of Vector Data 1. Create an ArcGIS Pro project to store your

Can someone give me working code for this Python coding assignment?

Manipulating Attributes of Vector Data

1. Create an ArcGIS Pro project to store your output products. Now close ArcGIS Pro.

2. Create a new Python File in your Python projects folder with PyCharm (or your chosen IDE). Import the arcpy site package, the data access module, and setup your workspace to your Python file (arcpy.env.workspace) to the project File Geodatabase.

3. Using arcpy.CopyFeatures_management() in your Python script, copy the TaxParcel Feature Class in the ParcelFabric Feature Dataset to the root of your new File Geodatabase: https://pro.arcgis.com/en/pro-app/latest/tool-reference/data- management/copy-features.htm

4. Using the arcpy.management.AddField() function, add a field called chains for our Land Surveyor. The field will have a field type of DOUBLE, will have Surveyor Chains as the alias, will be NULLABLE, and will be NON_REQUIRED. Be careful to add space holders for the optional arguments: https://pro.arcgis.com/en/pro-app/latest/tool- reference/data-management/add-field.htm

5. Now update the Chains Field with following formula: chains = shape_length / 66.

6. Now print out the parcels which have a perimeter over 6 chains so that the line reads similar to: Parcel is over 6 chains in length. APN is a Field in the TaxParcel Feature Class. Turn in your Python code as a .py file when you are finished.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Density (D) can be found using the formula D=( mass )/( volume )

Answered: 1 week ago