webinar@lunchtime: creating a regional map with custom ... · 25/06/2020 · webinar@lunchtime:...
TRANSCRIPT
![Page 1: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/1.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Webinar@LunchtimeCreating a regional Map with custom polygons in Visual Analytics on Viya
![Page 2: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/2.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
HostKarin Gross
SAS Institute GmbHManager Education
Webinar@Lunchtime
Notes:• Participants are automatically "muted”• You can raise your hand or ask a question• The event will be recorded and available with the documents on
www.sas.de/lunchtime
TeacherPaul van Mol
SAS Institute GmbHPrincipal Technical Training Consultant
![Page 3: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/3.jpg)
Company Conf ident ia l – For Internal Use OnlyCopyright © SAS Inst itute Inc. A l l r ights reserved.
Creating a regional Map with custom polygons in Visual Analytics on Viya: Applied to BelgiumPaul Van Mol
![Page 4: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/4.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
ClusteringGeographic clustering based on proximity
![Page 5: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/5.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
ClusteringOptions
![Page 6: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/6.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Geo-EnrichmentContext Menu after geographic selection
![Page 7: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/7.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Geo-EnrichmentBasic Panel
![Page 8: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/8.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Geo-EnrichmentAdvanced Panel
![Page 9: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/9.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Geo-EnrichmentResults
![Page 10: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/10.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Geo-EnrichmentEnriching data
![Page 11: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/11.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Geo-EnrichmentEnriching Data
![Page 12: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/12.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Esri PortalEntering credentials
![Page 13: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/13.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Esri PortalAdministrator settings
![Page 14: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/14.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Custom PolygonsGeographic Variable Dialog
![Page 15: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/15.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Who is allowed to create Custom PolygonsAdministrative Settings
![Page 16: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/16.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Custom PolygonsCreating a new polygon provider using CAS
![Page 17: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/17.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Custom PolygonsCreating a new polygon provider using CAS
![Page 18: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/18.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Custom PolygonsCreating a new polygon provider using CAS
![Page 19: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/19.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Custom PolygonsCreate a new polygon provider using Esri
![Page 20: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/20.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Custom PolygonsData limitations in Report Data Service
![Page 21: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/21.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Geographic Data Items in SAS Visual Analytics 8.5
• Geographic Data Items like countries and regions are automatically recognized and displayed in SAS Visual Analytics.
• Local regions like Districts, Municipalities are not supported by SAS Visual Analytics.
• Learn how to import a shape file and create a custom polygon provider so other VA users can draw custom regions with-in the Geomap object.
• You learn how to inspect the shape file and how to create test data to test the imported shape file. We uses an example from Belgium, but the method can easily be modified to support other geographic regions.
• https://support.sas.com/rnd/datavisualization/vageo/85/subdivs.html
![Page 22: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/22.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Import Custom Shapefiles in SAS Visual Analytics 8.5
• Add a custom polygon provider to your Viya installation• Reduce the granularity of the shapes to improve performance (or even
make it show up inVA for large shapefiles)• Use the custom polygon provider to visualize data on a map• Identify the projection of a shapefile
![Page 23: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/23.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
The goal of this webinar
![Page 24: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/24.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Or applied to Luxembourg
![Page 25: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/25.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Overview
Shapefile sas dataset Load to cas Define polygon provider
Create Polygon provider
Use Polygon provider
![Page 26: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/26.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Examining the shape file content
![Page 27: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/27.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Shape fileOverview of content
Mandatory files•.shp — shape format; the feature geometry itself•.shx — shape index format; a positional index of the feature geometry to allow seeking forwards and backwards quickly•.dbf — attribute format; columnar attributes for each shape, in dBase IV format
Other files•.prj — projection description, using a well-known text representation of coordinate reference systems•.sbn and .sbx — a spatial index of the features•.fbn and .fbx — a spatial index of the features that are read-only•.ain and .aih — an attribute index of the active fields in a table•.ixs — a geocoding index for read-write datasets•.mxs — a geocoding index for read-write datasets (ODB format)•.atx — an attribute index for the .dbf file in the form of shapefile.columnname.atx (ArcGIS 8 and later)•.shp.xml — geospatial metadata in XML format, such as ISO 19115 or other XML schema•.cpg — used to specify the code page (only for .dbf) for identifying the character encoding to be used•.qix — an alternative quadtree spatial index used by MapServer and GDAL/OGR software
Source: https://en.wikipedia.org/wiki/Shapefile
![Page 28: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/28.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Mapshaper.orgNice tool to verify the content of a shapefile
![Page 29: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/29.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Qgis.org
• Tool used to change Projection and Encoding
• Can be used to combine polygons in custom regions
![Page 30: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/30.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Step 5: Reduce the density of shape data
To speed up the rendering of shapes on maps, the density of the shapedatacan be reduced. In some instances (like the one we have), reducing the density is necessary to be able to show all shapes.
In this exercise we will use mapshaper.org to reduce the shapedata.
![Page 31: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/31.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
SAS macros to help import shape files
SAS provides two macros to help import shape files
• The %SHPCNTNT macro displays the contents of the specified shapefile. You can use the %SHPCNTNT macro to identify which variable in the shapefile should be used as an ID variable.
• The %SHPIMPRT macro converts the shapefile into a SAS data set and then loads it into CAS.
Link to documentation:https://go.documentation.sas.com/?cdcId=calcdc&cdcVersion=3.5&docsetId=caldatamgmtcas&docsetTarget=p1dwawsidsczlpn121j0glleicxp.htm&locale=en
![Page 32: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/32.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Step 2: Import shapefile to Viya
In this step we use %SHPIMPRT to import the shapefile into a CAS dataset
![Page 33: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/33.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Step 3: Import Accident Data
To test the imported shapefile a set of testdata with belgian Traffic Accidents is imported.https://data.gov.be/en/search/site/accidents?f%5B0%5D=ss_language%3Anl
![Page 34: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/34.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Step 4: Create custom polygon provider
Defining a custom polygon provider based on the imported shapefile.
![Page 35: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/35.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
ReferencesDocumentation
Working with Geography Data Itemshttps://go.documentation.sas.com/?docsetId=vareportdata&docsetTarget=p031vp9uc5y5iun0zipy3c1trkqn.htm&docsetVersion=8.5&locale=nl#p1a7fw0vj2w6aln18sl77suu45o3
Loading Geographic Polygon Data as a CAS Tablehttps://go.documentation.sas.com/?docsetId=caldatamgmtcas&docsetTarget=p1dwawsidsczlpn121j0glleicxp.htm&docsetVersion=3.5&locale=nl
![Page 36: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/36.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
References
Essentials of Map Coordinate Systems and Projections in Visual Analyticshttps://blogs.sas.com/content/sgf/2019/05/21/essentials-of-map-coordinate-systems-and-projections-in-visual-analytics/Creating custom region maps with SAS Visual Analyticshttps://blogs.sas.com/content/sgf/2019/03/27/creating-custom-region-maps-with-visual-analytics/Fundamentals of SAS Visual Analytics geo mapshttps://blogs.sas.com/content/sgf/2019/02/08/fundamentals-of-sas-visual-analytics-geo-maps/Finding the Treasure: Using Geospatial Data for Better Results with SAS® Visual Analytics https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2018/1955-2018.pdfhttps://communities.sas.com/t5/SAS-Communities-Library/How-to-create-your-first-web-map-into-a-SAS-Visual-Analytics/ta-p/522031
![Page 37: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/37.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Questions?
![Page 38: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/38.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Available Live Web courses
• Programming for SAS® Viya®• 13. July Live Web in English• 18. September Live Web in English
• SAS® Visual Analytics for SAS® Viya® - Fast Track• 19. – 21. August Live Web in German• 30. Sept. – 2. Oct. Live Web in German
• The Magic of Compelling Reports and Visualizations with SAS(R)• 19. November Live Web in English Language with lots of interesting sessions
about Reporting (Praxistage)
![Page 39: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/39.jpg)
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Next Webinar@Lunchtime:
Planned for early Septemberin German Language:
Statistik kann jeder(r)?!
www.sas.de/lunchtime
![Page 40: Webinar@Lunchtime: Creating a regional Map with custom ... · 25/06/2020 · Webinar@Lunchtime: Creating a regional Map with custom polygons in Visual Analytics on Viya Subject:](https://reader033.vdocument.in/reader033/viewer/2022042802/5f37ef9f144ba33ed90cc246/html5/thumbnails/40.jpg)
sas.com
Copyright © SAS Inst itute Inc. A l l r ights reserved.
Further material to download: www.sas.de/lunchtime