SlideShare a Scribd company logo
1 of 48
Download to read offline
Matthew Baker
Denver Public Schools
The Spatial Database
Lessons from the Enterprise...and PostGIS
--View for "reverse" scatterplot--
create view Oct14ScatterES as (
Select
cast(row_number() over(order by O.ressch asc) as int) as OBJECTID
,cast(O.ResSch as int) as ResSch
,O.SchNum
,O.Students
,sch.ABBREVIATION
,sch.shape
from
(select
oct.RESSCH as ResSch
,oct.schNum as SchNum
,count(oct.STUDENTNUMBER) as Students
FROM [dpsdata].[OctoberCount_Archive] as Oct
where
oct.RESSCH <> '0'
and oct.adjGradeCrd in ('EC','00', '01', '02', '03', '04', '05')
and oct.Year = '2014'
group by ressch, schNum) as O
join [dpsdata].[Schools_Current] as sch
on sch.SCHNUM = O.SchNum
)
SELECT
fz.GEOID_BG
, fz.SBRegion
, count (case when oct.year = '2009' then 1 end) as [2009]
, count (case when oct.Year = '2010' then 1 end) as [2010]
, count (case when oct.Year = '2011' then 1 end) as [2011]
, count (case when oct.Year = '2012' then 1 end) as [2012]
, count (case when oct.Year = '2013' then 1 end) as [2013]
, count (case when oct.Year = '2014' then 1 end) as [2014]
FROM [dpsdata].[OctoberCount_Archive] as oct
join dpsdata.ForecastZones as fz on
oct.shape.STIntersects(fz.shape) = 1
where oct.Year >= '2009'
and oct.langbkgrd in ('spa', '1380')
group by fz.GEOID_BG, fz.SBRegion
Student EnterpriseGIS
ArcSDE
42 Tables
ArcSDE Back End (SQL Server)
> 100 'SDE' Tables
Versioning
- adds 3 more tables per versioned feature class
Spatial isn't special.*
Matthew Baker
Denver Public Schools
@mapBaker
mattbaker@gmail.com
Thank you!
Matthew Baker
Denver Public Schools
The Spatial Database
Lessons from the Enterprise...and PostGIS
Matthew Baker is the SR. GIS Analyst at Denver Public
Schools
--View for "reverse" scatterplot--
create view Oct14ScatterES as (
Select
cast(row_number() over(order by O.ressch asc) as int) as OBJECTID
,cast(O.ResSch as int) as ResSch
,O.SchNum
,O.Students
,sch.ABBREVIATION
,sch.shape
from
(select
oct.RESSCH as ResSch
,oct.schNum as SchNum
,count(oct.STUDENTNUMBER) as Students
FROM [dpsdata].[OctoberCount_Archive] as Oct
where
oct.RESSCH <> '0'
and oct.adjGradeCrd in ('EC','00', '01', '02', '03', '04', '05')
and oct.Year = '2014'
group by ressch, schNum) as O
join [dpsdata].[Schools_Current] as sch
on sch.SCHNUM = O.SchNum
)
SELECT
fz.GEOID_BG
, fz.SBRegion
, count (case when oct.year = '2009' then 1 end) as [2009]
, count (case when oct.Year = '2010' then 1 end) as [2010]
, count (case when oct.Year = '2011' then 1 end) as [2011]
, count (case when oct.Year = '2012' then 1 end) as [2012]
, count (case when oct.Year = '2013' then 1 end) as [2013]
, count (case when oct.Year = '2014' then 1 end) as [2014]
FROM [dpsdata].[OctoberCount_Archive] as oct
join dpsdata.ForecastZones as fz on
oct.shape.STIntersects(fz.shape) = 1
where oct.Year >= '2009'
and oct.langbkgrd in ('spa', '1380')
group by fz.GEOID_BG, fz.SBRegion
Student EnterpriseGIS
More details regarding this report-
The user can select a distance band
The user also selects whether or not to include students with multiple address or- only show
students with multiple addresses
The screenshot below shows students with addresses in the 5.1-10 mile band AND their
secondary addresses in other bands.   These are shown in yellow.  The rest of the
school population is in green.
What you don’t see- a grid of all the students fitting the conditions selected in the
dropdown.  The grid provides additional information such as address, attendance, exact
distance.  It could also include behavior, etc.  That data is available on the map with a
‘hover’ so that you can use the mouse to ‘hover’ over a dot and get all the information
about that student.
ArcSDE
42 Tables
ArcSDE Back End (SQL Server)
> 100 'SDE' Tables
Versioning
- adds 3 more tables per versioned feature class
Spatial isn't special.*
Matthew Baker
Denver Public Schools
@mapBaker
mattbaker@gmail.com
Thank you!

