SlideShare a Scribd company logo
SQLBits X SQL Server 2012 Spatial
SQLBits X SQL Server 2012 Spatial
The Business Opportunity



Increased                           Ubiquitous geographical
user-sophistication                 technology
• More data sources                 • GPS
• More kinds of data                • Online mapping services
• Integrated systems and mash-ups   • Availability of geographical data
SQLBits X SQL Server 2012 Spatial
Customer-base
                         management
        Real-estate          and
       development       development      Environmental-
       and analysis                         related data
                                         impact, analysis,
                                           and planning
   Scientific
research study                              Financial and
  design and                                  economic
   analysis                                   analysis in
                                            communities


           Market             Government-based
        segmentation            planning and
         and analysis           development
                                   analysis
Tree, Pole, Hydrant,
     POINT       MULTIPOINT
                               Valve


                               Road, River,
LINESTRING   MULTILINESTRING
                               Railway, Pipeline


                               Cadastre, Park,
  POLYGON     MULTIPOLYGON     Administrative
                               Boundary


COLLECTION                     Graphics, Markups
SQLBits X SQL Server 2012 Spatial
To match geometry


MakeValid will convert them to valid objects


FULLGLOBE spatial object is available
“small” holes can be created
Point




STBuffer
geo STDistance




geo STIntersects
geography data type                                             geometry data type
•Geodetic (“Round Earth”) geospatial model:                    •Planar (“Flat Earth”) geospatial model
 •Ellipsoidal coordinates (Lat, Long, Z, M)                     •projected „flat map‟ (X, Y, Z, M)
•Define points, lines, and areas with longitude and latitude   •Define points, lines, and areas with coordinates
•Account for planetary curvature and obtain accurate “great    •Use for localized areas or non-projected surfaces such as
 circle” distances                                              interior spaces
The Mercator projection did not come out until 1569. Please play along 
Well-Known-Binary:
 0x0103000000010000000500000000000000004CDDC
 000000000004C0D4100000000004CDD40000000000
 04CDD4000000000C07A104100000000004CDD4000
 00000000BD0F41000000000088134100000000004CD
 DC000000000004C0D41

  Well-Known-Text:
  'POLYGON(( -30000 240000, 30000 30000, 270000
  30000, 260000 320000, -30000 240000))'

  GML:
  <Polygon xmlns="http://www.opengis.net/gml">
    <exterior><LinearRing><posList>
     -30000 240000 30000 30000 270000 30000
260000
     320000 -30000 240000
    </posList></LinearRing></exterior>
  </Polygon>
