SlideShare uma empresa Scribd logo
1 de 30
Baixar para ler offline
BLUE SKY THINKING
SQL Azure Geospatial Mashup
ABOUT ME
▪ Thomas Sykes
▪ Data Platform Consultant for Quorum in Edinburgh
▪ Using SQL Server since version 7.0
▪ MCDBA, MCITP and MCSE in SQL Server
▪ MCS in Azure Implementation and Hyper-V
▪ Certified Technical Trainer
THIS SESSION
▪ SQL Azure with Geospatial Data
▪ Azure Websites with Bing Maps
▪ Integrate another live data source
HOLIDAY CLIMBING
AZURE SQL DATABASE
▪ Windows Azure SQL Database
▪ Microsoft’s PaaS offering for SQL Server
Database Engine
▪ With V12 is much closer to our IaaS or On-
Premise Database Engine
▪ Scalable with various options from Basic
development to Mission Critical Premium
AZURE SQL DATABASE
▪ Connect straight from Management Studio
once you’ve allowed access
▪ Database size based on DTU’s
▪ Actively developing
AZURE SQL DATABASE
NEW AZURE SQL DATABASE
AZURE WEB HOSTING
▪ Azure Websites - Microsoft’s Web Hosting
Offering
▪ Various Tiers from Free, Shared, Basic,
Standard Tier
▪ Scalable -More servers/Bigger servers
▪ Staged Publishing/Deployment slots
▪ http://<site>-<slot name>.azurewebsites.net/
AZURE WEB HOSTING
NEW AZURE WEB HOSTING
SQL SPATIAL
▪ A spatial data type, such as geography (or
geometry) can be indexed with a spatial index
▪ Various functions supported by spatial indexes
▪ We will use the STDistance function
▪ Returns the shortest distance between two
geography points
DATA - GEOSPATIALS
▪ Get started with free digital map data
▪ OS Locator - A searchable gazetteer of road
namesWe need current postcode’s
▪ Code-Point Open - All of the current postcode
DATABASE – POSTCODES
For the postcodes table the obvious candidate for
clustered index is the postcode field
DATABASE – HILLS
For the Hills table a natural unique index
would Latitude and Longitude
DATABASE
Spatial Reference System Identifier (SRID)
WGS84 — SRID 4326
"The World Geodetic System (WGS) is a standard for use in cartography, geodesy, and
navigation. It comprises a standard coordinate system for the Earth, a standard spheroidal
reference surface (the datum or reference ellipsoid) for raw altitude data, and a gravitational
equipotential surface (the geoid) that defines the nominal sea level." - Wikipedia
DATABASE
Loch Ness Centre Exhibition Experience at
IV63 6TU
DATABASE
Using nearest neighbour in SQL
Azure we get the results:
DEMO
BING MAPS - RENDER
DATA – WEATHER
DataPoint is a way of accessing freely available
Met Office data feeds in a format that is
suitable for application developers.
UK 3-hourly site-specific forecast -
A quality controlled forecast out to 5 days for more than 5,000
locations.
The DataPoint service is operating as BETA
SCOTTISH WEATHER ICON
DATA – WEATHER – STATION DATA
We can either get an XML stream or download the weather station
locations as below;
DATA – WEATHER - GET STATION
DECLARE @CurrentLocation geography
SET @CurrentLocation = geography::Point(@lat,
@long, 4326)
SELECT TOP(1) ID,name,
ROUND(GeoLocation.STDistance(@CurrentLocation)/
1000,2) AS [Distance (Km)]
FROM [dbo].[WeatherPlaces]
WITH(INDEX([ix_GeoLocation]))
WHERE GeoLocation.STDistance(@CurrentLocation)
IS NOT NULL
ORDER BY
GeoLocation.STDistance(@CurrentLocation) ASC
DATA – WEATHER
DATA – DISPLAY WEATHER
THE SITE - VIDEO
USEFUL LINKS
▪ Azure
▪ http://azure.microsoft.com/en-us/documentation/articles/sql-database-preview-
whats-new/
▪ http://azure.microsoft.com/en-us/pricing/details/sql-database/
▪ http://azure.microsoft.com/en-us/documentation/articles/sql-database-elastic-
scale-get-started/
▪ OS
▪ http://www.ordnancesurvey.co.uk/business-and-government/products/opendata-
products.html
▪ Met Office - DataPoint
▪ http://www.metoffice.gov.uk/datapoint
CONTACT
▪ Thomas Sykes
▪ Blog: sqltomato.com
▪ twitter: @sqltomato
▪ email:
tom@sqltomato.com
THANK YOU

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Apache Cassandra Lunch #78: Deploy Cassandra using DSE Operator to Kubernetes
Apache Cassandra Lunch #78: Deploy Cassandra using DSE Operator to KubernetesApache Cassandra Lunch #78: Deploy Cassandra using DSE Operator to Kubernetes
Apache Cassandra Lunch #78: Deploy Cassandra using DSE Operator to Kubernetes
 