More Related Content

Similar to 2015 FOSS4G Track: The Spatial Database - Lessons from the Enterprise and PostGIS by Matthew Baker

Chris Mc Glothen Sql Portfolio
Chris Mc Glothen Sql PortfolioChris Mc Glothen Sql Portfolio
Chris Mc Glothen Sql Portfolioclmcglothen
 
Introduction to Oracle Spatial
Introduction to Oracle SpatialIntroduction to Oracle Spatial
Introduction to Oracle SpatialEhsan Hamzei
 
Avoiding Bad Database Surprises: Simulation and Scalability - Steven Lott
Avoiding Bad Database Surprises: Simulation and Scalability - Steven LottAvoiding Bad Database Surprises: Simulation and Scalability - Steven Lott
Avoiding Bad Database Surprises: Simulation and Scalability - Steven LottPyData
 
Air Quality in Taiwan 2013
Air Quality in Taiwan 2013 Air Quality in Taiwan 2013
Air Quality in Taiwan 2013 Kuang-Hao Cheng
 
Beyond Shuffling, Tips and Tricks for Scaling Apache Spark updated for Spark ...
Beyond Shuffling, Tips and Tricks for Scaling Apache Spark updated for Spark ...Beyond Shuffling, Tips and Tricks for Scaling Apache Spark updated for Spark ...
Beyond Shuffling, Tips and Tricks for Scaling Apache Spark updated for Spark ...Holden Karau
 
Data Exploration with Apache Drill: Day 2
Data Exploration with Apache Drill: Day 2Data Exploration with Apache Drill: Day 2
Data Exploration with Apache Drill: Day 2Charles Givre
 
Александр Додатко - Работа с датами в ObjectiveC и SQLite
Александр Додатко - Работа с датами в ObjectiveC и SQLiteАлександр Додатко - Работа с датами в ObjectiveC и SQLite
Александр Додатко - Работа с датами в ObjectiveC и SQLiteUA Mobile
 
Greg Lewis SQL Portfolio
Greg Lewis SQL PortfolioGreg Lewis SQL Portfolio
Greg Lewis SQL Portfoliogregmlewis
 
INFORMATIVE ESSAYThe purpose of the Informative Essay assignme.docx
INFORMATIVE ESSAYThe purpose of the Informative Essay assignme.docxINFORMATIVE ESSAYThe purpose of the Informative Essay assignme.docx
INFORMATIVE ESSAYThe purpose of the Informative Essay assignme.docxcarliotwaycave
 
Graph Database Query Languages
Graph Database Query LanguagesGraph Database Query Languages
Graph Database Query LanguagesJay Coskey
 
Sql Portfolio(March 31)
Sql Portfolio(March 31)Sql Portfolio(March 31)
Sql Portfolio(March 31)iceolated
 

Similar to 2015 FOSS4G Track: The Spatial Database - Lessons from the Enterprise and PostGIS by Matthew Baker (12)

Chris Mc Glothen Sql Portfolio
Chris Mc Glothen Sql PortfolioChris Mc Glothen Sql Portfolio
Chris Mc Glothen Sql Portfolio
 
Introduction to Oracle Spatial
Introduction to Oracle SpatialIntroduction to Oracle Spatial
Introduction to Oracle Spatial
 
Avoiding Bad Database Surprises: Simulation and Scalability - Steven Lott
Avoiding Bad Database Surprises: Simulation and Scalability - Steven LottAvoiding Bad Database Surprises: Simulation and Scalability - Steven Lott
Avoiding Bad Database Surprises: Simulation and Scalability - Steven Lott
 
