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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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