GINSIDE Procedure

ID Statement

Specifies the identification variables in the map data set whose polygons will be checked against the points from the input data set.
Requirement: At least one id-variable is required.

Syntax

ID id-variable(s);

Required Argument

id-variable(s)
specifies one or more identification variables from the map data set. For each X and Y point in the input data set and each ID variable that you specify, if the point lies within a polygon in the map data set, then the ID value of that polygon is written to the output data set. If the point lies outside of all of the polygons, then a missing value is written to the output data set.
For example, the first observation in an input data set contains the values X=1.37 and Y=.68. In the PROC GINSIDE statement, you specify the MAPS.COUNTIES data set, and in the ID statement that you specify the STATE variable. The point (1.37,.68) lies within the polygon where STATE=54, so the first value for STATE in the output data set is 54.