• Like
Census and spatial data in sql server 2008 designing tools for hazard mitigation and analysis
Upcoming SlideShare
Loading in...5
×
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
626
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
5
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Census and Spatial Data in SQL Server 2008: Designing Tools for Hazard Mitigation and Analysis Scott Rae and David Raybuck North Central Texas Council of Governments
  • 2. NCTCOG Region 12,800 square miles 16 counties 225 cities 134 school districts 29 special districts
  • 3. NCTCOG Emergency Management RolesFunctionsMitigationResponseRapid Access to DataMethods Reporting Mapping Real-Time Analysis
  • 4. Data IssuesQualityReliabilityEfficiency to Build New Data SetsEfficiency to Maintain New Data SetsDynamic InteractionAutomation of Data FlowSpeed
  • 5. Data NeedsStorm EventsFlood PlainsEarthquakesDroughtStructure Values by CategoryLive Radar DataLive Storm EventsCensus
  • 6. Radius Summaries (emeritus)Circa 2001-2010
  • 7. Census Block Centroids
  • 8. Census Block Centroids
  • 9. Radius Summary Antiques GIS Recordset (Loop Sum) GIS Constructed Query (Loop Query Build) SQL Algebra
  • 10. Selecting by Circle using TSQL power((power(( @ptdx - [xcoord]),2) + power((@ptdy -[ycoord]),2)),0.5) < @bufferstring
  • 11. SQL 2008 Spatialupdate test2008.dbo.TxGeo_Logrecno set geo9=geography::STPointFromText(POINT( +STR(Longitude, 20, 16) + + STR(Latitude, 20, 16) + ),4326)
  • 12. SQL 2008 Spatial Selecting by Polygonset @g =geography::STGeomFromText(POLYGON ((-96 31.4,-97 32.1,-97.1 32.1,-97.5 31.7 ,-97.831.7, -96 31.4)), 4326);SELECT * FROM dbo.txgeo_BWHERE (@g.STIntersects(geog)) = 1
  • 13. Rapid On-the-Fly Reporting Queries by Geometry Queries by AttributeWeb Users SQL Server SQL Reporting Services
  • 14. AdvantagesSpeedIndexingExpand to Millions of RecordsNo Geodatabase or GIS Objects OverheadTSQLSpatial types on Spatial Types
  • 15. Polygon Updating Housing Units in Updated Area Impacted Storm Direction Storm Speed Persons in Path Path7:12:00 PM 855.36 sq miles East-southeast 32 mph 36,468 13,3467:22:00 PM 770.81 sq miles East 25 mph 33,074 12,1877:38:00 PM 644.52 sq miles East 33 mph 12,001 4,5447:50:00 PM 156 sq miles East 21 mph 954 407
  • 16. Managing Data Flows into SQL 2008 .NET/TSQL XML/HTTP Partner Servers SQL 2008 .NET/TSQL Programmers FME Workbench .NET/TSQL Web Editors
  • 17. Web Editing of Spatial Features
  • 18. The LogicInferring numeric polygon values from another polygon layer
  • 19. If I have population by Census block…
  • 20. …what is the population of this triangle?
  • 21. The ArcGIS Way1. Calculate original area into source field2. ArcToolbox Intersect source with target3. Calculate new area into result field4. Calculate overlap % (result area / original area)5. Multiply this % by value(s) to infer6. Summary Statistics Sum (group by Unique ID of target)
  • 22. The SQL Server 2008 WaySELECT Target.UniqueID, SUM(PercentOfTarget * SourceValue) FROM( SELECT Source.UniqueID, Target.UniqueID, Source.SourceValue, Source.geom.STIntersection(Target.geom).ST Area() / Target.geom.STArea() AS PercentOfTarget FROM Target INNER JOIN Source on Source.geom.STIntersects(Target.geom) = 1)GROUP BY Target.UniqueID
  • 23. The GridOptimizing for the web
  • 24. Bing Maps Tile Quadkeys Length of the key in digits indicates the level of detail (aka zoom level) Each quadkey starts with the quadkey of the parent grid (the next largest square containing it)