Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!