Data visualization with SAS programming

Show multiple SHP files in a Map

Reply
Grand Advisor
Posts: 17,338

Show multiple SHP files in a Map

I'm used to using ArcGIS for projects and looking to see if I can replicate certain features in SAS to make it easier to automate certain projects.

Somethings I'm looking to do that I haven't been able to figure out:

1. Show more than one shape file on the map.  I have region boundaries, but also have locations of facilities and roads that would be nice to show.

2. Add in a scale indicator that shows the map scale, ie 1cm=1000km

3. Add in a North Arrow to indicate the direction North.

SAS Employee
Posts: 967

Re: Show multiple SHP files in a Map

Assuming you're using SAS/Graph proc gmap (the answer will be different for SAS/GIS)...

When it comes to gmap, most of what you're asking for will be manual customizations - and when it comes to that "annotate" is your best friend.

You can import multiple shape files, and convert them to annotate data sets, and then combine several annotate data sets into 1, and then annotate it onto the map (using the anno= option).

You'll have to "freehand" annotate the map scale.  You'll have to be careful to make sure it matches the map (there are many-many things that can affect it).

You'll also have to annotate the North arrow (either an image, or text/graphics).

Grand Advisor
Posts: 17,338

Re: Show multiple SHP files in a Map

Thanks Rob. What would be the answer for SAS/GIS?

If the difference is significant it might be worth it to license that instead of ArcGIS depending on costs, but good to know either way.

I do have access to SAS version with SAS/GIS for testing purposes.

For some reason annotate scares me...most other things in SAS I understand and work with but not annotate.

SAS Employee
Posts: 967

Re: Show multiple SHP files in a Map

SAS/GIS is more geared towards these tasks, so they're more "built-in" rather than having to write custom annotate code.

Also, SAS/GIS would be much easier for importing layers, and turning them on/off easily ... and doing all this interactively.

Whereas ArcGIS is a full-blown GIS software, SAS/GIS would probably be considered "GIS-Lite".

I'll see if I can get one of my GIS buddies to send you some links with specifics on SAS/GIS capabilities.

SAS Employee
Posts: 967

Re: Show multiple SHP files in a Map

Ask a Question
Discussion stats
  • 4 replies
  • 301 views
  • 3 likes
  • 2 in conversation