Air Quality in Taiwan 2013
Air Quality in Taiwan 2013 Air Quality in Taiwan 2013
Air Quality in Taiwan 2013
 
Beyond Shuffling, Tips and Tricks for Scaling Apache Spark updated for Spark ...
Beyond Shuffling, Tips and Tricks for Scaling Apache Spark updated for Spark ...Beyond Shuffling, Tips and Tricks for Scaling Apache Spark updated for Spark ...
Beyond Shuffling, Tips and Tricks for Scaling Apache Spark updated for Spark ...
 
Data Exploration with Apache Drill: Day 2
Data Exploration with Apache Drill: Day 2Data Exploration with Apache Drill: Day 2
Data Exploration with Apache Drill: Day 2
 
Александр Додатко - Работа с датами в ObjectiveC и SQLite
Александр Додатко - Работа с датами в ObjectiveC и SQLiteАлександр Додатко - Работа с датами в ObjectiveC и SQLite
Александр Додатко - Работа с датами в ObjectiveC и SQLite
 
Greg Lewis SQL Portfolio
Greg Lewis SQL PortfolioGreg Lewis SQL Portfolio
Greg Lewis SQL Portfolio
 
INFORMATIVE ESSAYThe purpose of the Informative Essay assignme.docx
INFORMATIVE ESSAYThe purpose of the Informative Essay assignme.docxINFORMATIVE ESSAYThe purpose of the Informative Essay assignme.docx
INFORMATIVE ESSAYThe purpose of the Informative Essay assignme.docx
 
Statistical computing 03
Statistical computing 03Statistical computing 03
Statistical computing 03
 
Graph Database Query Languages
Graph Database Query LanguagesGraph Database Query Languages
Graph Database Query Languages
 
Sql Portfolio(March 31)
Sql Portfolio(March 31)Sql Portfolio(March 31)
Sql Portfolio(March 31)
 

More from GIS in the Rockies

GISCO Fall 2018: Bike Network Equity: A GIS and Qualitative Analysis of Ameri...
GISCO Fall 2018: Bike Network Equity: A GIS and Qualitative Analysis of Ameri...GISCO Fall 2018: Bike Network Equity: A GIS and Qualitative Analysis of Ameri...
GISCO Fall 2018: Bike Network Equity: A GIS and Qualitative Analysis of Ameri...GIS in the Rockies
 
GISCO Fall 2018: Colorado 811: Changes and Challenges – Brian Collison
GISCO Fall 2018: Colorado 811: Changes and Challenges – Brian CollisonGISCO Fall 2018: Colorado 811: Changes and Challenges – Brian Collison
GISCO Fall 2018: Colorado 811: Changes and Challenges – Brian CollisonGIS in the Rockies
 
GISCO Fall 2018: Senate Bill 18-167 and GIS – Dave Murray
GISCO Fall 2018: Senate Bill 18-167 and GIS – Dave MurrayGISCO Fall 2018: Senate Bill 18-167 and GIS – Dave Murray
GISCO Fall 2018: Senate Bill 18-167 and GIS – Dave MurrayGIS in the Rockies
 
2018 GIS in the Rockies Workshop: Coordinate Systems and Projections
2018 GIS in the Rockies Workshop: Coordinate Systems and Projections 2018 GIS in the Rockies Workshop: Coordinate Systems and Projections
2018 GIS in the Rockies Workshop: Coordinate Systems and Projections GIS in the Rockies
 
2018 GIS in Emergency Management: Denver Office of Emergency Management Overview
2018 GIS in Emergency Management: Denver Office of Emergency Management Overview2018 GIS in Emergency Management: Denver Office of Emergency Management Overview
2018 GIS in Emergency Management: Denver Office of Emergency Management OverviewGIS in the Rockies
 
2018 GIS in the Rockies Vendor Showcase (Th): The Data Driven Government
2018 GIS in the Rockies Vendor Showcase (Th): The Data Driven Government2018 GIS in the Rockies Vendor Showcase (Th): The Data Driven Government
2018 GIS in the Rockies Vendor Showcase (Th): The Data Driven GovernmentGIS in the Rockies
 
