BookmarkSubscribeRSS Feed
tgrandchamp
Fluorite | Level 6

I am trying to create a dataset of geographic (Lat& Long based) polygon boundaries similar to the mapsgfk.us_counties data set. With the goal of displaying polygons of the resulting polygons using a choromap statement in PROC SGMAP.

 

The data I have to start with are individual latitude and longitude variables for data points within a given polygon. How can i use these individual Lat & Long datapoints to generate the boundry information necessary to use the choromap statement to create a polygon that overlays the area containing the individual data points.

 

Basically I am trying to take the plot data from the top image and create the boundry polygon on the bottom image:

image.png2018-11-07_10-07-13.png

2 REPLIES 2
ballardw
Super User

Please do not post essentially Identical questions on this forum.

 

I leads to confused responses across threads, duplicate or similar comments by different folks unaware of the "other thread" and makes others searching the forum have more difficulty finding solutions on similar topics.

GraphGuy
Meteorite | Level 14

You could perhaps start with the polygons for a Census block map, and then use Proc Ginside to determine what Census blocks your points are 'inside' of, and then color those Census blocks red. Or, one step further, you could run Proc Gremove (to remove internal Census block boundaries) and create a single polygon for the area.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1317 views
  • 0 likes
  • 3 in conversation