Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python coding for ArcGIS Pro Please give fully operational code. This is all that I have set up. import arcpy from arcpy import env as

Python coding for ArcGIS Pro

Please give fully operational code. This is all that I have set up.

import arcpy from arcpy import env as e e.workspace = "C:/Users/Rpmar/OneDrive/Documents/ArcGIS/Projects/GeoprocessingUsingArcpy/GeoprocessingUsingArcpy.gdb" arcpy.env.overwriteOutput = True

1. First, create an ArcGIS Pro project to store your output products. Create a folder connection to your HBCentral File Geodatabase location.

2. Create a new Python File in your Python projects folder or create a new Python Project with PyCharm (or your chosen IDE). Import the arcpy site package and setup your workspace to your Python file (arcpy.env.workspace) to the ArcGIS Pro project File Geodatabase. 3. Using the arcpy.Describe() function, create your own function to print the baseName, dataType, and shapeType of the SiteAddressPoint Feature Class in the Address Feature Dataset. Call the function. You will need to pass the Feature Class to your function so this could be used with any Feature Class.

4. Using a function, pass the AddressPoint Feature Class in the SiteAddress Feature Dataset and add XY coordinates using the geoprocessing tool. This tool modifies the input data, but this is OK because it will not make any drastic changes that cant be undone if desired. Make sure the Feature Class exists before running the geoprocessing tool.

5. Create a function that runs the Dissolve tool on a Feature Class accepting the Feature Class name, dissolve field, and whether multipart features are allowed. Call the function passing the Feature Class ZoningDistrict in the LandUsePlanning Feature Dataset, the ZoneType field as the field for aggregating features, and specify that multipart features are NOT allowed. Make sure the input exists and be sure to create the output called ZoneDissolve in the project File Geodatabase.

6. With the output you created in step 5, make sure the Feature Class exists, and print out the shapeType, dataType, baseName, and path. Turn in your .py file.

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

blur-text-image

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

Mastering Apache Cassandra 3 X An Expert Guide To Improving Database Scalability And Availability Without Compromising Performance

Authors: Aaron Ploetz ,Tejaswi Malepati ,Nishant Neeraj

3rd Edition

1789131499, 978-1789131499

More Books

Students also viewed these Databases questions