SlideShare uma empresa Scribd logo
1 de 32
Baixar para ler offline
Building The Spatial Enterprise
for Denver Public Schools
Matthew Baker
Department of Planning and Analysis
...Or:
How I learned to stop
worrying and love
SQL Spatial.
DPS Overview
● Fastest Growing District in USA
● 84,424 Students
– Largest district in CO
● 120 Languages
● 172 Schools
DPS Student Ethnicity
DPS Student Performance
Overview Planning & Analysis
● DPS Administration Building (900 Grant)
– 1870 Lincoln (Summer 2014)
● Demographic Analysis and Projections
– Student demand and performance
● Capacity and Resource Planning
– Strategic Regional Analysis (SRA)
Spatial Data and Client Applications
Infinite Campus (IC)
Students
Teachers
Principals
Superintendent
Administration
Planning
&
Analysis
All DPS database tables
Spatial Data Primary
● School Points
● Boundaries
● Address Points
● Student Households (addresses)
● Planning and Forecast Regions
● October Count (Student count on Oct. 1)
Address Point File
● Currently ~280,000 geocoded address points
● Central Database: Infinite Campus (IC)
– Origin and source of truth for student data
● Weekly sync to IC addresses and GIS
addresses
– IC doesn't (yet) store spatial data!
Spatial Data Other
City & County of Denver
● Parcels
● Neighborhoods
● Street Centerlines
● Election Precincts
● Police Districts
● Historic Landmark Districts
● Zoning
● Land Use
● Council Districts
Census
● Block Groups
● Blocks
● Tracts
● Birth data
Clients DPS Enterprise
● IC - School Matrix
● School by Grade for each address point
● DPS Business Intelligence (BI)
● DPS Transportation Department
● Operational Data Store (ODS)
● Colorado Department of Education
– CDE Pipeline
DPS School Locator
● Enter Address
● Get:
– Boundary Schools
● Elem
● Mid
● High
– Transportation Info
● ArcGIS Server
● Google Maps API
http://maps.dpsk12.org/
Building the Spatial Enterprise
Design Tasks Initial
● Identify and interview users and stakeholders
● Design GIS database
– ArcGIS 9.3.1 to 10.1
● Dev / QA database design
● Implement production
● Applications
– Re-build ArcGIS Server
– Re-build web applications (school locator, etc.)
Workflow Challenges
IC
SQL Data Pull
What's broken?
● Links to Data
– Enterprise to GIS
– SQL to Map
● ArcGIS
– Access and create spatial data, no link to Enterprise
● SQL Server
– Access tabular data
– Enables enterprise-wide analysis
– No access to spatial data
Solution SQL Server Spatial
Improvements
● SQL Server “workspace”
– MS SQL Server 2012
– Analysts build and use spatial functions
– Create and modify database views
● Use in Excel
● Use in ArcMap
● ETL Automation
– To / From SDE
– Analysis to DPS Enterprise, etc.
Enabling SQL Spatial with FME
● FME Workbench
– From SDE to SQL Spatial Native format
– Create spatial index
– Create Unique Object ID
● “Take What We Need”
– Some fields for GIS
– Some for SQL Analysis
Creating Spatial Data with FME
● Assemble query in SQL
● Join Spatial data (shape field)
– Using AddressID
– Must also use OBJECTID for use in ArcMap
● Pull data from SQL to ArcSDE for use in GIS
FME Workbench Example
● ~280,000 points x3 feature classes
● Reproject while loading
● Create SQL Spatial Index
Other Benefits ETL with FME
● Promoting SDE Tables
– Dev to QA
– QA to Prod
● Simple tool for DBA to run
● Enter User/Pass
● ETL runs transparently
SQL Spatial Example
● Need:
– Grade 9 students
– Projected School Assignment for 2015
– Within Specific Boundary
● Pulls from:
– Projected Students
– Address Master
SELECT
count( [Student_Number]) as StudentCount
FROM [GISWork].[dpsdata].[ProjectedStudents]
join
[GISWork].dpsdata.[Address_Master]
on (ProjectedStudents.addressID = Address_Master.AddressID)
join
GISWork.dpsdata.SchoolBoundaries_All
on (Address_Master.shape.STIntersects(SchoolBoundaries_All.shape) = 1)
where ProjectedGrade = '9'
and SchoolBoundaries_All.HIGH_NUM = '464'
group by ProjectedSchool
order by StudentCount desc
SQL Spatial Example
● Assign special needs transition-grade students
to feeder or closest center program
– Give top 3 closest schools by program
– Distance to each school
SELECT BT.[StudentID]
,BT.[LastName]
,BT.[FirstName]
,BT.[CurrentGrade]
,BT.[CurrentSchoolNum]
,BT.[CurrentSchoolName]
,BT.[ProjResSch]
,BT.[ProjectedEdLevel]
,BT.[CenterProgram]
,BT.[CenterProgramGroup]
,BT.[shape]
,ROW_NUMBER() OVER(PARTITION BY BT.[StudentID] ORDER BY ROUND((SC.Shape.STDistance(BT.Shape)/5280),2)
,CASE WHEN BT.[CenterProgramGroup] in ('AN','MI') and BT.[CurrentSchoolNum] = '447' THEN '466'
WHEN BT.[CenterProgramGroup] in ('AUT', 'MI-Severe') and BT.[CurrentSchoolNum] = '419' THEN '469'
ELSE SC.[CenterSchNum] END as [ProjFeederCenterSchNum]
,CASE WHEN BT.[CenterProgramGroup] in ('AN','MI') and BT.[CurrentSchoolNum] = '447' THEN 'DCIS/NCAS'
WHEN BT.[CenterProgramGroup] in ('AUT', 'MI-Severe') and BT.[CurrentSchoolNum] = '419' THEN 'MLK'
ELSE SC.[CenterSchName] END as [ProjFeederCenterSchName]
--,CASE WHEN BT.[CenterProgramGroup] in ('AN','MI') and BT.[CurrentSchoolNum] = '447' THEN
,ROUND((SC.Shape.STDistance(BT.Shape)/5280),2) as [DistancetoFeeder]
FROM
(SELECT ST.[StudentID]
,ST.[LastName]
,ST.[FirstName]
,ST.[Grade] as [CurrentGrade]
,ST.[SchoolNum] as [CurrentSchoolNum]
,ST.[SchoolName] as [CurrentSchoolName]
,CASE WHEN ST.[grade] = '5th' THEN ST.[SCHOOL_6] WHEN ST.[Grade] = '8th' THEN ST.[SCHOOL_9] WHE
[resschnum] END as [ProjResSch]
--,ST.[ResSchNum]
--,ST.[ResSchName]
,CASE WHEN ST.[grade] = '2nd' THEN 'ElemInt' WHEN ST.[grade] = 'Pre-K' THEN 'ElemPri' ELSE ST.[
--,ST.[DOB]
--,ST.[Disability]
,ST.[CenterProgram]
SQL Spatial Functions
● MSSQL Spatial
– STIntersects
– STContains
– STDistance
– STCentroid
Tools Used
● SQL Server 2012
– Native Spatial Data / Geometry
● ArcGIS 10.1
– ArcGIS Server 10.2
● FME Workbench
● PGModeler
–
Thank you!
Matthew Baker
Department of Planning and Analysis
matthew_baker@dpsk12.org
@MapBaker

Mais conteúdo relacionado

Semelhante a Building the Spatial Enterprise of Denver Public Schools

data-scientist-learning-path.pptx
data-scientist-learning-path.pptxdata-scientist-learning-path.pptx
data-scientist-learning-path.pptx
sandipkishore
 
Current-Active Resume
Current-Active ResumeCurrent-Active Resume
Current-Active Resume
rgtyh
 
Genet Tadesse Resume
Genet Tadesse ResumeGenet Tadesse Resume
Genet Tadesse Resume
Genet Tadesse
 
Santosh Prasad-Resume (2)
Santosh Prasad-Resume (2)Santosh Prasad-Resume (2)
Santosh Prasad-Resume (2)
Santosh Prasad
 
Jyothi_Ganta_Oracle_BI_Developer
Jyothi_Ganta_Oracle_BI_DeveloperJyothi_Ganta_Oracle_BI_Developer
Jyothi_Ganta_Oracle_BI_Developer
Jyothi srirama
 

Semelhante a Building the Spatial Enterprise of Denver Public Schools (20)

data-scientist-learning-path.pptx
data-scientist-learning-path.pptxdata-scientist-learning-path.pptx
data-scientist-learning-path.pptx
 
Resume_DOC1
Resume_DOC1Resume_DOC1
Resume_DOC1
 
A Modern Interface for Data Science on Postgres/Greenplum - Greenplum Summit ...
A Modern Interface for Data Science on Postgres/Greenplum - Greenplum Summit ...A Modern Interface for Data Science on Postgres/Greenplum - Greenplum Summit ...
A Modern Interface for Data Science on Postgres/Greenplum - Greenplum Summit ...
 
Current-Active Resume
Current-Active ResumeCurrent-Active Resume
Current-Active Resume
 
Genet Tadesse Resume
Genet Tadesse ResumeGenet Tadesse Resume
Genet Tadesse Resume
 
Genet tadesse resume
Genet tadesse resumeGenet tadesse resume
Genet tadesse resume
 
Santosh Prasad-Resume (2)
Santosh Prasad-Resume (2)Santosh Prasad-Resume (2)
Santosh Prasad-Resume (2)
 
Jyothi_Ganta_Oracle_BI_Developer
Jyothi_Ganta_Oracle_BI_DeveloperJyothi_Ganta_Oracle_BI_Developer
Jyothi_Ganta_Oracle_BI_Developer
 
EvaSys module survey dashboard
EvaSys module survey dashboardEvaSys module survey dashboard
EvaSys module survey dashboard
 
CV1-Sadaf_Siddiqui
CV1-Sadaf_SiddiquiCV1-Sadaf_Siddiqui
CV1-Sadaf_Siddiqui
 
Pratyush cv
Pratyush cvPratyush cv
Pratyush cv
 
Pratyush cv
Pratyush cvPratyush cv
Pratyush cv
 
Pratyush cv
Pratyush cvPratyush cv
Pratyush cv
 
Role of ML engineer
Role of ML engineerRole of ML engineer
Role of ML engineer
 
CV1
CV1CV1
CV1
 
DATA SCIENCE TRAINING IN CHENNAI
DATA SCIENCE TRAINING IN CHENNAIDATA SCIENCE TRAINING IN CHENNAI
DATA SCIENCE TRAINING IN CHENNAI
 
Data science training
Data science training Data science training
Data science training
 
DATA SCIENCE TRAINING IN CHENNAI
DATA SCIENCE TRAINING IN CHENNAIDATA SCIENCE TRAINING IN CHENNAI
DATA SCIENCE TRAINING IN CHENNAI
 
Data science training
Data science trainingData science training
Data science training
 
DATA SCIENCE TRAINING IN CHENNAI
DATA SCIENCE TRAINING IN CHENNAIDATA SCIENCE TRAINING IN CHENNAI
DATA SCIENCE TRAINING IN CHENNAI
 

Mais de Safe Software

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial DataCloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
Safe Software
 
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration WorkflowsIgniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software
 
Introducing the New FME Community Webinar - Feb 21, 2024 (2).pdf
Introducing the New FME Community Webinar - Feb 21, 2024 (2).pdfIntroducing the New FME Community Webinar - Feb 21, 2024 (2).pdf
Introducing the New FME Community Webinar - Feb 21, 2024 (2).pdf
Safe Software
 
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial DataCloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
Safe Software
 
Taking Off with FME: Elevating Airport Operations to New Heights
Taking Off with FME: Elevating Airport Operations to New HeightsTaking Off with FME: Elevating Airport Operations to New Heights
Taking Off with FME: Elevating Airport Operations to New Heights
Safe Software
 
Initiating and Advancing Your Strategic GIS Governance Strategy
Initiating and Advancing Your Strategic GIS Governance StrategyInitiating and Advancing Your Strategic GIS Governance Strategy
Initiating and Advancing Your Strategic GIS Governance Strategy
Safe Software
 
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software
 

Mais de Safe Software (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action:  Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action:  Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data Streams
 
The Critical Role of Spatial Data in Today's Data Ecosystem
The Critical Role of Spatial Data in Today's Data EcosystemThe Critical Role of Spatial Data in Today's Data Ecosystem
The Critical Role of Spatial Data in Today's Data Ecosystem
 
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial DataCloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
 
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration WorkflowsIgniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
Mastering MicroStation DGN: How to Integrate CAD and GIS
Mastering MicroStation DGN: How to Integrate CAD and GISMastering MicroStation DGN: How to Integrate CAD and GIS
Mastering MicroStation DGN: How to Integrate CAD and GIS
 
Geospatial Synergy: Amplifying Efficiency with FME & Esri
Geospatial Synergy: Amplifying Efficiency with FME & EsriGeospatial Synergy: Amplifying Efficiency with FME & Esri
Geospatial Synergy: Amplifying Efficiency with FME & Esri
 
Introducing the New FME Community Webinar - Feb 21, 2024 (2).pdf
Introducing the New FME Community Webinar - Feb 21, 2024 (2).pdfIntroducing the New FME Community Webinar - Feb 21, 2024 (2).pdf
Introducing the New FME Community Webinar - Feb 21, 2024 (2).pdf
 
Breaking Barriers & Leveraging the Latest Developments in AI Technology
Breaking Barriers & Leveraging the Latest Developments in AI TechnologyBreaking Barriers & Leveraging the Latest Developments in AI Technology
Breaking Barriers & Leveraging the Latest Developments in AI Technology
 
Best Practices to Navigating Data and Application Integration for the Enterpr...
Best Practices to Navigating Data and Application Integration for the Enterpr...Best Practices to Navigating Data and Application Integration for the Enterpr...
Best Practices to Navigating Data and Application Integration for the Enterpr...
 
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial DataCloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
 
New Year's Fireside Chat with Safe Software’s Founders
New Year's Fireside Chat with Safe Software’s FoundersNew Year's Fireside Chat with Safe Software’s Founders
New Year's Fireside Chat with Safe Software’s Founders
 
Taking Off with FME: Elevating Airport Operations to New Heights
Taking Off with FME: Elevating Airport Operations to New HeightsTaking Off with FME: Elevating Airport Operations to New Heights
Taking Off with FME: Elevating Airport Operations to New Heights
 
Initiating and Advancing Your Strategic GIS Governance Strategy
Initiating and Advancing Your Strategic GIS Governance StrategyInitiating and Advancing Your Strategic GIS Governance Strategy
Initiating and Advancing Your Strategic GIS Governance Strategy
 
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
 

Último

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 Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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...
 
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
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
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...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
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
 
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
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
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
 
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)
 
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
 

Building the Spatial Enterprise of Denver Public Schools

  • 1. Building The Spatial Enterprise for Denver Public Schools Matthew Baker Department of Planning and Analysis
  • 2. ...Or: How I learned to stop worrying and love SQL Spatial.
  • 3. DPS Overview ● Fastest Growing District in USA ● 84,424 Students – Largest district in CO ● 120 Languages ● 172 Schools
  • 6.
  • 7. Overview Planning & Analysis ● DPS Administration Building (900 Grant) – 1870 Lincoln (Summer 2014) ● Demographic Analysis and Projections – Student demand and performance ● Capacity and Resource Planning – Strategic Regional Analysis (SRA)
  • 8. Spatial Data and Client Applications
  • 10. Spatial Data Primary ● School Points ● Boundaries ● Address Points ● Student Households (addresses) ● Planning and Forecast Regions ● October Count (Student count on Oct. 1)
  • 11. Address Point File ● Currently ~280,000 geocoded address points ● Central Database: Infinite Campus (IC) – Origin and source of truth for student data ● Weekly sync to IC addresses and GIS addresses – IC doesn't (yet) store spatial data!
  • 12. Spatial Data Other City & County of Denver ● Parcels ● Neighborhoods ● Street Centerlines ● Election Precincts ● Police Districts ● Historic Landmark Districts ● Zoning ● Land Use ● Council Districts Census ● Block Groups ● Blocks ● Tracts ● Birth data
  • 13. Clients DPS Enterprise ● IC - School Matrix ● School by Grade for each address point ● DPS Business Intelligence (BI) ● DPS Transportation Department ● Operational Data Store (ODS) ● Colorado Department of Education – CDE Pipeline
  • 14. DPS School Locator ● Enter Address ● Get: – Boundary Schools ● Elem ● Mid ● High – Transportation Info ● ArcGIS Server ● Google Maps API http://maps.dpsk12.org/
  • 15. Building the Spatial Enterprise
  • 16. Design Tasks Initial ● Identify and interview users and stakeholders ● Design GIS database – ArcGIS 9.3.1 to 10.1 ● Dev / QA database design ● Implement production ● Applications – Re-build ArcGIS Server – Re-build web applications (school locator, etc.)
  • 18. What's broken? ● Links to Data – Enterprise to GIS – SQL to Map ● ArcGIS – Access and create spatial data, no link to Enterprise ● SQL Server – Access tabular data – Enables enterprise-wide analysis – No access to spatial data
  • 20. Improvements ● SQL Server “workspace” – MS SQL Server 2012 – Analysts build and use spatial functions – Create and modify database views ● Use in Excel ● Use in ArcMap ● ETL Automation – To / From SDE – Analysis to DPS Enterprise, etc.
  • 21. Enabling SQL Spatial with FME ● FME Workbench – From SDE to SQL Spatial Native format – Create spatial index – Create Unique Object ID ● “Take What We Need” – Some fields for GIS – Some for SQL Analysis
  • 22. Creating Spatial Data with FME ● Assemble query in SQL ● Join Spatial data (shape field) – Using AddressID – Must also use OBJECTID for use in ArcMap ● Pull data from SQL to ArcSDE for use in GIS
  • 23. FME Workbench Example ● ~280,000 points x3 feature classes ● Reproject while loading ● Create SQL Spatial Index
  • 24. Other Benefits ETL with FME ● Promoting SDE Tables – Dev to QA – QA to Prod ● Simple tool for DBA to run ● Enter User/Pass ● ETL runs transparently
  • 25.
  • 26. SQL Spatial Example ● Need: – Grade 9 students – Projected School Assignment for 2015 – Within Specific Boundary ● Pulls from: – Projected Students – Address Master
  • 27. SELECT count( [Student_Number]) as StudentCount FROM [GISWork].[dpsdata].[ProjectedStudents] join [GISWork].dpsdata.[Address_Master] on (ProjectedStudents.addressID = Address_Master.AddressID) join GISWork.dpsdata.SchoolBoundaries_All on (Address_Master.shape.STIntersects(SchoolBoundaries_All.shape) = 1) where ProjectedGrade = '9' and SchoolBoundaries_All.HIGH_NUM = '464' group by ProjectedSchool order by StudentCount desc
  • 28. SQL Spatial Example ● Assign special needs transition-grade students to feeder or closest center program – Give top 3 closest schools by program – Distance to each school
  • 29. SELECT BT.[StudentID] ,BT.[LastName] ,BT.[FirstName] ,BT.[CurrentGrade] ,BT.[CurrentSchoolNum] ,BT.[CurrentSchoolName] ,BT.[ProjResSch] ,BT.[ProjectedEdLevel] ,BT.[CenterProgram] ,BT.[CenterProgramGroup] ,BT.[shape] ,ROW_NUMBER() OVER(PARTITION BY BT.[StudentID] ORDER BY ROUND((SC.Shape.STDistance(BT.Shape)/5280),2) ,CASE WHEN BT.[CenterProgramGroup] in ('AN','MI') and BT.[CurrentSchoolNum] = '447' THEN '466' WHEN BT.[CenterProgramGroup] in ('AUT', 'MI-Severe') and BT.[CurrentSchoolNum] = '419' THEN '469' ELSE SC.[CenterSchNum] END as [ProjFeederCenterSchNum] ,CASE WHEN BT.[CenterProgramGroup] in ('AN','MI') and BT.[CurrentSchoolNum] = '447' THEN 'DCIS/NCAS' WHEN BT.[CenterProgramGroup] in ('AUT', 'MI-Severe') and BT.[CurrentSchoolNum] = '419' THEN 'MLK' ELSE SC.[CenterSchName] END as [ProjFeederCenterSchName] --,CASE WHEN BT.[CenterProgramGroup] in ('AN','MI') and BT.[CurrentSchoolNum] = '447' THEN ,ROUND((SC.Shape.STDistance(BT.Shape)/5280),2) as [DistancetoFeeder] FROM (SELECT ST.[StudentID] ,ST.[LastName] ,ST.[FirstName] ,ST.[Grade] as [CurrentGrade] ,ST.[SchoolNum] as [CurrentSchoolNum] ,ST.[SchoolName] as [CurrentSchoolName] ,CASE WHEN ST.[grade] = '5th' THEN ST.[SCHOOL_6] WHEN ST.[Grade] = '8th' THEN ST.[SCHOOL_9] WHE [resschnum] END as [ProjResSch] --,ST.[ResSchNum] --,ST.[ResSchName] ,CASE WHEN ST.[grade] = '2nd' THEN 'ElemInt' WHEN ST.[grade] = 'Pre-K' THEN 'ElemPri' ELSE ST.[ --,ST.[DOB] --,ST.[Disability] ,ST.[CenterProgram]
  • 30. SQL Spatial Functions ● MSSQL Spatial – STIntersects – STContains – STDistance – STCentroid
  • 31. Tools Used ● SQL Server 2012 – Native Spatial Data / Geometry ● ArcGIS 10.1 – ArcGIS Server 10.2 ● FME Workbench ● PGModeler –
  • 32. Thank you! Matthew Baker Department of Planning and Analysis matthew_baker@dpsk12.org @MapBaker