Database Architecture & Scaling Strategies, in the Cloud & on the Rack
Database Architecture & Scaling Strategies, in the Cloud & on the Rack Database Architecture & Scaling Strategies, in the Cloud & on the Rack
Database Architecture & Scaling Strategies, in the Cloud & on the Rack
 
Vitalii Bondarenko "Machine Learning on Fast Data"
Vitalii Bondarenko "Machine Learning on Fast Data"Vitalii Bondarenko "Machine Learning on Fast Data"
Vitalii Bondarenko "Machine Learning on Fast Data"
 
IEEE International Conference on Data Engineering 2015
IEEE International Conference on Data Engineering 2015IEEE International Conference on Data Engineering 2015
IEEE International Conference on Data Engineering 2015
 
Modern ETL: Azure Data Factory, Data Lake, and SQL Database
Modern ETL: Azure Data Factory, Data Lake, and SQL DatabaseModern ETL: Azure Data Factory, Data Lake, and SQL Database
Modern ETL: Azure Data Factory, Data Lake, and SQL Database
 
SQL Server 2016 - Stretch DB
SQL Server 2016 - Stretch DB SQL Server 2016 - Stretch DB
SQL Server 2016 - Stretch DB
 
Webinar | Getting Started With Amazon Redshift Spectrum
Webinar | Getting Started With Amazon Redshift SpectrumWebinar | Getting Started With Amazon Redshift Spectrum
Webinar | Getting Started With Amazon Redshift Spectrum
 
Hive big-data meetup
Hive big-data meetupHive big-data meetup
Hive big-data meetup
 
Getting Started With Amazon Redshift
Getting Started With Amazon Redshift Getting Started With Amazon Redshift
Getting Started With Amazon Redshift
 
A tour of Amazon Redshift
A tour of Amazon RedshiftA tour of Amazon Redshift
A tour of Amazon Redshift
 
AWS Webcast - Redshift Overview and New Features
AWS Webcast - Redshift Overview and New Features AWS Webcast - Redshift Overview and New Features
AWS Webcast - Redshift Overview and New Features
 
Andriy Zrobok "MS SQL 2019 - new for Big Data Processing"
Andriy Zrobok "MS SQL 2019 - new for Big Data Processing"Andriy Zrobok "MS SQL 2019 - new for Big Data Processing"
Andriy Zrobok "MS SQL 2019 - new for Big Data Processing"
 
Spark streaming , Spark SQL
Spark streaming , Spark SQLSpark streaming , Spark SQL
Spark streaming , Spark SQL
 
Best practices for Data warehousing with Amazon Redshift - AWS PS Summit Canb...
Best practices for Data warehousing with Amazon Redshift - AWS PS Summit Canb...Best practices for Data warehousing with Amazon Redshift - AWS PS Summit Canb...
Best practices for Data warehousing with Amazon Redshift - AWS PS Summit Canb...
 
An intro to Azure Data Lake
An intro to Azure Data LakeAn intro to Azure Data Lake
An intro to Azure Data Lake
 
