I have access to three formats, wondering which is the easiest to import and use to make a map in SAS:
-ArcGS (.shp)
-Geography markup (.gml)
-MapInfo (.tab)
SHP files are supported by default and the easiest.
Thanks, it's now saying "SHX file is not found or is invalid".
The SHP also came with an SHX, is it trying to call out for that or something?
Here's an example of using MAPIMPORT with 3rd party shape files.
More information from @MikeZdeb: http://www.lexjansen.com/nesug/nesug11/gr/gr11.pdf, including some details about SHX.
Thanks I was actually just reading this and it helped solve my problem!
A SHP file isn't a single file, it has 3 other files at least that have supporting information.
If you downloaded the SHP file from somewhere all the files should be included.
By chance are you working with the Statistics Canada Boundaries? You'll also need to project them if you do.
If this is the case, message me with your email address and I'll send you the code that walks through using the StatCan boundaries (CSD I think in the example).
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.
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.