hi ... new PROC GINSIDE, if yoy have 9.2 and a SAS/Graph license
and (from the web page) ...
The GINSIDE procedure compares a data set of X and Y coordinates to a map dataset 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.
Tips and Tricks IV: More SAS/GRAPH® Map Secrets
Darrell Massengill and Jeff Phillips, SAS Institute
U@Albany School of Public Health
One University Place (Room 119)
Rensselaer, New York 12144-3456
> Does anyone have ideas about using SAS for doing point-in-polygon analysis? I
> have a set of lat-long coordinates for which I need to determine all pair(s)
> of coordinates that are inside an irregular polygon. I can do this using a GIS
> application using spatial join functions, but I am wondering if SAS has any
> built-in functions which can be used for this kind of analysis.
> Thank you for your attention.