Download presentation
1
Building Site Selection Tool using Python
Jae Sung Kim
2
Input parameters WorkSpace: workspace Projection: Coordinate System
Civil Building: Feature Class Church: Feature Class Groceries: Feature Class Street: Feature Class West Lafayette High School: Feature Class Satellite Image(EROS): Raster Dataset Newly created geodatabase: string Address Locator: Address Locator Address Table Buffer Mileage Price & Number of Bed Room The folder where new GDB will be saved
3
Selection Criteria Price<$150000 No. of Bedroom>=3
Inside 1mile from major road Inside 1.0mile from church and grocery Inside 2.0mile from WL Jr.High School & CE building All can be adjusted in GUI
4
Requirement of project
Create a geodatabase: gp.CreatePersonalGDB(arguments) Batch define projection & georegister all data: Feature class: gp.BatchProject(arguments) Raster: gp.ProjectRaster_management(arguments) Batch input features, raster and tables: gp.FeatureClassToGeodatabase_Conversion(arguments) gp.RasterToGeodatabase_Conversion(arguments) gp.TableToGeodatabase_Conversion(arguments)
5
Requirement of project
Perform site selection Table Select: gp.TableSelect(arguments) Geocode Address: gp.GeocodeAddresses(arguments) select feature: gp.Select(arguments) Buffer: gp.buffer_analysis (arguments) Clip: gp.clip_analysis (arguments) Put message in the window gp.AddMessage(arguments) Access and manipulate atomic elements Delete field: DeleteField_management(arguments) (We don’t need status, score, side from geocoding anymore)
6
Remarks When creating geodatabase, we have to newly set workspace.
ex) Gp.workspace=NewGDB Have an attention about the paths of source code, reference data of Address Locator. Everycode regarding to Geoprocessor can be found out at <
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.