BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
paldridge
Calcite | Level 5

I am working with the American Indian/Alaska Native/Native Hawaiian Area shape files, specifically looking at the South Dakota tribal regions. I am having a difficult time getting a US (or SD when looking at a subset) outline to overlay properly. I am creating an annotate data set from the maps.states to use as my outline. Any thoughts?

These are the South Dakota tribal areas that I have projected and mapped.

gmap2.png

Here is the failed overlay:

SD_Outline_Fail.png

1 ACCEPTED SOLUTION

Accepted Solutions
GraphGuy
Meteorite | Level 14

It's difficult to say, without seeing your code, and seeing what your imported shape files look like.

For the map to come out looking correct, you will need to make sure that both your state map and your imported boundary files have consistent X/Ys ... for example, since maps.states has the long/lat X/Ys in radians, you would want to convert your imported shape file to radians (if they are in degrees, or other), and you want to make sure the longitude (X) value is in 'westlong' (for the US, that would be a positive value, rather than negative).  You'll then want to combine the maps, and gproject them together.

Here is the closest example I have to what you're doing (I'm using maps.counties, rather than maps.states ... and I'm combining the map with some rectangular areas):

http://robslink.com/SAS/democd49/grid_map_info.htm

grid_map.png

View solution in original post

2 REPLIES 2
GraphGuy
Meteorite | Level 14

It's difficult to say, without seeing your code, and seeing what your imported shape files look like.

For the map to come out looking correct, you will need to make sure that both your state map and your imported boundary files have consistent X/Ys ... for example, since maps.states has the long/lat X/Ys in radians, you would want to convert your imported shape file to radians (if they are in degrees, or other), and you want to make sure the longitude (X) value is in 'westlong' (for the US, that would be a positive value, rather than negative).  You'll then want to combine the maps, and gproject them together.

Here is the closest example I have to what you're doing (I'm using maps.counties, rather than maps.states ... and I'm combining the map with some rectangular areas):

http://robslink.com/SAS/democd49/grid_map_info.htm

grid_map.png

paldridge
Calcite | Level 5

Got it! Thanks!

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
  • 2 replies
  • 1516 views
  • 0 likes
  • 2 in conversation