GEOMETRYCOLLECTION (POLYGON ((228869.875 314609.75,
228870.82875722542 314611.91763005778, 228852.73214285716
314634.03571428568, 228869.875 314609.75)), LINESTRING
(218999.875 310799.75, 218890.89169195751 310666.54817905917),
POLYGON ((214987.51136363635 305790.84090909094, 215609.875
305879.75, 215639.875 306329.75, 214987.51136363635
305790.84090909094)), POLYGON ((214949.875 305759.75,
214987.51136363635 305790.84090909094, 214922.60227272729
305781.56818181818, 214949.875 305759.75)), …..
SQLBits X SQL Server 2012 Spatial
CIRCULARSTRING
(0 50, 90 50, 180 50, 270 50, 0 50)

  If a circular linestring encloses an area,
  curve polygon can be created

CURVEPOLYGON (CIRCULARSTRING
 (0 50, 90 50, 180 50, 270 50, 0 50))

  Coordinate pair order is important
  for the geography type. This set
  of coordinates is ordered according
  to the “left foot rule” for exterior
  rings.
Both types provide static and instance methods
      Calculate distances, find intersections, etc.




Find streets that intersect the Microsoft campus
       SELECT StreetName
       FROM Streets
       WHERE Streets.StreetGeo.STIntersects(@ms) = 1
STUnion
                      STIntersection
BOOLEAN OPERATIONS    STDifference
                      STSymDifference

                      STIntersects
                      STContains
RELATION OPERATIONS   STWithin
                      STTouches
                      STOverlaps
                      STConvexHull
                      STBuffer
CONSTRUCTIONS         STReduce
                      BufferWithCurves

                      STDistance
                      STLength
NUMERICAL
                      STArea
OPERATIONS
                      ShortestLineTo
geometrygeography STCurveN(int n)
Int STNumCurves()
geometrygeography STCurveToLine()
geometrygeography CurveToLineWithTolerance(int tolerance, bool relative)
geometrygeography BufferWithCurves(double range)
geometrygeography ShortestLineTo(geometrygeography other)
Bool CompatibleWithDbCompatibilityLevel(int compatLevel)



Bool STIsValid()
Geography MakeValid()
Bool STContains(geography other)
Bool STWithin(geography other)
Bool STOverlaps(geography other)
Geography STConvexHull()
Bool ReorientObject(geography other)
BufferWithCurves()

This method will construct the
resulting polygon with circular
arcs, often resulting in a
dramatically smaller spatial
object.
DECLARE @g GEOGRAPHY =
GEOGRAPHY::STGeomFromText('CIRCULARSTRING(0 50, 45 50,
90 50)',4326)
DECLARE @b GEOGRAPHY = @g.BufferWithCurves(500000)
SELECT @b.STNumPoints()
--Number of vertices: 11

DECLARE @g GEOGRAPHY =
GEOGRAPHY::STGeomFromText('CIRCULARSTRING(0 50, 45 50,
90 50)',4326)
DECLARE @b GEOGRAPHY = @g.STBuffer(500000)
SELECT @b.STNumPoints()
--Number of vertices: 257
ReorientObject

• This method will reverse the
  order of coordinates which
  define polygon rings.

• This method is a NoOp on
  line strings, circular arcs and
  points.

• This method does only work
  with the GEOGRAPHY type.
geography::Point(lat, lon, 4326)




geography::Point(lat, lon, 4326)
SQLBits X SQL Server 2012 Spatial
geocoder




  webgis.usc.edu/Services/Geocode/About/GeocoderList.aspx
www.idvsolutions.com/products_spatialW
iki.aspx
aggregates
www.geodata.gov
                 www.openstreetmap.org
                    www.census.gov/geo/www/cob




datamarket.azure.com
Shape2SQL




MapPoint Add-in for SQL Server


SAFE FME

ESRI ArcGIS
Pitney Bowes EasyLoader
SQLBits X SQL Server 2012 Spatial
SQLBits X SQL Server 2012 Spatial
SQLBits X SQL Server 2012 Spatial
SQLBits X SQL Server 2012 Spatial
Take advantage of       • geometry and geography
comprehensive spatial       data types
       support            • Methods for spatial operations


                          • Store spatial data with business data
Build high performance
                       • Spatial indexing
    spatial solutions


                          • Industry-standards compatibility
 Extend and integrate
                          • Comprehensive programmatic library
geospatial applications

More Related Content

What's hot (20)

PPT
Unique methods of GIS in Transportation
Andrew Harrison
 
PPT
Applications of GIS to Logistics and Transportation
sorbi
 
PPT
Geographical Information System(GIS) in Urban Design
Purushottam Uttarwar
 
PPTX
Application of gis and remote sensing in modern transport system
Sabhapathy Civil
 
PDF
2014 Ministerial Press Briefing by the Office The Surveyor-General Of The Fe...
FMINigeria
 
PPT
Themating maping
Vishvendu pandey
 
DOCX
Introduction to Digital Maps
Paperless Trail Inc.
 
PDF
Determining the Absolute Height of the Ground using the Global Mapper Program...
YogeshIJTSRD
 
PDF
Texture Generation for Expressive Rock Drawing
Sidonie Christophe
 
DOCX
Field move clino
Shalini Palanivel
 
PDF
Spatial Analysis for Urban development between “1990-2010” in city of Sulaim...
International Journal of Engineering Inventions www.ijeijournal.com
 
PPTX
GIS - Topology
Malla Reddy University
 
PDF
QGIS training class 3
Hiroaki Sengoku
 
PPTX
2012 Architecture Portfolio
bonderman
 
PPTX
Mapping Cyberspace
s.meyer
 
PDF
Expressive Map Design: OGC SLD/SE extension for expressive mapstyles
Sidonie Christophe
 
PDF
Practical work in geography
Shivam Kapri
 
DOC
Statistical techniques in geographical analysis
akida mbugi
 
PPT
Jones Et Al Gisruk 2008
katyJ
 
PPTX
Analysis of suggested Sites for Construction of a Shopping Mall at Banepa,Kavre
Nepal Flying Labs
 
Unique methods of GIS in Transportation
Andrew Harrison
 
Applications of GIS to Logistics and Transportation
sorbi
 
Geographical Information System(GIS) in Urban Design
Purushottam Uttarwar
 
Application of gis and remote sensing in modern transport system
Sabhapathy Civil
 
2014 Ministerial Press Briefing by the Office The Surveyor-General Of The Fe...
FMINigeria
 
Themating maping
Vishvendu pandey
 
Introduction to Digital Maps
Paperless Trail Inc.
 
Determining the Absolute Height of the Ground using the Global Mapper Program...
YogeshIJTSRD
 
Texture Generation for Expressive Rock Drawing
Sidonie Christophe
 
Field move clino
Shalini Palanivel
 
Spatial Analysis for Urban development between “1990-2010” in city of Sulaim...
International Journal of Engineering Inventions www.ijeijournal.com
 
GIS - Topology
Malla Reddy University
 
QGIS training class 3
Hiroaki Sengoku
 
2012 Architecture Portfolio
bonderman
 
Mapping Cyberspace
s.meyer
 
Expressive Map Design: OGC SLD/SE extension for expressive mapstyles
Sidonie Christophe
 
Practical work in geography
Shivam Kapri
 
Statistical techniques in geographical analysis
akida mbugi
 
Jones Et Al Gisruk 2008
katyJ
 
Analysis of suggested Sites for Construction of a Shopping Mall at Banepa,Kavre
Nepal Flying Labs
 

Similar to SQLBits X SQL Server 2012 Spatial (20)

PDF
What is GIS
Esri
 
PDF
Intro To Geospatial
danrickman
 
PDF
Covering the earth and the cloud the next generation of spatial in sql server...
Texas Natural Resources Information System
 
PPTX
Geographic Information System for Egyptian Railway System(GIS)
Ismail El Gayar
 
PDF
Data managing and Exchange GDB
Esri
 
PDF
Basic Gis
esambale
 
PDF
Gissoftware steiniger2008
osgislover
 
PPT
Research Areas In Geomatics
Arup Dasgupta
 
PDF
Skills portfolio
yeboyerp
 
PPTX
GIS
Parth Patel
 
PDF
Spatial Data in SQL Server
Eduardo Castro
 
PDF
Whatisgis introduction
Yeswanth Raghavendra
 
PDF
Playful Explorations of Public and Personal Data - OSCON Data 2011
Andrew Turner
 
PPTX
Introduction to GIS (1).pptxBBHHHHHHHHHH
Nazia Shuja
 
PPTX
Introduction to GIS (1).pptxBBHHHHHHHHHH
Nazia Shuja
 
PDF
Gis and-sap-realestate-mgmt
ashwini5417
 
PDF
Introduction to Geographic Information System (GIS)
atmnurulhaque
 
PDF
Igcon 2011
Denny Charter
 
What is GIS
Esri
 
Intro To Geospatial
danrickman
 
Covering the earth and the cloud the next generation of spatial in sql server...
Texas Natural Resources Information System
 
Geographic Information System for Egyptian Railway System(GIS)
Ismail El Gayar
 
Data managing and Exchange GDB
Esri
 
Basic Gis
esambale
 
Gissoftware steiniger2008
osgislover
 
Research Areas In Geomatics
Arup Dasgupta
 
Skills portfolio
yeboyerp
 
Spatial Data in SQL Server
Eduardo Castro
 
Whatisgis introduction
Yeswanth Raghavendra
 
Playful Explorations of Public and Personal Data - OSCON Data 2011
Andrew Turner
 
Introduction to GIS (1).pptxBBHHHHHHHHHH
Nazia Shuja
 
Introduction to GIS (1).pptxBBHHHHHHHHHH
Nazia Shuja
 
Gis and-sap-realestate-mgmt
ashwini5417
 
Introduction to Geographic Information System (GIS)
atmnurulhaque
 
Igcon 2011
Denny Charter
 
Ad

More from Michael Rys (20)

PPTX
Big Data and Data Warehousing Together with Azure Synapse Analytics (SQLBits ...
Michael Rys
 
PPTX
Big Data Processing with .NET and Spark (SQLBits 2020)
Michael Rys
 
PPTX
Running cost effective big data workloads with Azure Synapse and ADLS (MS Ign...
Michael Rys
 
PPTX
Running cost effective big data workloads with Azure Synapse and Azure Data L...
Michael Rys
 
PPTX
Big Data Processing with Spark and .NET - Microsoft Ignite 2019
Michael Rys
 
PPTX
Bringing the Power and Familiarity of .NET, C# and F# to Big Data Processing ...
Michael Rys
 
PPTX
Building data pipelines for modern data warehouse with Apache® Spark™ and .NE...
Michael Rys
 
PPTX
Modernizing ETL with Azure Data Lake: Hyperscale, multi-format, multi-platfor...
Michael Rys
 
PPTX
Best Practices and Performance Tuning of U-SQL in Azure Data Lake (SQL Konfer...
Michael Rys
 
PPTX
Bring your code to explore the Azure Data Lake: Execute your .NET/Python/R co...
Michael Rys
 
PPTX
Best practices on Building a Big Data Analytics Solution (SQLBits 2018 Traini...
Michael Rys
 
PPTX
U-SQL Killer Scenarios: Custom Processing, Big Cognition, Image and JSON Proc...
Michael Rys
 
PPTX
Introduction to Azure Data Lake and U-SQL for SQL users (SQL Saturday 635)
Michael Rys
 
PPTX
U-SQL Killer Scenarios: Taming the Data Science Monster with U-SQL and Big Co...
Michael Rys
 
PPTX
The Road to U-SQL: Experiences in Language Design (SQL Konferenz 2017 Keynote)
Michael Rys
 
PPTX
Introducing U-SQL (SQLPASS 2016)
Michael Rys
 
PPTX
Tuning and Optimizing U-SQL Queries (SQLPASS 2016)
Michael Rys
 
PPTX
Taming the Data Science Monster with A New ‘Sword’ – U-SQL
Michael Rys
 
PPTX
Killer Scenarios with Data Lake in Azure with U-SQL
Michael Rys
 
PPTX
ADL/U-SQL Introduction (SQLBits 2016)
Michael Rys
 
Big Data and Data Warehousing Together with Azure Synapse Analytics (SQLBits ...
Michael Rys
 
Big Data Processing with .NET and Spark (SQLBits 2020)
Michael Rys
 
Running cost effective big data workloads with Azure Synapse and ADLS (MS Ign...
Michael Rys
 
Running cost effective big data workloads with Azure Synapse and Azure Data L...
Michael Rys
 
Big Data Processing with Spark and .NET - Microsoft Ignite 2019
Michael Rys
 
Bringing the Power and Familiarity of .NET, C# and F# to Big Data Processing ...
Michael Rys
 
Building data pipelines for modern data warehouse with Apache® Spark™ and .NE...
Michael Rys
 
Modernizing ETL with Azure Data Lake: Hyperscale, multi-format, multi-platfor...
Michael Rys
 
Best Practices and Performance Tuning of U-SQL in Azure Data Lake (SQL Konfer...
Michael Rys
 
Bring your code to explore the Azure Data Lake: Execute your .NET/Python/R co...
Michael Rys
 
Best practices on Building a Big Data Analytics Solution (SQLBits 2018 Traini...
Michael Rys
 
U-SQL Killer Scenarios: Custom Processing, Big Cognition, Image and JSON Proc...
Michael Rys
 
Introduction to Azure Data Lake and U-SQL for SQL users (SQL Saturday 635)
Michael Rys
 
U-SQL Killer Scenarios: Taming the Data Science Monster with U-SQL and Big Co...
Michael Rys
 
The Road to U-SQL: Experiences in Language Design (SQL Konferenz 2017 Keynote)
Michael Rys
 
Introducing U-SQL (SQLPASS 2016)
Michael Rys
 
Tuning and Optimizing U-SQL Queries (SQLPASS 2016)
Michael Rys
 
Taming the Data Science Monster with A New ‘Sword’ – U-SQL
Michael Rys
 
Killer Scenarios with Data Lake in Azure with U-SQL
Michael Rys
 
ADL/U-SQL Introduction (SQLBits 2016)
Michael Rys
 
Ad

Recently uploaded (20)

PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 

SQLBits X SQL Server 2012 Spatial

  • 3. The Business Opportunity Increased Ubiquitous geographical user-sophistication technology • More data sources • GPS • More kinds of data • Online mapping services • Integrated systems and mash-ups • Availability of geographical data
  • 5. Customer-base management Real-estate and development development Environmental- and analysis related data impact, analysis, and planning Scientific research study Financial and design and economic analysis analysis in communities Market Government-based segmentation planning and and analysis development analysis
  • 6. Tree, Pole, Hydrant, POINT MULTIPOINT Valve Road, River, LINESTRING MULTILINESTRING Railway, Pipeline Cadastre, Park, POLYGON MULTIPOLYGON Administrative Boundary COLLECTION Graphics, Markups
  • 8. To match geometry MakeValid will convert them to valid objects FULLGLOBE spatial object is available “small” holes can be created
  • 11. geography data type geometry data type •Geodetic (“Round Earth”) geospatial model: •Planar (“Flat Earth”) geospatial model •Ellipsoidal coordinates (Lat, Long, Z, M) •projected „flat map‟ (X, Y, Z, M) •Define points, lines, and areas with longitude and latitude •Define points, lines, and areas with coordinates •Account for planetary curvature and obtain accurate “great •Use for localized areas or non-projected surfaces such as circle” distances interior spaces
  • 12. The Mercator projection did not come out until 1569. Please play along 
  • 13. Well-Known-Binary: 0x0103000000010000000500000000000000004CDDC 000000000004C0D4100000000004CDD40000000000 04CDD4000000000C07A104100000000004CDD4000 00000000BD0F41000000000088134100000000004CD DC000000000004C0D41 Well-Known-Text: 'POLYGON(( -30000 240000, 30000 30000, 270000 30000, 260000 320000, -30000 240000))' GML: <Polygon xmlns="http://www.opengis.net/gml"> <exterior><LinearRing><posList> -30000 240000 30000 30000 270000 30000 260000 320000 -30000 240000 </posList></LinearRing></exterior> </Polygon>
  • 14. GEOMETRYCOLLECTION (POLYGON ((228869.875 314609.75, 228870.82875722542 314611.91763005778, 228852.73214285716 314634.03571428568, 228869.875 314609.75)), LINESTRING (218999.875 310799.75, 218890.89169195751 310666.54817905917), POLYGON ((214987.51136363635 305790.84090909094, 215609.875 305879.75, 215639.875 306329.75, 214987.51136363635 305790.84090909094)), POLYGON ((214949.875 305759.75, 214987.51136363635 305790.84090909094, 214922.60227272729 305781.56818181818, 214949.875 305759.75)), …..
  • 16. CIRCULARSTRING (0 50, 90 50, 180 50, 270 50, 0 50) If a circular linestring encloses an area, curve polygon can be created CURVEPOLYGON (CIRCULARSTRING (0 50, 90 50, 180 50, 270 50, 0 50)) Coordinate pair order is important for the geography type. This set of coordinates is ordered according to the “left foot rule” for exterior rings.
  • 17. Both types provide static and instance methods Calculate distances, find intersections, etc. Find streets that intersect the Microsoft campus SELECT StreetName FROM Streets WHERE Streets.StreetGeo.STIntersects(@ms) = 1
  • 18. STUnion STIntersection BOOLEAN OPERATIONS STDifference STSymDifference STIntersects STContains RELATION OPERATIONS STWithin STTouches STOverlaps STConvexHull STBuffer CONSTRUCTIONS STReduce BufferWithCurves STDistance STLength NUMERICAL STArea OPERATIONS ShortestLineTo
  • 19. geometrygeography STCurveN(int n) Int STNumCurves() geometrygeography STCurveToLine() geometrygeography CurveToLineWithTolerance(int tolerance, bool relative) geometrygeography BufferWithCurves(double range) geometrygeography ShortestLineTo(geometrygeography other) Bool CompatibleWithDbCompatibilityLevel(int compatLevel) Bool STIsValid() Geography MakeValid() Bool STContains(geography other) Bool STWithin(geography other) Bool STOverlaps(geography other) Geography STConvexHull() Bool ReorientObject(geography other)
  • 20. BufferWithCurves() This method will construct the resulting polygon with circular arcs, often resulting in a dramatically smaller spatial object. DECLARE @g GEOGRAPHY = GEOGRAPHY::STGeomFromText('CIRCULARSTRING(0 50, 45 50, 90 50)',4326) DECLARE @b GEOGRAPHY = @g.BufferWithCurves(500000) SELECT @b.STNumPoints() --Number of vertices: 11 DECLARE @g GEOGRAPHY = GEOGRAPHY::STGeomFromText('CIRCULARSTRING(0 50, 45 50, 90 50)',4326) DECLARE @b GEOGRAPHY = @g.STBuffer(500000) SELECT @b.STNumPoints() --Number of vertices: 257
  • 21. ReorientObject • This method will reverse the order of coordinates which define polygon rings. • This method is a NoOp on line strings, circular arcs and points. • This method does only work with the GEOGRAPHY type.
  • 27. www.geodata.gov www.openstreetmap.org www.census.gov/geo/www/cob datamarket.azure.com
  • 28. Shape2SQL MapPoint Add-in for SQL Server SAFE FME ESRI ArcGIS Pitney Bowes EasyLoader
  • 33. Take advantage of • geometry and geography comprehensive spatial data types support • Methods for spatial operations • Store spatial data with business data Build high performance • Spatial indexing spatial solutions • Industry-standards compatibility Extend and integrate • Comprehensive programmatic library geospatial applications

Editor's Notes

  • #4: Advances in technology have led to the proliferation of geographical services and devices, including online mapping solutions such as Microsoft Virtual Earth, and inexpensive global positioning system (GPS) solutions. Technology that was once focused towards geographic information system (GIS) specialists is now widely available to everyone for a variety of practical uses. There are two factors that bring new expectations and opportunities for software applications. The increase in user sophistication andThe ubiquity of geographical servicesSpatial information is just another component to be incorporated into applications and used as a basis for making better decisions and providing higher value services.
  • #6: As previously mentioned, Spatial data can now be used for a variety of practical uses. The spatial support in Microsoft SQL Server 2008 can help users make better decisions through analysis of location data in scenarios such as: Customer-base management and development: i.e. visually analyze where your customers are in relation to sales reps or by territory. Environmental-related data impact, analysis, and planning: i.e.Environmental engineers canvisually display historical forest fire data on a map to better predict future threats.Financial and economic analysis in communities: i.e. Better understand the impact and/or payoff of building major developments within specific communities or areas through visual analysis.Government-based planning and development analysis:i.e. City planners can utilize spatial data to visually analyze transportation planning, zoning, population density, and housing data.Market segmentation and analysis: i.e. visually display cell phone usage by income level across a specified area or neighborhood.Scientific research study design and analysis: i.e. Researchers can incorporate spatial data for targeting participant recruitment, embed spatial-driven applications within surveys for location-related questions, and post-survey analysis. Real-estate development and analysis: i.e. Housing developers can visually compare housing density, sale prices, and zoning to make decisions about future development investments.
  • #12: What exactly is Spatial data: Spatial data is used to represent points, lines, areas, and 3-dimensional structures on a surface. Most commonly, these elements relate to actual physical locations on Earth in which case they can be described a geospatial data. Most of us are familiar with this concept through the use of globes and maps, which generally show multiple geographic features and their relative locations.SQL Server 2008 supports two spatial data types: GEOGRAPHY and GEOMETRY.The GEOGRAPHY type Geodetic (“Round Earth”) geospatial model : the geodetic or round earth model provides the most accurate way to represent geographic features Define points, lines, and areas with longitude and latitude: these points can include a specific location like a restaurant, lines can be roads and power lines, and a polygon areas can include a lake or neighbourhood.Account for planetary curvature and obtain accurate “great circle” distances The GEOMETRY typePlanar (“Flat Earth”) geospatial model : To work with geospatial data on a flat, two dimensional surface, a projection is created to flatten the geographical objects on the spheroid. Define points, lines, and areas with coordinates on an arbitrary planeUse for localized areas or non-projected surfaces such as interior spacesThis kind of data is commonly found in regional mapping systems, such as the state plane system defined by the United States government, or for maps and interior floor plans where the curvature of the Earth does not need to be taken into account.Geometry side note: The geometry data type provides properties and methods that are compliant with the OGC Simple Features Specification for SQL, enabling you to perform operations on geometric data that produce industry-standard behavior. General Side note: There are a number of different geodetic models in use throughout the world, including the Airy 1830 ellipsoid used in the United Kingdom’s Ordnance Survey geographic system, and the WGS84 ellipsoid used by most of the world’s GPS solutions.
  • #18: Both spatial data types in SQL Server 2008 provide a comprehensive set of instance and static methods that you can use to perform spatial queries and operations. For example, a variable named @ms of type geometry can be used to represent the area of the Microsoft campus. A query against a table of streets that includes a geometry column to define each street can be used to determine which streets intersect the campus This offers a quick visual analysis to end users.
  • #26: Maybe something more from this post:
  • #27: Aggregates demo
  • #28: Related blog posthttp://blogs.msdn.com/b/davidlean/archive/2008/11/14/sql-spatial-how-to-get-spatial-data-free-maps-n-demographics.aspx
  • #29: WPF = Windows Presentation Foundation  replaces Win Forms
  • #31: Query performance against spatial data is further enhanced by the inclusion of spatial index support in SQL Server 2008. Spatial indexing built into query engine:You can index spatial data based on a grid-based, quad-tree  indexing model that is integrated into the SQL Server database engine. As shown by this conceptual model to the right, Spatial indexes consist of a grid-based hierarchy in which each level of the index subdivides the grid sector defined in the level above. The SQL Server query optimizer:For optimal performance, SQL Server makes cost-based decisions on which indexes to use for a given query Because spatial indexes are an integral part of the database engine, SQL Server can make cost-based decisions about whether or not to use a particular spatial index, just like any other index. This indexing method quickly eliminates unnecessary and irrelevant data from the query for improved performance.
  • #34: With Microsoft SQL Server 2008, you can:Take advantage of comprehensive spatial supportgeometry and geography data typesMethods for spatial operationsBuild high performance spatial solutionsStore spatial data with business dataSpatial indexingExtend and integrate geospatial applicationsIndustry-standards compatibilityComprehensive programmatic library