Defining custom geographic polygons, or geo regions, is supported beginning with SAS Visual Analytics 7.4.
The SAS® Visual Analytics 7.5: Administration Guide includes a section for "Geographic Maps." This section includes an example for defining custom polygons for U.S. counties. In that example, the ID for U.S. counties is CS-12345, where ‘12345’ are unique, sequential numbers that are assigned to each U.S. county.
In some cases, there is a business requirement for the U.S. county ID to be US-00999, where ‘00’ is the state FIPS code and ‘999’ is the county FIPS code. This sample provides the geographic tables necessary to implement U.S. counties using state and county FIPS code in the county ID.
This sample includes a compressed file containing the following SAS data tables:
US_COUNTIES1
ATTRLOOKUP
CENTLOOKUP
US_COUNTIES1_VALIDATE_STATE
Here is a sample of the US_COUNTIES1_VALIDATE_STATE table showing U.S.county ID as US-<StateFIPS><CountyFIPS>.
A suggested location for this library is <sas-configuration-directory>/Lev1/SASApp/MAPSCSTM. Include a LIBNAME statement in your appserver_autoexec_usermods.sas file, located by default at <sas-configuration-directory>/Lev1/SASApp. After you have modified your autoexec file, restart the SAS Object Spawner.
The VALIB (SASApp – valib) library is predefined and pre-assigned during a standard SAS Visual Analytics installation. By default, the VALIB directory is located under <sas-configuration-directory>/Lev1/SASApp/Data/valib.
The SAS® package file on the Downloads tab contains a sample SAS Visual Analytics 7.4 report that uses the US_COUNTIES1_VALIDATE_STATE table and includes a geographic hierarchy for country, state, and U.S. county.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
Download the ZIP file containing tables for Windows environments here.
Download the ZIP file containing tables for LINUX environments here.
The SAS Visual Analytics 7.4 report contained in the SAS package file uses the US_COUNTIES1_VALIDATE_STATE SAS data set. Import the SAS package file using SAS Management Console. Import US_COUNTIES1_VALIDATE_STATE to the SAS LASR Analytic Server before opening the report in SAS Visual Analytics.
Download the ZIP file here and extract the VA7.4_USCounties_SampleReport.spk SAS package file.
Type: | Sample |
Date Modified: | 2020-03-06 11:45:28 |
Date Created: | 2017-10-06 21:15:32 |
Product Family | Product | Host | Product Release | SAS Release | ||
Starting | Ending | Starting | Ending | |||
SAS System | SAS Visual Analytics | Microsoft® Windows® for x64 | 7.4 | 9.4 TS1M4 | ||
Linux for x64 | 7.4 | 9.4 TS1M4 |