|
|
Other Files - Software - GIS Scripts
Category |
Theme |
Resource (click on title to view file details) |
Download |
Software |
GIS Scripts |
GCE ArcGIS Python Scripts Description - Eight Python scripts (version 2.5) were developed to dynamically generate ESRI shapefiles. The scripts use input data from a database or csv file, and the output is saved as a zipfile. Each script has two variants: 1) a prompt interface, which allows the user to pass in variables from the command line, and 2) hard coded variables, which allows the script to be utilized in an integrated information system. The scripts are organized into two main categories. The first category receives input data from a database. Six scripts receive input data from a database, and are further categorized according to their output. These are: 1) One point shapefile that contains one or more points, 2) One polygon shapefile that contains two or more polygons, and 3) One polygon shapefile that contains one polygon per shapefile. The SQL and ArcGIS attribute table fields are dynamically generated based on variables that are either passed in or hard coded in the script. The other main category, a total of two scripts, receives input data from a csv file. For every csv file in a directory, one point shapefile is generated for every row in the csv file. The ArcGIS attribute field names are dynamically generated based on the first row in the csv file. The code is thoroughly commented. (contributed by Travis Douce, 2010) |
|
|