2018 GIS in the Rockies Vendor Showcase (Th): Solving Real World Issues With ...
2018 GIS in the Rockies Vendor Showcase (Th): Solving Real World Issues With ...2018 GIS in the Rockies Vendor Showcase (Th): Solving Real World Issues With ...
2018 GIS in the Rockies Vendor Showcase (Th): Solving Real World Issues With ...GIS in the Rockies
 
2018 GIS in the Rockies Vendor Showcase (Th): ERDAS Imagine What's New and Ti...
2018 GIS in the Rockies Vendor Showcase (Th): ERDAS Imagine What's New and Ti...2018 GIS in the Rockies Vendor Showcase (Th): ERDAS Imagine What's New and Ti...
2018 GIS in the Rockies Vendor Showcase (Th): ERDAS Imagine What's New and Ti...GIS in the Rockies
 
2018 GIS in the Rockies Vendor Showcase (Th): Building High Performance Gover...
2018 GIS in the Rockies Vendor Showcase (Th): Building High Performance Gover...2018 GIS in the Rockies Vendor Showcase (Th): Building High Performance Gover...
2018 GIS in the Rockies Vendor Showcase (Th): Building High Performance Gover...GIS in the Rockies
 
2018 GIS in Recreation: The Making of a Trail
2018 GIS in Recreation: The Making of a Trail2018 GIS in Recreation: The Making of a Trail
2018 GIS in Recreation: The Making of a TrailGIS in the Rockies
 
2018 GIS in Recreation: The Latest Trail Technology Crowdsourcing Maps and Apps
2018 GIS in Recreation: The Latest Trail Technology Crowdsourcing Maps and Apps2018 GIS in Recreation: The Latest Trail Technology Crowdsourcing Maps and Apps
2018 GIS in Recreation: The Latest Trail Technology Crowdsourcing Maps and AppsGIS in the Rockies
 
2018 GIS in the Rockies: Riparian Shrub Assessment of the Mancos River Canyon...
2018 GIS in the Rockies: Riparian Shrub Assessment of the Mancos River Canyon...2018 GIS in the Rockies: Riparian Shrub Assessment of the Mancos River Canyon...
2018 GIS in the Rockies: Riparian Shrub Assessment of the Mancos River Canyon...GIS in the Rockies
 
2018 GIS in Development: Partnerships Lead to Additional Recreational Content...
2018 GIS in Development: Partnerships Lead to Additional Recreational Content...2018 GIS in Development: Partnerships Lead to Additional Recreational Content...
2018 GIS in Development: Partnerships Lead to Additional Recreational Content...GIS in the Rockies
 
2018 GIS in Recreation: Adding Value to Colorado the Beautiful Initiative carr
2018 GIS in Recreation: Adding Value to Colorado the Beautiful Initiative carr2018 GIS in Recreation: Adding Value to Colorado the Beautiful Initiative carr
2018 GIS in Recreation: Adding Value to Colorado the Beautiful Initiative carrGIS in the Rockies
 
2018 GIS in Recreation: A Creek Runs Through It
2018 GIS in Recreation: A Creek Runs Through It2018 GIS in Recreation: A Creek Runs Through It
2018 GIS in Recreation: A Creek Runs Through ItGIS in the Rockies
 
2018 GIS in Recreation: Virtually Touring the National Trails
2018 GIS in Recreation: Virtually Touring the National Trails2018 GIS in Recreation: Virtually Touring the National Trails
2018 GIS in Recreation: Virtually Touring the National TrailsGIS in the Rockies
 
2018 GIS in the Rockies PLSC Track: Turning Towards the Future
2018 GIS in the Rockies PLSC Track: Turning Towards the Future2018 GIS in the Rockies PLSC Track: Turning Towards the Future
2018 GIS in the Rockies PLSC Track: Turning Towards the FutureGIS in the Rockies
 
