foss4g2006 - free and open source software for geoinformatics caio nakashima september - 2006
DESCRIPTION
M inistry of Social Development and Fight Against Hunger MDS. Mapserver technology supports the Data Warehouse of Actions and Investments of the Brazilian Ministry for Social Development and Fight Against Hunger. FOSS4G2006 - Free And Open Source Software for Geoinformatics Caio Nakashima - PowerPoint PPT PresentationTRANSCRIPT
Mapserver technology supports the Data Warehouse of Actions and Investments of
the Brazilian Ministry for Social Development and Fight Against Hunger
FOSS4G2006 - Free And Open Source Software for Geoinformatics
Caio Nakashima
September - 2006
Ministry of Social Development and Fight Against Hunger
MDS
September 2006 Caio Nakashima2
Agenda
Introduction to the Problems
Chosen path
Developed products
Used Technologies
Details of the solutions
Future
September 2006 Caio Nakashima3
MDS Current Scenario
MDS is an almagamation of previous separated MinistriesLow interoperabilityMany stakeholders (banks, federation members, partners)Formal Links (by law, contracts, agreements)Need for na agile information to the publicDifferent paradigms (concepts, modus operandi)
September 2006 Caio Nakashima4
SAGI
Scenario: Organizacional Aspects (Aspecto Organizacional)
SENARC
CEF
SNAS
DATAPREV
IBGE
TSE
SESAN
CONAB ASA
SAIP
NI
NI NI
NI
NI
SECEX-SecAdj-Gabinete
CGI
CIf
Cadunico
September 2006 Caio Nakashima5
Social Information Matrix DATA FLOW
SIG SAGI
(M&A)
SIG SENARC
SIG SNAS
SIG SESAN
SIG SAIP
DW
SAGI
Social
MI
Gabinete
Sec Exec.
September 2006 Caio Nakashima6
Information Arquitecture
Beneficiary
Territory
Social Programs
B
P
T
P
P1
P2
Pn
T
B
Program: xxxxx
B1 nnnnnnnn add
B2 nnnnnnnn add
.............................
Bn nnnnnnnnn add
September 2006 Caio Nakashima7
Subsystem Integration
Beneficiary
Territory
Social Programs
B
P
T
P
P1
P2
Pn
T
B
Program: xxxxx
B1 nnnnnnnn add
B2 nnnnnnnn add
.............................
Bn nnnnnnnnn add
SOCIAL DATA
DICTIONARY
September 2006 Caio Nakashima8
Benefits
Reduced response time to queries from hours and days to minutes and seconds
Information access comprehensive to the whole MDS
Extracting Business Intelligence to help programs Managers
Recording the historical data from the programs
Registering knowledge to be used as information source
September 2006 Caio Nakashima9
Introduction to the Problems
The managers of the institution Ministry, Secretaries, Directors Majors, Congress people, Senators, Governors Press, Civil Society
The need for information from MDS (Ministry of Social Development and Fight Against Hunger)
About Social Programs, Beneficiaries, Investments, and so on.
September 2006 Caio Nakashima10
Problems
There was not a solid information structure
Each department manage their own data, in their own way.
There was not a regular information flow between those departments.
The urgently need for management reports.
September 2006 Caio Nakashima11
Scenario
Spreadsheet
DATAPREV
CONAB
TRE
Tesouro NacionalCaixa Econômica
Federal
REPORTS
PNUDIBGE
September 2006 Caio Nakashima12
Chosen path
After much pressure and work in manual reports.
We developed a private data warehouse only for internal use.
External Help Secretaries Support
Barriers Pressure against changes
September 2006 Caio Nakashima13
Social Information Data Warehouse
Allows to retrieve information about the investments on Social Programs in each city.
With the following dimensions: Search Items Geographic Units
Territorial Limits Population IDH (Human Development Index)
Time
First Screen
September 2006 Caio Nakashima15
Select the desired period
September 2006 Caio Nakashima16
Select the variable and Indicators
September 2006 Caio Nakashima17
Select the territory and other filter as Population and HDI
September 2006 Caio Nakashima18
Result in spreadsheet form
September 2006 Caio Nakashima19
Result in card form.Each card per municipality
September 2006 Caio Nakashima20
Another Way to Search Data
Viewing data through social program
Georeferenced Data
Graphics
Bolsa Família coverage
September 2006 Caio Nakashima22
September 2006 Caio Nakashima23
Map Viewer Structure
Viewing Area(variable)
Title (variable)
Analysis Time (variable)
Title (variable)
Legend(variable)
Number of registers(variable)
Functionalities (invariable)
Selection of a special area of some social program (Bolsa Familia Program in the
area of Sao Francisco River)
September 2006 Caio Nakashima25
Some features of Map Engine
September 2006 Caio Nakashima27
Legend and Layer Control
Alow change the Interval
Turn on or Turn off the Interval
The Color of the Interval
September 2006 Caio Nakashima28
Example of some changes
September 2006 Caio Nakashima29
The Color Pallete
September 2006 Caio Nakashima31
The Color Pallet
Map Color
Border Color
Label Color
September 2006 Caio Nakashima32
September 2006 Caio Nakashima33
Retrieve Spatial Information
September 2006 Caio Nakashima35
Box to bound the search
September 2006 Caio Nakashima36
Search Result
Show the selected geographic area All geographic regions that touch or are inside the
boundaries of the box.
It will open a window with all chosen geographic regions with: The values used to build the map. Link to details of the geographic information. Link to graphic when applied Link to find the location of the region in map.
September 2006 Caio Nakashima37
Search through the map
September 2006 Caio Nakashima39
September 2006 Caio Nakashima40
Result of the search through the map
The chosen region is highlighted It will open a link for the detail of the selected geographic region.Link for the graphics, where they show the evolution of the variable or indicator presented along the time.The values of the variable or indicator of all cities on the borders of the chosen geographic area.
Analysis through graphics
Example: Values of the financial help and the amount of beneficiaries
through the time of Bolsa Família
September 2006 Caio Nakashima42
List of all values that represented in map
September 2006 Caio Nakashima43
Amount of financialhelp.
Amount of families(beneficiaries) ofBolsa Familia
September 2006 Caio Nakashima44
Graphic of financial help foreach family
Combination of two graphics
September 2006 Caio Nakashima45
Comparing two or more geographic areas
This feature allows a comparative analysis between up to three geographic regions.
The selection can be done through geographic bound or close analysis values.
September 2006 Caio Nakashima46
Comparing the amount of financial help
September 2006 Caio Nakashima47
Comparing the financial help for each family
September 2006 Caio Nakashima48
HistogramFinancial Value Transferred to the cities of Bolsa Familia Program
September 2006 Caio Nakashima49
Histogram
Mean value transferred to each family of Bolsa Familia Program in august 2006.
September 2006 Caio Nakashima50
Pen Parade Graphic
Financial Value Transferred to the cities.
Graphic of 100% of the distribution
September 2006 Caio Nakashima51
Pen Parade Graphic
Financial Value Transferred to the cities.
Graphic of 90% of the distribution
September 2006 Caio Nakashima52
System Integration
From Georeferenced view is possible to access other information about cities in the data warehouse.
Example PETI Bolsa – Financial Help for the Cities in
October 2005. PETI – Program Against Child Labour
September 2006 Caio Nakashima53
September 2006 Caio Nakashima54
September 2006 Caio Nakashima55
September 2006 Caio Nakashima56
Data Source, Social Program
Variable or Indicator Choice
Period Choice
Data Searcher
Knowledge Base
Information OrganizerMap
Viewer Engine
User Interaction
Structure of the Solution
September 2006 Caio Nakashima57
Ways to feed the map engine
Build the query manually.
Read the structure of data from database and show the result of the query in a map.
User can build the query from available data in data warehouse.
September 2006 Caio Nakashima58
Map Engine Configuration
<? /****************************************************************************** Database conection *******************************************************************************/ // IBM Server $mapas_host = "10.68.12.245"; $mapas_port = "5432"; $mapas_dbname = "MI_2005_2006"; $mapas_user = "username"; $mapas_password = "password"; /****************************************************************************** Files path *******************************************************************************/ $mapas_imagePath = "/dados/guilherme/www/projetoMZ/tmp_img/"; $mapas_url = "tmp_img/"; $mapas_ajaxURL = "/mi/projetoMZ/ajaxBusca.php";?>
September 2006 Caio Nakashima59
Data Base of the Solution
Shape Files
DataSocial Programs
Data
Configuration
Files
Data Warehouse Viewer
Social Table
Information Request
SQL Text
Social Program
Table
September 2006 Caio Nakashima60
Data Base of the Solution
Shape Files
DataSocial Programs
Data
Configuration
Files
Information Request
Social Map Viewer
Engine
SQL Spatial
Social Program Table
and Spatial Table
September 2006 Caio Nakashima61
Data Base of the Solution
Shape Files
DataSocial Programs
Data
Configuration
Files
Data Warehouse Viewer
Social Table
Information Request
SQL Text
Social Program
Table
Social Map Viewer
Engine
SQL Spatial
Social Program Table
and Spatial Table
September 2006 Caio Nakashima62
Build the Query Manually
September 2006 Caio Nakashima63
Read the structure of data
September 2006 Caio Nakashima64
September 2006 Caio Nakashima65
User building the query
Used Technologies
September 2006 Caio Nakashima67
PostGreSQLPostGis
Aplication ServerApache (WEB Server)
PHP (4.x)MN MapserverPHP MapScript
ClientBrowser
IExplorer, Firefox, Mozilla
Jbox (Java)JavaScript
Technologies
September 2006 Caio Nakashima68
Development
Browser used for the tests IExplorer and FireFox.
It is required the installation of Java Virtual Machine in the client browser. JBox requires JVM.
Development Language PHP 4.x PHP MapScript until 2005 June was not compiled to PHP
version 5
MN MapServer does not require PHP MapScript It was used to give more flexibility to the application.
September 2006 Caio Nakashima69
Future tasks
Tuning the database retrieve time for each queries.
Create new user maps
Develop a Graphic Interface to insert new maps
Improve the user interface
CD with the solutio
September 2006 Caio Nakashima70
Questions
Thank You Very Much
Caio Nakashima [email protected] [email protected] www.mds.gov.br
Staff Caio Nakashima (Map Viewer) Carlos Eduardo de Andrade Brasileiro (DBA) Marcelo Gomes Gadelha (Data Warehouse Viewer)