Creates an INFO file that lists the polygons that belong to each region in the specified subclasses. (This tool is the same as REGIONPOLYLIST in ArcInfo.)
WARNING - This tool will not work if the input coverage or output table have spaces in their path names.
RegionPolyList <in_cover> <out_info_table> {POLY | REGION} {_ALL___subclass___subclass}
Parameters
| Expression | Explanation |
|---|---|
| <in_cover> | The coverage with region subclasses. |
| <out_info_table> | The output INFO table that will contain region and polygon information for each subclass. |
| {POLY | REGION} | The sort option.
|
| {_ALL___subclass___subclass} | The subclass list.
|
Command Line Example
workspace c:\workspace\test Set c:\workspace\test into workspace RegionPolyList sx_wshed rxp_info Executing (RegionPolyList_8): RegionPolyList C:\WorkSpace\test\sx_wshed C:\WorkSpace\test\rxp_info POLY $ALL Start Time: Mon May 08 17:48:39 2006 Running script RegionPolyList... Completed script RegionPolyList... Executed (RegionPolyList_8) successfully. End Time: Mon May 08 17:48:40 2006 (Elapsed Time: 1.00 secs)
RegionPolyList (in_cover, out_info_table, POLY___REGION, _ALL___subclass___subclass)
Parameters
| Expression | Explanation |
|---|---|
| in_cover (Required) | The coverage with region subclasses. |
| out_info_table (Required) | The output INFO table that will contain region and polygon information for each subclass. |
| POLY | REGION (Optional) | The sort option.
|
| $ALL | subclass...subclass (Optional) | The subclass list.
|
Script Example
# Import modules.
import sys, string, os, win32com.client
# Create the Geoprocessor object
gp = win32com.client.Dispatch('esriGeoprocessing.GpDispatch.1')
# Load DV Region toolbox.
gp.AddToolbox('C:/Documents and Settings/dchatfie/Application Data/ESRI/ArcToolbox/My Toolboxes/' + \
'DV Region Tools.tbx')
# Set workspace.
gp.workspace = 'c:/workspace/test'
# Run Region Poly List tool.
gp.regionpolylist('sx_wshed', 'rxp_info')