2018 GIS in the Rockies PLSC: Intro to PLSS
2018 GIS in the Rockies PLSC: Intro to PLSS2018 GIS in the Rockies PLSC: Intro to PLSS
2018 GIS in the Rockies PLSC: Intro to PLSSGIS in the Rockies
 
2018 GIS in the Rockies PLSC Track: Grid to Ground NATRF2022
2018 GIS in the Rockies PLSC Track: Grid to Ground NATRF20222018 GIS in the Rockies PLSC Track: Grid to Ground NATRF2022
2018 GIS in the Rockies PLSC Track: Grid to Ground NATRF2022GIS in the Rockies
 
2018 GIS in Development: USGS and Citizen Science Success and Enhancements fo...
2018 GIS in Development: USGS and Citizen Science Success and Enhancements fo...2018 GIS in Development: USGS and Citizen Science Success and Enhancements fo...
2018 GIS in Development: USGS and Citizen Science Success and Enhancements fo...GIS in the Rockies
 

More from GIS in the Rockies (20)

GISCO Fall 2018: Bike Network Equity: A GIS and Qualitative Analysis of Ameri...
GISCO Fall 2018: Bike Network Equity: A GIS and Qualitative Analysis of Ameri...GISCO Fall 2018: Bike Network Equity: A GIS and Qualitative Analysis of Ameri...
GISCO Fall 2018: Bike Network Equity: A GIS and Qualitative Analysis of Ameri...
 
GISCO Fall 2018: Colorado 811: Changes and Challenges – Brian Collison
GISCO Fall 2018: Colorado 811: Changes and Challenges – Brian CollisonGISCO Fall 2018: Colorado 811: Changes and Challenges – Brian Collison
GISCO Fall 2018: Colorado 811: Changes and Challenges – Brian Collison
 
GISCO Fall 2018: Senate Bill 18-167 and GIS – Dave Murray
GISCO Fall 2018: Senate Bill 18-167 and GIS – Dave MurrayGISCO Fall 2018: Senate Bill 18-167 and GIS – Dave Murray
GISCO Fall 2018: Senate Bill 18-167 and GIS – Dave Murray
 
2018 GIS in the Rockies Workshop: Coordinate Systems and Projections
2018 GIS in the Rockies Workshop: Coordinate Systems and Projections 2018 GIS in the Rockies Workshop: Coordinate Systems and Projections
2018 GIS in the Rockies Workshop: Coordinate Systems and Projections
 
2018 GIS in Emergency Management: Denver Office of Emergency Management Overview
2018 GIS in Emergency Management: Denver Office of Emergency Management Overview2018 GIS in Emergency Management: Denver Office of Emergency Management Overview
2018 GIS in Emergency Management: Denver Office of Emergency Management Overview
 
2018 GIS in the Rockies Vendor Showcase (Th): The Data Driven Government
2018 GIS in the Rockies Vendor Showcase (Th): The Data Driven Government2018 GIS in the Rockies Vendor Showcase (Th): The Data Driven Government
2018 GIS in the Rockies Vendor Showcase (Th): The Data Driven Government
 
2018 GIS in the Rockies Vendor Showcase (Th): Solving Real World Issues With ...
2018 GIS in the Rockies Vendor Showcase (Th): Solving Real World Issues With ...2018 GIS in the Rockies Vendor Showcase (Th): Solving Real World Issues With ...
2018 GIS in the Rockies Vendor Showcase (Th): Solving Real World Issues With ...
 
2018 GIS in the Rockies Vendor Showcase (Th): ERDAS Imagine What's New and Ti...
2018 GIS in the Rockies Vendor Showcase (Th): ERDAS Imagine What's New and Ti...2018 GIS in the Rockies Vendor Showcase (Th): ERDAS Imagine What's New and Ti...
2018 GIS in the Rockies Vendor Showcase (Th): ERDAS Imagine What's New and Ti...
 
2018 GIS in the Rockies Vendor Showcase (Th): Building High Performance Gover...
2018 GIS in the Rockies Vendor Showcase (Th): Building High Performance Gover...2018 GIS in the Rockies Vendor Showcase (Th): Building High Performance Gover...
2018 GIS in the Rockies Vendor Showcase (Th): Building High Performance Gover...
 
