|
hi ... new PROC GINSIDE, if yoy have 9.2 and a SAS/Graph license
http://tinyurl.com/29lr27u
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.
and ...
Tips and Tricks IV: More SAS/GRAPH® Map Secrets
Darrell Massengill and Jeff Phillips, SAS Institute
http://support.sas.com/resources/papers/proceedings09/230-2009.pdf
--
Mike Zdeb
U@Albany School of Public Health
One University Place (Room 119)
Rensselaer, New York 12144-3456
P/518-402-6479 F/630-604-1475
> Hi,
>
> 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.
>
> Sid
>
|