The GINSIDE Procedure |
Requirements: | At least one id-variable is required. |
ID id-variable(s); |
Required Arguments |
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 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.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.