Question
Can you help me with this problem write with python using arcmap? Thanks! Students will write a python script that allows us to return some
Can you help me with this problem write with python using arcmap? Thanks!
Students will write a python script that allows us to return some basic information related to the number of place types (e.g., Coffee Shops) within a specified radius (e.g., 500m) of metro stations in Washington, D.C.
Your will need to use arcpy.GetParameterAsText() in the script to ask/take four userspecified inputs:
Name of points of interest (POI) shapefile. (e.g., DC_POI.shp)
Name of metro stations shapefile. (e.g., DC_MetroStations.shp)
Name of the place category of interest. (e.g., CoffeeShop)
Radius (in meters) from each metro station in which to count POI. (e.g., 500)
Your will need to use arcpy.AddMessage() in the script to print output message which contains the following information:
Name of the user-supplied place type
Radius supplied by the user
Total number of POI
Total number of POI within the specified radius of all metro stations
Total number of POI of the specified category within the specified radius of all metro stations
Below is an example of output (numbers are fake):
User-supplied Place Category: CoffeeShop
User-supplied Radius: 500 meters
Total number of POI: 24428
Total number of POI within 500 m of a metro station: 1131
Total number of coffee shops within 500 m of a metro station: 121
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started