2018 GIS in Recreation: The Making of a Trail
2018 GIS in Recreation: The Making of a Trail2018 GIS in Recreation: The Making of a Trail
2018 GIS in Recreation: The Making of a Trail
 
2018 GIS in Recreation: The Latest Trail Technology Crowdsourcing Maps and Apps
2018 GIS in Recreation: The Latest Trail Technology Crowdsourcing Maps and Apps2018 GIS in Recreation: The Latest Trail Technology Crowdsourcing Maps and Apps
2018 GIS in Recreation: The Latest Trail Technology Crowdsourcing Maps and Apps
 
2018 GIS in the Rockies: Riparian Shrub Assessment of the Mancos River Canyon...
2018 GIS in the Rockies: Riparian Shrub Assessment of the Mancos River Canyon...2018 GIS in the Rockies: Riparian Shrub Assessment of the Mancos River Canyon...
2018 GIS in the Rockies: Riparian Shrub Assessment of the Mancos River Canyon...
 
2018 GIS in Development: Partnerships Lead to Additional Recreational Content...
2018 GIS in Development: Partnerships Lead to Additional Recreational Content...2018 GIS in Development: Partnerships Lead to Additional Recreational Content...
2018 GIS in Development: Partnerships Lead to Additional Recreational Content...
 
2018 GIS in Recreation: Adding Value to Colorado the Beautiful Initiative carr
2018 GIS in Recreation: Adding Value to Colorado the Beautiful Initiative carr2018 GIS in Recreation: Adding Value to Colorado the Beautiful Initiative carr
2018 GIS in Recreation: Adding Value to Colorado the Beautiful Initiative carr
 
2018 GIS in Recreation: A Creek Runs Through It
2018 GIS in Recreation: A Creek Runs Through It2018 GIS in Recreation: A Creek Runs Through It
2018 GIS in Recreation: A Creek Runs Through It
 
2018 GIS in Recreation: Virtually Touring the National Trails
2018 GIS in Recreation: Virtually Touring the National Trails2018 GIS in Recreation: Virtually Touring the National Trails
2018 GIS in Recreation: Virtually Touring the National Trails
 
2018 GIS in the Rockies PLSC Track: Turning Towards the Future
2018 GIS in the Rockies PLSC Track: Turning Towards the Future2018 GIS in the Rockies PLSC Track: Turning Towards the Future
2018 GIS in the Rockies PLSC Track: Turning Towards the Future
 
2018 GIS in the Rockies PLSC: Intro to PLSS
2018 GIS in the Rockies PLSC: Intro to PLSS2018 GIS in the Rockies PLSC: Intro to PLSS
2018 GIS in the Rockies PLSC: Intro to PLSS
 
2018 GIS in the Rockies PLSC Track: Grid to Ground NATRF2022
2018 GIS in the Rockies PLSC Track: Grid to Ground NATRF20222018 GIS in the Rockies PLSC Track: Grid to Ground NATRF2022
2018 GIS in the Rockies PLSC Track: Grid to Ground NATRF2022
 
2018 GIS in Development: USGS and Citizen Science Success and Enhancements fo...
2018 GIS in Development: USGS and Citizen Science Success and Enhancements fo...2018 GIS in Development: USGS and Citizen Science Success and Enhancements fo...
2018 GIS in Development: USGS and Citizen Science Success and Enhancements fo...
 

Recently uploaded

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 

Recently uploaded (20)

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 

