SlideShare une entreprise Scribd logo
1  sur  24
SQL Server 2008 Spatial Analysis 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 – recommend R2 to use maps in SSRS Dev Tools Visual Studio 2005, 2008, or 2010 SQL Management Studio 2008 Now supported on SQL Azure
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
Rendering Options SQL Management Studio 2008 – very basic for query testing VirtualEarth Google Maps or similar 3rd party mapping component (e.g. Dundas) SSRS/Report Builder in R2
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)
Spatial Indexing - Utilization SELECT * FROM Hospitals WITH (INDEX(SPATIAL_Hospitals)) WHERE LocationGeography.STIntersects(@P.STBuffer(@eps*1609.344)) = 1
Goal of Geographic Analysis “I want SQL Server to tell me when there are clusters of geographic data points and where they are located.” 					- Dan Crawford, 2010
It’s easy to see points on a map with SQL Server
Why use cluster analysis? Analysis of injury severity and hospital resource use in a regional health care system Customer purchasing patterns Choosing a business or advertising location Crime analysis Easy visualization for dashboard
What is a geographic cluster? For our purposes a cluster is a group of a significant number of data points which are geographically close to each other.  There are two variables: ,[object Object]
Distance which defines being “geographically close”,[object Object]
Or better yet…
DBSCAN DBSCAN(D, eps, MinPts)        C = 0        for each unvisited point P in dataset D              mark P as visited              N = getNeighbors (P, eps)              if sizeof(N) < MinPts                   mark P as NOISE              else                    C = next cluster  expandCluster(P, N, C, eps, MinPts) Source: http://en.wikipedia.org/wiki/DBSCAN
DBSCAN (cont’d) expandCluster(P, N, C, eps, MinPts)       add P to cluster C       for each point P' in N            if P' is not visited                 mark P' as visited                 N' = getNeighbors(P', eps)                 if sizeof(N') >= MinPts                     N = N joined with N'            if P' is not yet member of any cluster                 add P' to cluster C  Source: http://en.wikipedia.org/wiki/DBSCAN
To make life easier Report Builder 3.0 SQL Server Spatial Tools – http://sqlspatialtools.codeplex.com

Contenu connexe

Tendances

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 &amp; 8 types of vector data model-gis
Lect 7 &amp; 8 types of vector data model-gisLect 7 &amp; 8 types of vector data model-gis
Lect 7 &amp; 8 types of vector data model-gisRehana Jamal
 
5 spatial data editing
5 spatial data editing5 spatial data editing
5 spatial data editinganita bodke
 
Introduction to gis
Introduction to gisIntroduction to gis
Introduction to gisJay_mittal
 
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
 
datamodel_vector
datamodel_vectordatamodel_vector
datamodel_vectorRiya Gupta
 
Gis Tutorial Purnawan
Gis Tutorial PurnawanGis Tutorial Purnawan
Gis Tutorial PurnawanKodok Ngorex
 
Spatial Analysis Using GIS
Spatial Analysis Using GISSpatial Analysis Using GIS
Spatial Analysis Using GISPrachi Mehta
 
Difference between gis and cad
Difference between gis and cadDifference between gis and cad
Difference between gis and cadSumant Diwakar
 

Tendances (19)

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 &amp; 8 types of vector data model-gis
Lect 7 &amp; 8 types of vector data model-gisLect 7 &amp; 8 types of vector data model-gis
Lect 7 &amp; 8 types of vector data model-gis
 
5 spatial data editing
5 spatial data editing5 spatial data editing
5 spatial data editing
 
Spatial is Not Special ?
Spatial is Not Special ?Spatial is Not Special ?
Spatial is Not Special ?
 
Introduction to gis
Introduction to gisIntroduction to gis
Introduction to gis
 
GIS & Raster
GIS & RasterGIS & Raster
GIS & Raster
 
Gis Concepts 5/5
Gis Concepts 5/5Gis Concepts 5/5
Gis Concepts 5/5
 
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
 
Geographic information system
Geographic information systemGeographic information system
Geographic information system
 
datamodel_vector
datamodel_vectordatamodel_vector
datamodel_vector
 
Raster
RasterRaster
Raster
 
3D Analyst
3D Analyst3D Analyst
3D Analyst
 
Gis Tutorial Purnawan
Gis Tutorial PurnawanGis Tutorial Purnawan
Gis Tutorial Purnawan
 
Spatial Analysis Using GIS
Spatial Analysis Using GISSpatial Analysis Using GIS
Spatial Analysis Using GIS
 
Difference between gis and cad
Difference between gis and cadDifference between gis and cad
Difference between gis and cad
 
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
 

En vedette

