Hi All,
I have a question on esri map shape file with polygon map in va.
i have a shape file and imported into va cas and then I tried to create a new polygon by selecting the new Geography item -> under geography data: -> Geographic data provider (but I found from other sas technical papers instead of this option New polygon provider ) and then creating the polygon.
after creating the geoiteam and tried to create Geocoordinate map but only x and y points are plotted which are from shape file not polygon .
can you please share any views on the how to create custom map with polygon layers in sas viya visual analytics .
thanks
Hi,
Polygon data can be imported into CAS using related %SHPIMPRT macro. There are more information about the steps required at https://go.documentation.sas.com/doc/en/calcdc/3.5/caldatamgmtcas/p1dwawsidsczlpn121j0glleicxp.htm
Once imported - you will need to logon as administrator in order to register new geographic data providers. Standard users won't see related 'new provider' option in the geographic item editor. More details including information about required permissions are covered in https://go.documentation.sas.com/doc/en/vacdc/8.5/vareportdata/p031vp9uc5y5iun0zipy3c1trkqn.htm#p1a7...
If you have a geographical item based on custom geographic data provider - you will need to use a Geo Region visual. Only this visualization is able to render geographical boundaries/regions.
Hope this helps! Falko
Hi,
Polygon data can be imported into CAS using related %SHPIMPRT macro. There are more information about the steps required at https://go.documentation.sas.com/doc/en/calcdc/3.5/caldatamgmtcas/p1dwawsidsczlpn121j0glleicxp.htm
Once imported - you will need to logon as administrator in order to register new geographic data providers. Standard users won't see related 'new provider' option in the geographic item editor. More details including information about required permissions are covered in https://go.documentation.sas.com/doc/en/vacdc/8.5/vareportdata/p031vp9uc5y5iun0zipy3c1trkqn.htm#p1a7...
If you have a geographical item based on custom geographic data provider - you will need to use a Geo Region visual. Only this visualization is able to render geographical boundaries/regions.
Hope this helps! Falko
I notice in your description you indicate that you're using the Geo Coordinate object. To render regions on a map in SAS Visual Analytics, you need to use either the Geo Region or the multi-layer Geo Region-Coordinate map object. If you use the Geo Coordinate object in Visual Analytics to show regions, the visualization will plot the centroid for each region - which sounds like what you are experiencing.
Also, note that as of the SAS Viya July 2021 release, 2021.1.3, you can also import geo shapefiles using the SAS Viya CLI.
As mentioned - Geo Coordinate only plots individual data points (markers). For regional areas use the Geo Region object instead.
Note, that Geo Region requires a geographical data item which supports regional polygons. It can be an item using the provided built-in lookup tables (e.g. Country, States, etc.) or an item based on a custom geographical provider given the imported shape files as explained earlier. Also note, that Esri shape files come in different types e.g. Polygon, Polyline or Point. Only the type Polygon supports regional areas.
You may also use tools such as ArcGIS ArcMap or open-source tools such as QGIS to validate shape files. It typically helps to identify things like geographical IDs and potential custom coordinates spaces.
Hope this helps.
Falko
SAS Visual Analytics only ships with a few pre-built geo visualizations. There are multi-overlay visuals such as Geo region+coordinate allowing you to overlay regional map with a coordinate (scatter) visual. If you need something different, e.g. region+region (to overlay more than one regional map), you can use SAS Graph Builder to build such template. A good general guide on how to build such template is here https://communities.sas.com/t5/SAS-Communities-Library/SAS-Graph-Builder-Custom-Line-Chart-with-Refe... and the official doc here https://go.documentation.sas.com/doc/en/vacdc/8.5/grbldrug/titlepage.htm.
Hope this helps. Falko
Hi @FalkoSchulz, are geo maps only available in the Graph Builder in Viya? I've not used it before but went to check it out and there were no geo map elements available, VA 7.5 on SAS 9.4M7.
Thanks,
Nigel
Hi @Nigel_Pain - yes, support for geo map based templates got added to Visual Analytics 8.x. Unfortunately not available in VA 7.x.
Cheers, Falko
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.