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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

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