[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介
[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介
[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介
 
Data Warehousing in the Era of Big Data: Deep Dive into Amazon Redshift
Data Warehousing in the Era of Big Data: Deep Dive into Amazon RedshiftData Warehousing in the Era of Big Data: Deep Dive into Amazon Redshift
Data Warehousing in the Era of Big Data: Deep Dive into Amazon Redshift
 
SQLServer Database Structures
SQLServer Database Structures SQLServer Database Structures
SQLServer Database Structures
 
Introduction to Amazon Redshift
Introduction to Amazon RedshiftIntroduction to Amazon Redshift
Introduction to Amazon Redshift
 
Let’s get to know Snowflake
Let’s get to know SnowflakeLet’s get to know Snowflake
Let’s get to know Snowflake
 

Semelhante a Blue Sky Thinking

Bridging to a hybrid cloud data services architecture
Bridging to a hybrid cloud data services architectureBridging to a hybrid cloud data services architecture
Bridging to a hybrid cloud data services architecture
IBM Analytics
 

Semelhante a Blue Sky Thinking (20)

Perth Azure Usergroup Build 2018 updates
Perth Azure Usergroup Build 2018 updatesPerth Azure Usergroup Build 2018 updates
Perth Azure Usergroup Build 2018 updates
 
Azure Data Factory for Redmond SQL PASS UG Sept 2018
Azure Data Factory for Redmond SQL PASS UG Sept 2018Azure Data Factory for Redmond SQL PASS UG Sept 2018
Azure Data Factory for Redmond SQL PASS UG Sept 2018
 
Azure Data Factory for Azure Data Week
Azure Data Factory for Azure Data WeekAzure Data Factory for Azure Data Week
Azure Data Factory for Azure Data Week
 
Microsoft Azure Tutorial | Microsoft Cloud Computing | Microsoft Azure Traini...
Microsoft Azure Tutorial | Microsoft Cloud Computing | Microsoft Azure Traini...Microsoft Azure Tutorial | Microsoft Cloud Computing | Microsoft Azure Traini...
Microsoft Azure Tutorial | Microsoft Cloud Computing | Microsoft Azure Traini...
 
Azure SQL DB Managed Instances Built to easily modernize application data layer
Azure SQL DB Managed Instances Built to easily modernize application data layerAzure SQL DB Managed Instances Built to easily modernize application data layer
Azure SQL DB Managed Instances Built to easily modernize application data layer
 
USQ Landdemos Azure Data Lake
USQ Landdemos Azure Data LakeUSQ Landdemos Azure Data Lake
USQ Landdemos Azure Data Lake
 
Ready for take-off - How to get your databases into the cloud
Ready for take-off - How to get your databases into the cloudReady for take-off - How to get your databases into the cloud
Ready for take-off - How to get your databases into the cloud
 
Azure SQL Data Warehouse
Azure SQL Data Warehouse Azure SQL Data Warehouse
Azure SQL Data Warehouse
 
Migrating to Amazon RDS with Database Migration Service
Migrating to Amazon RDS with Database Migration ServiceMigrating to Amazon RDS with Database Migration Service
Migrating to Amazon RDS with Database Migration Service
 
Azure vm introduction
Azure  vm introductionAzure  vm introduction
Azure vm introduction
 
AWS Data migration services
AWS Data migration servicesAWS Data migration services
AWS Data migration services
 
NoSQL's biggest lie: SQL never went away - Martin Esmann
NoSQL's biggest lie: SQL never went away - Martin EsmannNoSQL's biggest lie: SQL never went away - Martin Esmann
NoSQL's biggest lie: SQL never went away - Martin Esmann
 
OSS DB on Azure
OSS DB on AzureOSS DB on Azure
OSS DB on Azure
 
Azure Databricks – Customer Experiences and Lessons Denzil Ribeiro Madhu Ganta
Azure Databricks – Customer Experiences and Lessons Denzil Ribeiro Madhu GantaAzure Databricks – Customer Experiences and Lessons Denzil Ribeiro Madhu Ganta
Azure Databricks – Customer Experiences and Lessons Denzil Ribeiro Madhu Ganta
 
New capabilities for modern data integration in the cloud
New capabilities for modern data integration in the cloudNew capabilities for modern data integration in the cloud
New capabilities for modern data integration in the cloud
 
New capabilities for modern data integration in the cloud
New capabilities for modern data integration in the cloudNew capabilities for modern data integration in the cloud
New capabilities for modern data integration in the cloud
 
ADF Mapping Data Flows Training Slides V1
ADF Mapping Data Flows Training Slides V1ADF Mapping Data Flows Training Slides V1
ADF Mapping Data Flows Training Slides V1
 
Bridging to a hybrid cloud data services architecture
Bridging to a hybrid cloud data services architectureBridging to a hybrid cloud data services architecture
Bridging to a hybrid cloud data services architecture
 
Azuresatpn19 - An Introduction To Azure Data Factory
Azuresatpn19 - An Introduction To Azure Data FactoryAzuresatpn19 - An Introduction To Azure Data Factory
Azuresatpn19 - An Introduction To Azure Data Factory
 
Cepta The Future of Data with Power BI
Cepta The Future of Data with Power BICepta The Future of Data with Power BI
Cepta The Future of Data with Power BI
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 

Blue Sky Thinking

  • 1. BLUE SKY THINKING SQL Azure Geospatial Mashup
  • 2. ABOUT ME ▪ Thomas Sykes ▪ Data Platform Consultant for Quorum in Edinburgh ▪ Using SQL Server since version 7.0 ▪ MCDBA, MCITP and MCSE in SQL Server ▪ MCS in Azure Implementation and Hyper-V ▪ Certified Technical Trainer
  • 3. THIS SESSION ▪ SQL Azure with Geospatial Data ▪ Azure Websites with Bing Maps ▪ Integrate another live data source
  • 5. AZURE SQL DATABASE ▪ Windows Azure SQL Database ▪ Microsoft’s PaaS offering for SQL Server Database Engine ▪ With V12 is much closer to our IaaS or On- Premise Database Engine ▪ Scalable with various options from Basic development to Mission Critical Premium
  • 6. AZURE SQL DATABASE ▪ Connect straight from Management Studio once you’ve allowed access ▪ Database size based on DTU’s ▪ Actively developing
  • 8. NEW AZURE SQL DATABASE
  • 9. AZURE WEB HOSTING ▪ Azure Websites - Microsoft’s Web Hosting Offering ▪ Various Tiers from Free, Shared, Basic, Standard Tier ▪ Scalable -More servers/Bigger servers ▪ Staged Publishing/Deployment slots ▪ http://<site>-<slot name>.azurewebsites.net/
  • 11. NEW AZURE WEB HOSTING
  • 12. SQL SPATIAL ▪ A spatial data type, such as geography (or geometry) can be indexed with a spatial index ▪ Various functions supported by spatial indexes ▪ We will use the STDistance function ▪ Returns the shortest distance between two geography points
  • 13. DATA - GEOSPATIALS ▪ Get started with free digital map data ▪ OS Locator - A searchable gazetteer of road namesWe need current postcode’s ▪ Code-Point Open - All of the current postcode
  • 14. DATABASE – POSTCODES For the postcodes table the obvious candidate for clustered index is the postcode field
  • 15. DATABASE – HILLS For the Hills table a natural unique index would Latitude and Longitude
  • 16. DATABASE Spatial Reference System Identifier (SRID) WGS84 — SRID 4326 "The World Geodetic System (WGS) is a standard for use in cartography, geodesy, and navigation. It comprises a standard coordinate system for the Earth, a standard spheroidal reference surface (the datum or reference ellipsoid) for raw altitude data, and a gravitational equipotential surface (the geoid) that defines the nominal sea level." - Wikipedia
  • 17. DATABASE Loch Ness Centre Exhibition Experience at IV63 6TU
  • 18. DATABASE Using nearest neighbour in SQL Azure we get the results:
  • 19. DEMO
  • 20. BING MAPS - RENDER
  • 21. DATA – WEATHER DataPoint is a way of accessing freely available Met Office data feeds in a format that is suitable for application developers. UK 3-hourly site-specific forecast - A quality controlled forecast out to 5 days for more than 5,000 locations. The DataPoint service is operating as BETA
  • 23. DATA – WEATHER – STATION DATA We can either get an XML stream or download the weather station locations as below;
  • 24. DATA – WEATHER - GET STATION DECLARE @CurrentLocation geography SET @CurrentLocation = geography::Point(@lat, @long, 4326) SELECT TOP(1) ID,name, ROUND(GeoLocation.STDistance(@CurrentLocation)/ 1000,2) AS [Distance (Km)] FROM [dbo].[WeatherPlaces] WITH(INDEX([ix_GeoLocation])) WHERE GeoLocation.STDistance(@CurrentLocation) IS NOT NULL ORDER BY GeoLocation.STDistance(@CurrentLocation) ASC
  • 26. DATA – DISPLAY WEATHER
  • 27. THE SITE - VIDEO
  • 28. USEFUL LINKS ▪ Azure ▪ http://azure.microsoft.com/en-us/documentation/articles/sql-database-preview- whats-new/ ▪ http://azure.microsoft.com/en-us/pricing/details/sql-database/ ▪ http://azure.microsoft.com/en-us/documentation/articles/sql-database-elastic- scale-get-started/ ▪ OS ▪ http://www.ordnancesurvey.co.uk/business-and-government/products/opendata- products.html ▪ Met Office - DataPoint ▪ http://www.metoffice.gov.uk/datapoint
  • 29. CONTACT ▪ Thomas Sykes ▪ Blog: sqltomato.com ▪ twitter: @sqltomato ▪ email: tom@sqltomato.com