BookmarkSubscribeRSS Feed
fieldsa83
Quartz | Level 8

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)

5 REPLIES 5
Reeza
Super User

SHP files are supported by default and the easiest.

 

 

fieldsa83
Quartz | Level 8

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?

ChrisHemedinger
Community Manager

Here's an example of using MAPIMPORT with 3rd party shape files.

 

More information from @MikeZdebhttp://www.lexjansen.com/nesug/nesug11/gr/gr11.pdf, including some details about SHX.

 

 

 

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
fieldsa83
Quartz | Level 8

Thanks I was actually just reading this and it helped solve my problem!

Reeza
Super User

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). 

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
  • 5 replies
  • 2823 views
  • 4 likes
  • 3 in conversation