Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help coding this in Python for ArcGis Pro. I can do steps 1 and 2 easy enough but I thought I would include

I need help coding this in Python for ArcGis Pro.

I can do steps 1 and 2 easy enough but I thought I would include them for reference.

Geoprocessing using ArcPy

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. (You may want to consult the book on this one Chapter 6.3.

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

Advances In Spatial Databases 2nd Symposium Ssd 91 Zurich Switzerland August 1991 Proceedings Lncs 525

Authors: Oliver Gunther ,Hans-Jorg Schek

1st Edition

3540544143, 978-3540544142

More Books

Students also viewed these Databases questions