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!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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