SlideShare une entreprise Scribd logo
1  sur  32
Télécharger pour lire hors ligne
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

Contenu connexe

Similaire à 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
 

Similaire à 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
 

Plus 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
 

Plus 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
 

Dernier

Dernier (20)

Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
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
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 

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