Download presentation
Presentation is loading. Please wait.
Published byAlberta Corso Modified over 5 years ago
1
Introduction to SQL Spatial Data Location Analytics
In this session we will cover Spatial Data Types available in SQL Server. Then we will review the basics of spatial queries and the different methods to create points, lines, and polygons. Finally we will demo a few examples of location analytics and how to integrate into other data sets. SQL Saturday – UNC Charlotte – Dec 7, 2019
3
https://github.com/sqlstack
Microsoft OpenHack Modern Data Warehousing Microsoft Certified Associate Azure AI Engineer Azure Data Scientist Azure Developer Microsoft Certified Solutions Expert Data Management and Analytics Business Intelligence Data Platform Microsoft Certified Solutions Associate Cloud Platform Microsoft Specialist Design and Implement Cloud Data Platform Solutions Design and Implement Big Data Analytics Solutions Acclaim Badges Microsoft Professional Program Data Science Artificial Intelligence Big Data Linked In Twitter @LucasFeiock Blog YouTube GitHub Work KiZAN
4
Agenda Introduction Documentation, Reference Links, and Books
OGC Methods and Spatial Reference Identifiers Create a Point, Line, Polygon GIS File Formats, QGIS Desktop to view Demo - Wind Turbine, Highways, United States
5
Spatial Data Types Geometry Data Type Geography Data Type
Flat Map Euclidian coordinate system Use when the curvature of the Earth does not influence measurements. (Driving across town) Geography Data Type Geodetic or round-earth coordinate system Use when the measurements are long distances. (Flying across country)
6
Documentation and Reference Links
Microsoft SQL Documentation - Spatial Data Introduction to SQL Server Spatial Data SQL Server Spatial Indexes MSSQLTips - SQL Server 2008 Geography and Geometry Data Types SQLShack - Spatial data types in SQL Server
7
GIS Books - Alastair Aitchison
Expert SQL Server 2008 Development Beginning Spatial with SQL Server 2008 Pro Spatial with SQL Server 11 Blog -
8
Open Geospatial Consortium (OGC)
methods-on-geometry-instances?view=sql-server-2017 International not for profit organization Quality open standard for the global geospatial community Simple Feature Access Part 1: Common Architecture Part 2: SQL Option More information at their web site
9
Spatial Reference Identifiers
SRIDs are used to locate geographical entities The most common is GPS Global Positioning System World Geodetic System: WGS84 SRID 4326 SRIDs are maintained by European Petroleum Survey Group (EPSG) International Association of Oil and Gas Producers (IOGP)
10
GIS File Formats and QGIS Desktop viewer
Shapefile Topologically Integrated Geographic Encoding and Referencing (TIGER) GeoJSON Keyhole Markup Language (KML) Geography Markup Language (GML) Quantum GIS (QGIS) - Free and open source geographic information system
11
Demo -United States Wind Turbine and Highways
12
Demo – Execution Plan without index
13
Demo – Execution Plan with index
14
Tessellation Spatial Clustered Index Seek Table Valued Function
15
Without indexing
16
With indexing
17
Advanced Topics SQL Server Spatial Indexes
Envelope Aggregate geography/envelopeaggregate-geography-data-type?view=sql-server-2017 Union Aggregate geography-data-type?view=sql-server-2017 Convex Hull Aggregate geography/convexhullaggregate-geography-data-type?view=sql-server-2017
18
Advanced Data Set - United States Power Grid
Electric Power Transmission Lines Power Plants Generating Units Electric Substations TIGER/Line Shapefile, 2017, nation, U.S., Current State and Equivalent National Highway - Wind Turbine -
19
Advanced Data Set – API real-time
Flight Data Marine Traffic
20
Reasons to Fill Out Session Evaluations
Helps Speakers Helps Organizers Helps You! Linked In Twitter @LucasFeiock Blog YouTube GitHub KiZAN
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.