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.pngimage.png

1 REPLY 1
ChrisNZ
Tourmaline | Level 20

That's a non-trivial modelling computation you are seeking here, imho.

Nothing that can be answered here unless someone already did the same thing and is ready to share (always worth trying...).

 

The way I would approach this is have the coordinates of the streets, see which street segments are INSIDE the zone, and make the boundary pass between INSIDE streets and the closest OUTSIDE streets.

 

Not trivial.

 

If just for graphing, plotting larger points might give you a good enough result.

 

 

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1 reply
  • 856 views
  • 0 likes
  • 2 in conversation