2015 FOSS4G Track: The Spatial Database - Lessons from the Enterprise and PostGIS by Matthew Baker

  • 1. Matthew Baker Denver Public Schools The Spatial Database Lessons from the Enterprise...and PostGIS
  • 2.
  • 3.
  • 4. --View for "reverse" scatterplot-- create view Oct14ScatterES as ( Select cast(row_number() over(order by O.ressch asc) as int) as OBJECTID ,cast(O.ResSch as int) as ResSch ,O.SchNum ,O.Students ,sch.ABBREVIATION ,sch.shape from (select oct.RESSCH as ResSch ,oct.schNum as SchNum ,count(oct.STUDENTNUMBER) as Students FROM [dpsdata].[OctoberCount_Archive] as Oct where oct.RESSCH <> '0' and oct.adjGradeCrd in ('EC','00', '01', '02', '03', '04', '05') and oct.Year = '2014' group by ressch, schNum) as O join [dpsdata].[Schools_Current] as sch on sch.SCHNUM = O.SchNum )
  • 5.
  • 6. SELECT fz.GEOID_BG , fz.SBRegion , count (case when oct.year = '2009' then 1 end) as [2009] , count (case when oct.Year = '2010' then 1 end) as [2010] , count (case when oct.Year = '2011' then 1 end) as [2011] , count (case when oct.Year = '2012' then 1 end) as [2012] , count (case when oct.Year = '2013' then 1 end) as [2013] , count (case when oct.Year = '2014' then 1 end) as [2014] FROM [dpsdata].[OctoberCount_Archive] as oct join dpsdata.ForecastZones as fz on oct.shape.STIntersects(fz.shape) = 1 where oct.Year >= '2009' and oct.langbkgrd in ('spa', '1380') group by fz.GEOID_BG, fz.SBRegion
  • 8.
  • 9.
  • 10.
  • 12. ArcSDE Back End (SQL Server) > 100 'SDE' Tables Versioning - adds 3 more tables per versioned feature class
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 24. Matthew Baker Denver Public Schools @mapBaker mattbaker@gmail.com Thank you!
  • 25. Matthew Baker Denver Public Schools The Spatial Database Lessons from the Enterprise...and PostGIS Matthew Baker is the SR. GIS Analyst at Denver Public Schools
  • 26.
  • 27.
  • 28. --View for "reverse" scatterplot-- create view Oct14ScatterES as ( Select cast(row_number() over(order by O.ressch asc) as int) as OBJECTID ,cast(O.ResSch as int) as ResSch ,O.SchNum ,O.Students ,sch.ABBREVIATION ,sch.shape from (select oct.RESSCH as ResSch ,oct.schNum as SchNum ,count(oct.STUDENTNUMBER) as Students FROM [dpsdata].[OctoberCount_Archive] as Oct where oct.RESSCH <> '0' and oct.adjGradeCrd in ('EC','00', '01', '02', '03', '04', '05') and oct.Year = '2014' group by ressch, schNum) as O join [dpsdata].[Schools_Current] as sch on sch.SCHNUM = O.SchNum )
  • 29.
  • 30. SELECT fz.GEOID_BG , fz.SBRegion , count (case when oct.year = '2009' then 1 end) as [2009] , count (case when oct.Year = '2010' then 1 end) as [2010] , count (case when oct.Year = '2011' then 1 end) as [2011] , count (case when oct.Year = '2012' then 1 end) as [2012] , count (case when oct.Year = '2013' then 1 end) as [2013] , count (case when oct.Year = '2014' then 1 end) as [2014] FROM [dpsdata].[OctoberCount_Archive] as oct join dpsdata.ForecastZones as fz on oct.shape.STIntersects(fz.shape) = 1 where oct.Year >= '2009' and oct.langbkgrd in ('spa', '1380') group by fz.GEOID_BG, fz.SBRegion
  • 32.
  • 33.
  • 34. More details regarding this report- The user can select a distance band The user also selects whether or not to include students with multiple address or- only show students with multiple addresses The screenshot below shows students with addresses in the 5.1-10 mile band AND their secondary addresses in other bands.   These are shown in yellow.  The rest of the school population is in green. What you don’t see- a grid of all the students fitting the conditions selected in the dropdown.  The grid provides additional information such as address, attendance, exact distance.  It could also include behavior, etc.  That data is available on the map with a ‘hover’ so that you can use the mouse to ‘hover’ over a dot and get all the information about that student.
  • 36. ArcSDE Back End (SQL Server) > 100 'SDE' Tables Versioning - adds 3 more tables per versioned feature class
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 48. Matthew Baker Denver Public Schools @mapBaker mattbaker@gmail.com Thank you!