The GINSIDE procedure
compares a data set of X and Y coordinates to a map data set containing
map polygons. The procedure determines whether the X and Y coordinates
for each point fall inside of or outside of the map polygons. If the
point falls inside of a polygon, then the ID variable is set to the
ID value of that polygon. For example, if a map contains states, then
the ID variable of the output data set is set to the state that contains
the point. The GINSIDE procedure can be used with the
SAS/GRAPH map
data sets and the results can be used to annotate onto a map with
the GMAP procedure.
Note: Points that fall on the border
of a polygon might give unpredictable results.