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.
Here is the failed overlay:
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):
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):
Got it! Thanks!
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.