Region Poly Count

Creates an INFO table with subclass total and total number of regions overlapping each polygon. (This tool is the same as REGIONPOLYCOUNT in ArcInfo.)

Usage Tips

WARNING - This tool will not work if the input coverage or output table have spaces in their path names.

Command line syntax

RegionPolyCount <in_cover> <out_info_table> {_ALL___subclass___subclass}

Parameters

Expression Explanation
<in_cover>

The coverage with region subclasses.

<out_info_table>

The output INFO table that will contain the subclass information for each polygon.

{_ALL___subclass___subclass}

The subclass list.

Specify, $ALL to use all subclasses. This is the default option. Otherwise, specify which region subclasses to generate a count of regions per polygon.

Command Line Example

workspace c:\workspace\test
Set c:\workspace\test into workspace

RegionPolyCount sx_wshed count_info
Executing (RegionPolyCount_8): RegionPolyCount C:\WorkSpace\test\sx_wshed C:\WorkSpace\test\count_info $ALL
Start Time: Mon May 08 17:48:39 2006
Running script RegionPolyCount...
Completed script RegionPolyCount...
Executed (RegionPolyCount_8) successfully.
End Time: Mon May 08 17:48:40 2006 (Elapsed Time: 1.00 secs)

Scripting syntax

RegionPolyCount (in_cover, out_info_table, _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 the subclass information for each polygon.

$ALL | subclass...subclass (Optional)

The subclass list.

Specify, $ALL to use all subclasses. This is the default option. Otherwise, specify which region subclasses to generate a count of regions per polygon.

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 Count tool.
gp.regionpolylist('sx_wshed', 'count_info')