Multi-thematic spatial databases
Multi-thematic spatial databasesMulti-thematic spatial databases
Multi-thematic spatial databasesConor Mc Elhinney
 
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
 
High Performance Front-End Development
High Performance Front-End DevelopmentHigh Performance Front-End Development
High Performance Front-End Developmentdrywallbmb
 
5 tsssisu sql_server_2012
5 tsssisu sql_server_20125 tsssisu sql_server_2012
5 tsssisu sql_server_2012Steve Xu
 
Sql server ___________session3-normailzation
Sql server  ___________session3-normailzationSql server  ___________session3-normailzation
Sql server ___________session3-normailzationEhtisham Ali
 
X query language reference
X query language referenceX query language reference
X query language referenceSteve Xu
 
Multidimensional model programming
Multidimensional model programmingMultidimensional model programming
Multidimensional model programmingSteve Xu
 
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
 
AlaSQL библиотека для обработки JavaScript данных (презентация для ForntEnd 2...
AlaSQL библиотека для обработки JavaScript данных (презентация для ForntEnd 2...AlaSQL библиотека для обработки JavaScript данных (презентация для ForntEnd 2...
AlaSQL библиотека для обработки JavaScript данных (презентация для ForntEnd 2...Andrey Gershun
 
Alasql.js - SQL сервер на JavaScript
Alasql.js - SQL сервер на JavaScriptAlasql.js - SQL сервер на JavaScript
Alasql.js - SQL сервер на JavaScriptAndrey Gershun
 
SQL Server 2008 for Developers
SQL Server 2008 for DevelopersSQL Server 2008 for Developers
SQL Server 2008 for Developersllangit
 

En vedette (20)

Multi-thematic spatial databases
Multi-thematic spatial databasesMulti-thematic spatial databases
Multi-thematic spatial databases
 
Module06
Module06Module06
Module06
 
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
 
High Performance Front-End Development
High Performance Front-End DevelopmentHigh Performance Front-End Development
High Performance Front-End Development
 
5 tsssisu sql_server_2012
5 tsssisu sql_server_20125 tsssisu sql_server_2012
5 tsssisu sql_server_2012
 
Sql Server Data Tools - Codenamed JUNEAU
Sql Server Data Tools - Codenamed JUNEAUSql Server Data Tools - Codenamed JUNEAU
Sql Server Data Tools - Codenamed JUNEAU
 
Module05
Module05Module05
Module05
 
Sql server ___________session3-normailzation
Sql server  ___________session3-normailzationSql server  ___________session3-normailzation
Sql server ___________session3-normailzation
 
X query language reference
X query language referenceX query language reference
X query language reference
 
Module08
Module08Module08
Module08
 
Multidimensional model programming
Multidimensional model programmingMultidimensional model programming
Multidimensional model programming
 
SQL Server 2008 for .NET Developers
SQL Server 2008 for .NET DevelopersSQL Server 2008 for .NET Developers
SQL Server 2008 for .NET Developers
 
Module02
Module02Module02
Module02
 
Module01
Module01Module01
Module01
 
Module03
Module03Module03
Module03
 
Alasql - база данных SQL на JavaScript (MoscowJS)
Alasql - база данных SQL на JavaScript (MoscowJS)Alasql - база данных SQL на JavaScript (MoscowJS)
Alasql - база данных SQL на JavaScript (MoscowJS)
 
Module04
Module04Module04
Module04
 
AlaSQL библиотека для обработки JavaScript данных (презентация для ForntEnd 2...
AlaSQL библиотека для обработки JavaScript данных (презентация для ForntEnd 2...AlaSQL библиотека для обработки JavaScript данных (презентация для ForntEnd 2...
AlaSQL библиотека для обработки JavaScript данных (презентация для ForntEnd 2...
 
Alasql.js - SQL сервер на JavaScript
Alasql.js - SQL сервер на JavaScriptAlasql.js - SQL сервер на JavaScript
Alasql.js - SQL сервер на JavaScript
 
SQL Server 2008 for Developers
SQL Server 2008 for DevelopersSQL Server 2008 for Developers
SQL Server 2008 for Developers
 

Similaire à Sql Server 2008 Spatial Analysis

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
 
Rattle Graphical Interface for R Language
Rattle Graphical Interface for R LanguageRattle Graphical Interface for R Language
Rattle Graphical Interface for R LanguageMajid Abdollahi
 
CARTO en 5 Pasos: del Dato a la Toma de Decisiones [CARTO]
CARTO en 5 Pasos: del Dato a la Toma de Decisiones [CARTO]CARTO en 5 Pasos: del Dato a la Toma de Decisiones [CARTO]
CARTO en 5 Pasos: del Dato a la Toma de Decisiones [CARTO]CARTO
 
Presentation_BigData_NenaMarin
Presentation_BigData_NenaMarinPresentation_BigData_NenaMarin
Presentation_BigData_NenaMarinn5712036
 
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...IOSR Journals
 
Project Portfolio
Project PortfolioProject Portfolio
Project PortfolioArthur Chan
 
Data Analytics with R and SQL Server
Data Analytics with R and SQL ServerData Analytics with R and SQL Server
Data Analytics with R and SQL ServerStéphane Fréchette
 
Design and implementation of three dimensional objects in database management...
Design and implementation of three dimensional objects in database management...Design and implementation of three dimensional objects in database management...
Design and implementation of three dimensional objects in database management...eSAT Journals
 
Parallel KNN for Big Data using Adaptive Indexing
Parallel KNN for Big Data using Adaptive IndexingParallel KNN for Big Data using Adaptive Indexing
Parallel KNN for Big Data using Adaptive IndexingIRJET Journal
 
PERFORMANCE EVALUATION OF SQL AND NOSQL DATABASE MANAGEMENT SYSTEMS IN A CLUSTER
PERFORMANCE EVALUATION OF SQL AND NOSQL DATABASE MANAGEMENT SYSTEMS IN A CLUSTERPERFORMANCE EVALUATION OF SQL AND NOSQL DATABASE MANAGEMENT SYSTEMS IN A CLUSTER
PERFORMANCE EVALUATION OF SQL AND NOSQL DATABASE MANAGEMENT SYSTEMS IN A CLUSTERijdms
 
The Sum of our Parts: the Complete CARTO Journey [CARTO]
The Sum of our Parts: the Complete CARTO Journey [CARTO]The Sum of our Parts: the Complete CARTO Journey [CARTO]
The Sum of our Parts: the Complete CARTO Journey [CARTO]CARTO
 
Pricipal Component Analysis Using R
Pricipal Component Analysis Using RPricipal Component Analysis Using R
Pricipal Component Analysis Using RKarthi Keyan
 
introduction to power bi in electronics and communication engineering
introduction to power bi in electronics and communication engineeringintroduction to power bi in electronics and communication engineering
introduction to power bi in electronics and communication engineeringchotta2
 
Get up to Speed (Quick Guide to data.table in R and Pentaho PDI)
Get up to Speed (Quick Guide to data.table in R and Pentaho PDI)Get up to Speed (Quick Guide to data.table in R and Pentaho PDI)
Get up to Speed (Quick Guide to data.table in R and Pentaho PDI)Serban Tanasa
 
SQL Geography Datatypes by Jared Nielsen and the FUZION Agency
SQL Geography Datatypes by Jared Nielsen and the FUZION AgencySQL Geography Datatypes by Jared Nielsen and the FUZION Agency
SQL Geography Datatypes by Jared Nielsen and the FUZION AgencyJared Nielsen
 
Graph analytics in Linkurious Enterprise
Graph analytics in Linkurious EnterpriseGraph analytics in Linkurious Enterprise
Graph analytics in Linkurious EnterpriseLinkurious
 
UNIT - 5 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
UNIT - 5 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHONUNIT - 5 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
UNIT - 5 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHONNandakumar P
 

Similaire à Sql Server 2008 Spatial Analysis (20)

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
 
Rattle Graphical Interface for R Language
Rattle Graphical Interface for R LanguageRattle Graphical Interface for R Language
Rattle Graphical Interface for R Language
 
CARTO en 5 Pasos: del Dato a la Toma de Decisiones [CARTO]
CARTO en 5 Pasos: del Dato a la Toma de Decisiones [CARTO]CARTO en 5 Pasos: del Dato a la Toma de Decisiones [CARTO]
CARTO en 5 Pasos: del Dato a la Toma de Decisiones [CARTO]
 
Presentation_BigData_NenaMarin
Presentation_BigData_NenaMarinPresentation_BigData_NenaMarin
Presentation_BigData_NenaMarin
 
RichardPughspatial.ppt
RichardPughspatial.pptRichardPughspatial.ppt
RichardPughspatial.ppt
 
Glyph-Placement-Strategy
Glyph-Placement-StrategyGlyph-Placement-Strategy
Glyph-Placement-Strategy
 
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
 
Project Portfolio
Project PortfolioProject Portfolio
Project Portfolio
 
Data Analytics with R and SQL Server
Data Analytics with R and SQL ServerData Analytics with R and SQL Server
Data Analytics with R and SQL Server
 
Design and implementation of three dimensional objects in database management...
Design and implementation of three dimensional objects in database management...Design and implementation of three dimensional objects in database management...
Design and implementation of three dimensional objects in database management...
 
Parallel KNN for Big Data using Adaptive Indexing
Parallel KNN for Big Data using Adaptive IndexingParallel KNN for Big Data using Adaptive Indexing
Parallel KNN for Big Data using Adaptive Indexing
 
PERFORMANCE EVALUATION OF SQL AND NOSQL DATABASE MANAGEMENT SYSTEMS IN A CLUSTER
PERFORMANCE EVALUATION OF SQL AND NOSQL DATABASE MANAGEMENT SYSTEMS IN A CLUSTERPERFORMANCE EVALUATION OF SQL AND NOSQL DATABASE MANAGEMENT SYSTEMS IN A CLUSTER
PERFORMANCE EVALUATION OF SQL AND NOSQL DATABASE MANAGEMENT SYSTEMS IN A CLUSTER
 
The Sum of our Parts: the Complete CARTO Journey [CARTO]
The Sum of our Parts: the Complete CARTO Journey [CARTO]The Sum of our Parts: the Complete CARTO Journey [CARTO]
The Sum of our Parts: the Complete CARTO Journey [CARTO]
 
Pricipal Component Analysis Using R
Pricipal Component Analysis Using RPricipal Component Analysis Using R
Pricipal Component Analysis Using R
 
introduction to power bi in electronics and communication engineering
introduction to power bi in electronics and communication engineeringintroduction to power bi in electronics and communication engineering
introduction to power bi in electronics and communication engineering
 
Get up to Speed (Quick Guide to data.table in R and Pentaho PDI)
Get up to Speed (Quick Guide to data.table in R and Pentaho PDI)Get up to Speed (Quick Guide to data.table in R and Pentaho PDI)
Get up to Speed (Quick Guide to data.table in R and Pentaho PDI)
 
SQL Geography Datatypes by Jared Nielsen and the FUZION Agency
SQL Geography Datatypes by Jared Nielsen and the FUZION AgencySQL Geography Datatypes by Jared Nielsen and the FUZION Agency
SQL Geography Datatypes by Jared Nielsen and the FUZION Agency
 
Graph analytics in Linkurious Enterprise
Graph analytics in Linkurious EnterpriseGraph analytics in Linkurious Enterprise
Graph analytics in Linkurious Enterprise
 
SQL Windowing
SQL WindowingSQL Windowing
SQL Windowing
 
UNIT - 5 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
UNIT - 5 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHONUNIT - 5 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
UNIT - 5 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
 

Sql Server 2008 Spatial Analysis

  • 1. SQL Server 2008 Spatial Analysis 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 – recommend R2 to use maps in SSRS Dev Tools Visual Studio 2005, 2008, or 2010 SQL Management Studio 2008 Now supported on SQL Azure
  • 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
  • 11. Rendering Options SQL Management Studio 2008 – very basic for query testing VirtualEarth Google Maps or similar 3rd party mapping component (e.g. Dundas) SSRS/Report Builder in R2
  • 12. Spatial Indexing Images from Microsoft Technet
  • 13. 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)
  • 14. Spatial Indexing - Utilization SELECT * FROM Hospitals WITH (INDEX(SPATIAL_Hospitals)) WHERE LocationGeography.STIntersects(@P.STBuffer(@eps*1609.344)) = 1
  • 15. Goal of Geographic Analysis “I want SQL Server to tell me when there are clusters of geographic data points and where they are located.” - Dan Crawford, 2010
  • 16. It’s easy to see points on a map with SQL Server
  • 17. Why use cluster analysis? Analysis of injury severity and hospital resource use in a regional health care system Customer purchasing patterns Choosing a business or advertising location Crime analysis Easy visualization for dashboard
  • 18.
  • 19.
  • 21. DBSCAN DBSCAN(D, eps, MinPts) C = 0 for each unvisited point P in dataset D mark P as visited N = getNeighbors (P, eps) if sizeof(N) < MinPts mark P as NOISE else C = next cluster expandCluster(P, N, C, eps, MinPts) Source: http://en.wikipedia.org/wiki/DBSCAN
  • 22. DBSCAN (cont’d) expandCluster(P, N, C, eps, MinPts) add P to cluster C for each point P' in N if P' is not visited mark P' as visited N' = getNeighbors(P', eps) if sizeof(N') >= MinPts N = N joined with N' if P' is not yet member of any cluster add P' to cluster C Source: http://en.wikipedia.org/wiki/DBSCAN
  • 23.
  • 24. To make life easier Report Builder 3.0 SQL Server Spatial Tools – http://sqlspatialtools.codeplex.com