![]() |
Results of Geoprocessing operations; Add XY, Buffer and Dissolve |
A key take away form this week's lab was that there are multiple ways to get to the same results. For example, in our script, we could have assigned variables to the different parts of syntax for our geoprocessing operations and make our script more flexible instead of using file paths.
Additionlly, we could have also created a moel in model builder for both the add XY operation and buffer and used this to export a puthon script.
Ultimately, this versatile nature of python makes me ecited to learn different inputs that could take me to the same desired result.
___________________________________________________
For more pointer on the Add XY , buffer, and dissolve operation, please see notes below.
Part 2 - Ad XY:
Remember to import the environment and workspace.
To make script more flexible, it’s best practice to use
variables instead of the hard code in the script.
So, I assigned the hospitals shapefile to the in_features argument in the ADDXY function.
Ensure you to add (env.overwriteOutput = True) to override existing files.
Part 3 - Creating a 1000 Meter buffer and Dissolve:
Use the buffer analysis tool syntax to create a code block
that performs the 1000-meter buffer. The arc GIS pro help page was a life saver
when trying to resolve this as it gave a description of what was required for
each parameter in the function. It was important
to remember to enter( “ ” )for optional empty parameters. Lastly, it was
important to choose the correct dissolve option, ALL, to ensure
all buffers were dissolved into a single feature class.
No comments:
Post a Comment