SlideShare uma empresa Scribd logo
1 de 15
SQL Server 2008 Spatial Data Dan Crawford Integrated Network Strategies dcrawford@insindy.com http://www.insindy.com
What is spatial data? Geometric Represents data in a 2D plain, similar to graph paper in high school.  Units are user-defined and could be inches, miles, pixels, etc.
What is spatial data? Geographic Represents data points using angles of Latitude and Longitude.  Latitude measures North/South, and Longitude measures degrees East/West of Prime Meridian
System Requirements SQL Server 2008 Express or higher Dev Tools Visual Studio 2005, 2008, or 2010 SQL Management Studio 2008 Not currently supported on SQL Azure, but will be soon
Uses of spatial data Used by central cancer registries for statistical analysis with other geography specific data sources, such as census data Integrated route mapping with MapPoint, Google Maps, etc Geographical business intelligence analytics
Geometry data type Geometry data type stores points, lines, polygons, and collections of geometric objects Represent using WKT (well-known text), WKB (well-known binary), or GML (geography markup language) WKT seems to be most common
WKT Markup POINT(x y) LINESTRING(x1 y1,x2 y2) POLYGON((x1 y1,x2 y2,x3 y3,x4 y4,x1 y1)) GEOMETRYCOLLECTION(Geo1, Geo2, …)
Spatial Expressions
More Spatial Expressions
Geocoding Geography data type does not directly understanding mailing address data Mailing addresses must be converted to latitude/longitude coordinates Geocoding = conversion of geographic data like address or zip code to geographic coordinates Options – MapPoint/Bing Map Services, Google Maps API, many others
Geocoding Example
Rendering Options SQL Management Studio 2008 – very basic for query testing VirtualEarth Google Maps or similar Dundas mapping component
Spatial Indexing Images from Microsoft Technet
Spatial Indexing CREATE SPATIAL INDEX SPATIAL_Hospitals ON dbo.Hospitals(LocationGeography)  USING GEOGRAPHY_GRID 	 WITH( GRIDS  = ( LEVEL_1  = MEDIUM,  		              LEVEL_2  = MEDIUM,  		              LEVEL_3  = MEDIUM,  		              LEVEL_4  = MEDIUM),  CELLS_PER_OBJECT  = 16, STATISTICS_NORECOMPUTE = OFF,  ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
SQL Server 2008 R2 Adds native mapping support to SSRS

Mais conteúdo relacionado

Mais procurados

ppt spatial data
ppt spatial datappt spatial data
ppt spatial dataRahul Kumar
 
Introduction to gis
Introduction to gisIntroduction to gis
Introduction to gisJay_mittal
 
Conceptual models of real world geographical phenomena (epm107_2007)
Conceptual models of real world geographical phenomena (epm107_2007)Conceptual models of real world geographical phenomena (epm107_2007)
Conceptual models of real world geographical phenomena (epm107_2007)esambale
 
Lect 7 & 8 types of vector data model-gis
Lect 7 & 8 types of vector data model-gisLect 7 & 8 types of vector data model-gis
Lect 7 & 8 types of vector data model-gisRehana Jamal
 
Spatial vs non spatial
Spatial vs non spatialSpatial vs non spatial
Spatial vs non spatialSumant Diwakar
 
Geographic information system
Geographic information systemGeographic information system
Geographic information systemOssamaElShanawany
 
Spatial Analysis Using GIS
Spatial Analysis Using GISSpatial Analysis Using GIS
Spatial Analysis Using GISPrachi Mehta
 
datamodel_vector
datamodel_vectordatamodel_vector
datamodel_vectorRiya Gupta
 
Gis Tutorial Purnawan
Gis Tutorial PurnawanGis Tutorial Purnawan
Gis Tutorial PurnawanKodok Ngorex
 
Spatial data analysis 1
Spatial data analysis 1Spatial data analysis 1
Spatial data analysis 1Johan Blomme
 

Mais procurados (19)

ppt spatial data
ppt spatial datappt spatial data
ppt spatial data
 
Introduction to gis
Introduction to gisIntroduction to gis
Introduction to gis
 
Conceptual models of real world geographical phenomena (epm107_2007)
Conceptual models of real world geographical phenomena (epm107_2007)Conceptual models of real world geographical phenomena (epm107_2007)
Conceptual models of real world geographical phenomena (epm107_2007)
 
Lect 7 & 8 types of vector data model-gis
Lect 7 & 8 types of vector data model-gisLect 7 & 8 types of vector data model-gis
Lect 7 & 8 types of vector data model-gis
 
Spatial is Not Special ?
Spatial is Not Special ?Spatial is Not Special ?
Spatial is Not Special ?
 
GIS & Raster
GIS & RasterGIS & Raster
GIS & Raster
 
Gis Concepts 3/5
Gis Concepts 3/5Gis Concepts 3/5
Gis Concepts 3/5
 
Spatial vs non spatial
Spatial vs non spatialSpatial vs non spatial
Spatial vs non spatial
 
Spatial Data Model
Spatial Data ModelSpatial Data Model
Spatial Data Model
 
3D Analyst
3D Analyst3D Analyst
3D Analyst
 
Geographic information system
Geographic information systemGeographic information system
Geographic information system
 
Raster
RasterRaster
Raster
 
Spatial Analysis Using GIS
Spatial Analysis Using GISSpatial Analysis Using GIS
Spatial Analysis Using GIS
 
datamodel_vector
datamodel_vectordatamodel_vector
datamodel_vector
 
functions of GIS
functions of GISfunctions of GIS
functions of GIS
 
Spatial Data Model 2
Spatial Data Model 2Spatial Data Model 2
Spatial Data Model 2
 
Gis Tutorial Purnawan
Gis Tutorial PurnawanGis Tutorial Purnawan
Gis Tutorial Purnawan
 
GIS data structure
GIS data structureGIS data structure
GIS data structure
 
Spatial data analysis 1
Spatial data analysis 1Spatial data analysis 1
Spatial data analysis 1
 

Destaque

SQL Server 2008 for Developers
SQL Server 2008 for DevelopersSQL Server 2008 for Developers
SQL Server 2008 for Developersllangit
 
High Performance Front-End Development
High Performance Front-End DevelopmentHigh Performance Front-End Development
High Performance Front-End Developmentdrywallbmb
 
X query language reference
X query language referenceX query language reference
X query language referenceSteve Xu
 
Alasql.js - SQL сервер на JavaScript
Alasql.js - SQL сервер на JavaScriptAlasql.js - SQL сервер на JavaScript
Alasql.js - SQL сервер на JavaScriptAndrey Gershun
 
SQL Server 2008 for .NET Developers
SQL Server 2008 for .NET DevelopersSQL Server 2008 for .NET Developers
SQL Server 2008 for .NET Developersllangit
 
Alasql - база данных SQL на JavaScript (MoscowJS)
Alasql - база данных SQL на JavaScript (MoscowJS)Alasql - база данных SQL на JavaScript (MoscowJS)
Alasql - база данных SQL на JavaScript (MoscowJS)Andrey Gershun
 
Transact sql data definition language - ddl- reference
Transact sql data definition language - ddl- referenceTransact sql data definition language - ddl- reference
Transact sql data definition language - ddl- referenceSteve Xu
 
Multidimensional model programming
Multidimensional model programmingMultidimensional model programming
Multidimensional model programmingSteve Xu
 
5 tsssisu sql_server_2012
5 tsssisu sql_server_20125 tsssisu sql_server_2012
5 tsssisu sql_server_2012Steve Xu
 
Multi-thematic spatial databases
Multi-thematic spatial databasesMulti-thematic spatial databases
Multi-thematic spatial databasesConor Mc Elhinney
 
Sql server ___________session3-normailzation
Sql server  ___________session3-normailzationSql server  ___________session3-normailzation
Sql server ___________session3-normailzationEhtisham Ali
 

Destaque (20)

SQL Server 2008 for Developers
SQL Server 2008 for DevelopersSQL Server 2008 for Developers
SQL Server 2008 for Developers
 
Sql Server Data Tools - Codenamed JUNEAU
Sql Server Data Tools - Codenamed JUNEAUSql Server Data Tools - Codenamed JUNEAU
Sql Server Data Tools - Codenamed JUNEAU
 
High Performance Front-End Development
High Performance Front-End DevelopmentHigh Performance Front-End Development
High Performance Front-End Development
 
X query language reference
X query language referenceX query language reference
X query language reference
 
Module07
Module07Module07
Module07
 
Alasql.js - SQL сервер на JavaScript
Alasql.js - SQL сервер на JavaScriptAlasql.js - SQL сервер на JavaScript
Alasql.js - SQL сервер на JavaScript
 
Module01
Module01Module01
Module01
 
Module02
Module02Module02
Module02
 
SQL Server 2008 for .NET Developers
SQL Server 2008 for .NET DevelopersSQL Server 2008 for .NET Developers
SQL Server 2008 for .NET Developers
 
Alasql - база данных SQL на JavaScript (MoscowJS)
Alasql - база данных SQL на JavaScript (MoscowJS)Alasql - база данных SQL на JavaScript (MoscowJS)
Alasql - база данных SQL на JavaScript (MoscowJS)
 
Transact sql data definition language - ddl- reference
Transact sql data definition language - ddl- referenceTransact sql data definition language - ddl- reference
Transact sql data definition language - ddl- reference
 
Multidimensional model programming
Multidimensional model programmingMultidimensional model programming
Multidimensional model programming
 
Module03
Module03Module03
Module03
 
Module04
Module04Module04
Module04
 
5 tsssisu sql_server_2012
5 tsssisu sql_server_20125 tsssisu sql_server_2012
5 tsssisu sql_server_2012
 
Module05
Module05Module05
Module05
 
Multi-thematic spatial databases
Multi-thematic spatial databasesMulti-thematic spatial databases
Multi-thematic spatial databases
 
Module08
Module08Module08
Module08
 
Module06
Module06Module06
Module06
 
Sql server ___________session3-normailzation
Sql server  ___________session3-normailzationSql server  ___________session3-normailzation
Sql server ___________session3-normailzation
 

Semelhante a SQL Server 2008 Spatial Data - Getting Started

Sql server 2008 r2 spatial data whitepaper
Sql server 2008 r2 spatial data whitepaperSql server 2008 r2 spatial data whitepaper
Sql server 2008 r2 spatial data whitepaperKlaudiia Jacome
 
Kajal Dogra_resume
Kajal Dogra_resumeKajal Dogra_resume
Kajal Dogra_resumeKAJAL DOGRA
 
3D Geospatial Visualization Using Power Map
3D Geospatial Visualization Using Power Map3D Geospatial Visualization Using Power Map
3D Geospatial Visualization Using Power Mapkristinferrier
 
SPATIAL DATABASES.pptx
SPATIAL DATABASES.pptxSPATIAL DATABASES.pptx
SPATIAL DATABASES.pptxAmanSingla57
 
Introduction to GIS
Introduction to GISIntroduction to GIS
Introduction to GISJoey Li
 
Chap1 introduction to geographic information system (gis)
Chap1 introduction to geographic information system (gis)Chap1 introduction to geographic information system (gis)
Chap1 introduction to geographic information system (gis)Mweemba Hachita
 
Relaxing global-as-view in mediated data integration from linked data
Relaxing global-as-view in mediated data integration from linked dataRelaxing global-as-view in mediated data integration from linked data
Relaxing global-as-view in mediated data integration from linked dataAlessandro Adamou
 
Mapping For Sharepoint T11 Peter Smith
Mapping For Sharepoint T11 Peter SmithMapping For Sharepoint T11 Peter Smith
Mapping For Sharepoint T11 Peter SmithSpatialSmith
 
Unit 4 Data Input and Analysis.pptx
Unit 4 Data Input and Analysis.pptxUnit 4 Data Input and Analysis.pptx
Unit 4 Data Input and Analysis.pptxe20ag004
 
Top FME Recipes: CAD to GIS
Top FME Recipes: CAD to GISTop FME Recipes: CAD to GIS
Top FME Recipes: CAD to GISSafe Software
 
Using OGC Standards To Link BI and Spatial
Using OGC Standards To Link BI and SpatialUsing OGC Standards To Link BI and Spatial
Using OGC Standards To Link BI and SpatialMISNet - Integeo SE Asia
 
GIS and CAD Integration: The Bentley Perspective
GIS and CAD Integration: The Bentley PerspectiveGIS and CAD Integration: The Bentley Perspective
GIS and CAD Integration: The Bentley PerspectiveAndrew Bashfield
 
Dsm Presentation
Dsm PresentationDsm Presentation
Dsm Presentationrichoe
 
Leveraging Google Maps with Business Intellilgence
Leveraging Google Maps with Business IntellilgenceLeveraging Google Maps with Business Intellilgence
Leveraging Google Maps with Business IntellilgenceMISNet - Integeo SE Asia
 

Semelhante a SQL Server 2008 Spatial Data - Getting Started (20)

Sql server 2008 r2 spatial data whitepaper
Sql server 2008 r2 spatial data whitepaperSql server 2008 r2 spatial data whitepaper
Sql server 2008 r2 spatial data whitepaper
 
Gis Xke
Gis XkeGis Xke
Gis Xke
 
Kajal Dogra_resume
Kajal Dogra_resumeKajal Dogra_resume
Kajal Dogra_resume
 
3D Geospatial Visualization Using Power Map
3D Geospatial Visualization Using Power Map3D Geospatial Visualization Using Power Map
3D Geospatial Visualization Using Power Map
 
SPATIAL DATABASES.pptx
SPATIAL DATABASES.pptxSPATIAL DATABASES.pptx
SPATIAL DATABASES.pptx
 
Introduction to GIS
Introduction to GISIntroduction to GIS
Introduction to GIS
 
Chap1 introduction to geographic information system (gis)
Chap1 introduction to geographic information system (gis)Chap1 introduction to geographic information system (gis)
Chap1 introduction to geographic information system (gis)
 
Mapping toolbox
Mapping toolboxMapping toolbox
Mapping toolbox
 
Relaxing global-as-view in mediated data integration from linked data
Relaxing global-as-view in mediated data integration from linked dataRelaxing global-as-view in mediated data integration from linked data
Relaxing global-as-view in mediated data integration from linked data
 
Mapping For Sharepoint T11 Peter Smith
Mapping For Sharepoint T11 Peter SmithMapping For Sharepoint T11 Peter Smith
Mapping For Sharepoint T11 Peter Smith
 
R2 roadshows
R2 roadshowsR2 roadshows
R2 roadshows
 
Geographic information system
Geographic information systemGeographic information system
Geographic information system
 
Info Grafix
Info GrafixInfo Grafix
Info Grafix
 
Unit 4 Data Input and Analysis.pptx
Unit 4 Data Input and Analysis.pptxUnit 4 Data Input and Analysis.pptx
Unit 4 Data Input and Analysis.pptx
 
Top FME Recipes: CAD to GIS
Top FME Recipes: CAD to GISTop FME Recipes: CAD to GIS
Top FME Recipes: CAD to GIS
 
Using OGC Standards To Link BI and Spatial
Using OGC Standards To Link BI and SpatialUsing OGC Standards To Link BI and Spatial
Using OGC Standards To Link BI and Spatial
 
GIS and CAD Integration: The Bentley Perspective
GIS and CAD Integration: The Bentley PerspectiveGIS and CAD Integration: The Bentley Perspective
GIS and CAD Integration: The Bentley Perspective
 
Dsm Presentation
Dsm PresentationDsm Presentation
Dsm Presentation
 
Leveraging Google Maps with Business Intellilgence
Leveraging Google Maps with Business IntellilgenceLeveraging Google Maps with Business Intellilgence
Leveraging Google Maps with Business Intellilgence
 
No(Geo)SQL
No(Geo)SQLNo(Geo)SQL
No(Geo)SQL
 

SQL Server 2008 Spatial Data - Getting Started

  • 1. SQL Server 2008 Spatial Data Dan Crawford Integrated Network Strategies dcrawford@insindy.com http://www.insindy.com
  • 2. What is spatial data? Geometric Represents data in a 2D plain, similar to graph paper in high school. Units are user-defined and could be inches, miles, pixels, etc.
  • 3. What is spatial data? Geographic Represents data points using angles of Latitude and Longitude. Latitude measures North/South, and Longitude measures degrees East/West of Prime Meridian
  • 4. System Requirements SQL Server 2008 Express or higher Dev Tools Visual Studio 2005, 2008, or 2010 SQL Management Studio 2008 Not currently supported on SQL Azure, but will be soon
  • 5. Uses of spatial data Used by central cancer registries for statistical analysis with other geography specific data sources, such as census data Integrated route mapping with MapPoint, Google Maps, etc Geographical business intelligence analytics
  • 6. Geometry data type Geometry data type stores points, lines, polygons, and collections of geometric objects Represent using WKT (well-known text), WKB (well-known binary), or GML (geography markup language) WKT seems to be most common
  • 7. WKT Markup POINT(x y) LINESTRING(x1 y1,x2 y2) POLYGON((x1 y1,x2 y2,x3 y3,x4 y4,x1 y1)) GEOMETRYCOLLECTION(Geo1, Geo2, …)
  • 10. Geocoding Geography data type does not directly understanding mailing address data Mailing addresses must be converted to latitude/longitude coordinates Geocoding = conversion of geographic data like address or zip code to geographic coordinates Options – MapPoint/Bing Map Services, Google Maps API, many others
  • 12. Rendering Options SQL Management Studio 2008 – very basic for query testing VirtualEarth Google Maps or similar Dundas mapping component
  • 13. Spatial Indexing Images from Microsoft Technet
  • 14. Spatial Indexing CREATE SPATIAL INDEX SPATIAL_Hospitals ON dbo.Hospitals(LocationGeography) USING GEOGRAPHY_GRID WITH( GRIDS = ( LEVEL_1 = MEDIUM, LEVEL_2 = MEDIUM, LEVEL_3 = MEDIUM, LEVEL_4 = MEDIUM), CELLS_PER_OBJECT = 16, STATISTICS_NORECOMPUTE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  • 15. SQL Server 2008 R2 Adds native mapping support to SSRS