An AML Program For Calculating the Number

of Points within a Set of Polygons


Appendix 4. An Example of the Screen Output Produced by the AML

Arc: &run pip.aml



  ----------------------------------------
  |                                      |
  | This AML Calculates the Number of    |
  | Points within a set of Polygons      |
  |                                      |
  ----------------------------------------



 Current location: /home/magis/gisjb/project1


In a moment, Popup Menus will appear allowing you to select Polygon and 
Point Coverages for use within this AML.

If the Coverage you require is not listed, select the NONE option.


To discard any Points located outside of the Polygons a new Coverage is 
created using an Intersect Overlay.
 
Checking Validation of Coverage Name .....

This AML will now perform an Intersect Overlay between
Polygon Coverage : test_poly
Points Coverage  : test_point
Creating Intersect Coverage : test01

If these details are correct the Intersect Overlay can be performed,
 otherwise you can change any of these selections.

Intersecting test_point with test_poly to create test01 .....

Coverage test01 was created by the performing the Intersect Command.

The Frequency Command is now used to calculate the Points Frequency
within this Coverage.
  
Calculating the Points Frequency .....

Points Frequency Calculated

This program uses Joinitem to insert the calculated frequency into
attribute table of Polygon Coverage test_poly.

A name is required for this item in the attribute table.

The default item name is Frequency.

Joinitem will attach Frequency file test01_freq.tab to the attribute
table of Polygon Coverage test_poly.

Joining test_poly.pat and test01_freq.tab to create test_poly.pat

Unnecessary joined Items will be dropped from the attribute table of 
polygon coverage test_poly.

 Dropping test01_case_item from test_poly.pat to create test_poly.pat
 Dropping test01-id from test_poly.pat to create test_poly.pat


You have created the following:
Intersect Coverage : test01
Frequency File     : test01_freq.tab

Deleting Intersect Coverage test01 .....

Intersect Coverage test01 has been deleted

Deleting Frequency File test01_freq.tab .....

Frequency file test01_freq.tab has been deleted.

Return to Main Document

Last Updated 08-03-99