Spatial Data with SQL Server Reporting Services

Post on 22-Dec-2014

3877 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

Transcript

Spatial Data with SQL Server Reporting ServicesUsing SQL Server Reporting Services you can visualize spatial information in a report or dashboard alongside other business data in the form of tables, charts, or graphs that present other facets of related information.

Mihail MateevSenior Technical Evangelist, TL @ Infragistics

About me

Mihail Mateev is a Senior Technical Evangelist, Team Lead at Infragistics Inc.

Mihail worked in various areas related to technology Microsoft: Silverlight, WPF, Windows Phone 7, Visual Studio LightSwitch, WCF RIA Services, ASP.Net MVC, Windows Metro Applications, MS SQL Server and Windows Azure

2 |

Agenda

Creating a Simple Report Map SQL Server Spatial Data SRSS Map Control Data Sources

Map Gallery (Installed Maps) ESRI Shapefile SQL Server Spatial Query

Customizing the Map Viewport Adding an Analytic Dataset Adding a Bing Maps Tile Layer Windows Azure Reporting Services and Spatial Data

3 |

Spatial Data

Analyzing sales trends

Analyzing the best placement depending of

different criteria

Navigating to s destination using a GPS device.

4 |

Spatial Data

Allowing customers to track the deliveries

Finding the optimum route for transportation

tasks

Reporting geospatial information on the map

rather than in a tabular or chart format

5 |

Representing Geospatial Features

Points Polylines Polygons.

6 |

PointsPoints PolylinesPolylines PolygonsPolygons

Comparing Raster to Vector Data

Vector Data:describes discrete

spatial objects by defining the coordinates of geometries

Raster Data: represents spatial

information using a matrix of cells.

7 |

X,Y

Rows

ColumnsX,Y

X,Y X,Y X,Y

Geographic and Projected CS

Geographic Coordinate System

Projected Coordinate System

8 |

- X+ Y

- X- Y

+ X- Y

X

+ X+ Y

Data

usually here

Y

Spatial Data and SQL Server

Geospatial Data Types SQL Server supports two different spatial data types:

GEOMETRY and GEOGRAPHY

9 |

Spatial Data and SQL Server

Using Spatial Objects Create Spatial Objects

10 |

SQL Server Reporting Services

SQL Server Reporting Services (SSRS) is a server-based report generation software system from Microsoft.

Administered via a web interface, it can be used to prepare and deliver a variety of interactive and printed reports.

11 |

SRSS and Spatial Data

Map Report Item and Sources for Spatial Data

Spatial data can be provided to the Map Report Item (Map Report Control) in three ways:

1. Map Gallery Reports

2. ESRI Shapefiles

3. SQL Server spatial data stored in a database

12 |

Map Layers

Multi layer support Each layer can contain

spatial data used to draw the map, analytical data, and other properties such as color and size.

13 |

1. Polygon – used to show geographic areas such as countries or states.

2. Line – used to show paths and routes.

3. Point – used to show specific geographic places.

4. Tile – used to display Bing maps in reports.

Creating the Report Project

SQL Server Data Tools

Report Server Project Map Report Control Spatial Data Source

14 |

Spatial Data Source

Tile Source Shapefiles SQL Server Spatial

Data

15 |

Customizing the Map Viewport

Map Projections Center and Zoom Fill, Border, and

Shadow

16 |

Analytical Data

Add an analityc dataset

Match an analityc dataset to a spatial dataset

17 |

Thematic Maps

18 |

Distribution Options Optimal Equal Interval Equal Distribution Custom

Zoom and Transparency

19 |

Deployment

Select TargetServer URL

20 |

Assigning Actions to Map Elements

it is possible to add a degree of user interaction to SSRS maps by assigning actions to elements on the map.

An action is triggered when the user clicks on a particular report element, which can redirect them to a new report or URL

Redirect to report with parameter:

SELECT CODE, CNTRY_NAME, POP_CNTRY, FIPS, geom.STArea() AS area FROM world WHERE (CNTRY_NAME = @country)

21 |

Assigning Actions to Map Elements

22 |

Select Polygon Properties Select the Action tab Select the Go to report

action and Specify other report

Add a parameter

DEMO

Create a report with spatial data from Bing Maps, shapefiles and SQL Server spatial data

Windows Azure SQL Reporting

Windows Azure SQL Reporting works the same as SQL Server Reporting Service – but runs on cloud with some limitation such as it connects only with SQL Azure database.

24 |

1. Preparing a database.

2. Creating a New SQL Azure Reporting Server

3. Developing a Report in BITS

4. Using Spatial Data with Windows Azure SQL Reporting

5. Publishing Reports

Preparing a Database

Windows Azure SQL Database

25 |

1. Create a new SQL Windows Azure Database server

2. Set Firewall Rules

3. Import Spatial Data

Creating a New Azure SQL Reporting Server

Windows Azure SQL Reporting Server

26 |

1. Create a new Azure SQL Reporting Server.

2. Get the Web Service URL

Developing a Report in BITS

Create a Report

27 |

1. Create a new Reporting Server Project.

2. Add a Report

3. Add a new data source

4. Provide the query for fetching the record from database

Developing a Report in BITS

Create a Report

28 |

1. Add a Map control.

2. Choose a dataset with SQL Server spatial data

3. Create a thematic map

Developing a Report in BITS

Create a Report

29 |

1. Select TargetServer URL

2. Publish the Project/Report

3. Verify the Reports in SQL Azure Reporting Service

DEMO

Create a report with spatial data from Bing Maps, Windows Azure SQL Database spatial data using Windows Azure SQL Reporting

QUESTIONS

Q & A

31 |

Sponsors

top related