SlideShare una empresa de Scribd logo
1 de 38
Descargar para leer sin conexión
Senegalese land register modernization through
            OpenSource softwares.
              The PAMOCA Project

                    Gérald Fenoy
               gerald.fenoy@geolabs.fr


                  GeoLabs SARL

                  FOSS4G - 2008
Senegalese land register modernization through
            OpenSource softwares.
                           The PAMOCA Project
What does the P.A.MO.CA means ?
Goals of this project what they get and what we provide
  A brief history and overview of actors involved in this project
A brief presentation of the GeoLive VS platform used to implement the
whole solution
The way we use to achieve those goals : mixing OOCMS + MapJax
  An overview of the OOCMS solution (an easy way to list, edit and output complexe documents)
  Tables and listing of its content :
    An overview of the templating system using Smarty + XML
  Tuples creation, edition, supression and their references :
    An overview of the process specifying how to edit fields through XML
    and using the OpenOffice templating system to create customized
    HTML forms
  Tuples output as document :
    An overview of the XML + OpenOffice templating system involved to
    output complex documents
Senegalese land register modernization through
            OpenSource softwares.
                       The PAMOCA Project
 An overview of the MapJax solution to easily manage and display your GIS
 data :
   The concept of « project »
   Creating a new project (one way to speed up the configuration of a new project)
   Creating and using the OpenOffice templating system from MapJax
   An automated way to deploy OGC webservices through MapServer
   Producing a tiles cache using TileCache and automated creation of an
   embeded win32 HTML Application (HTA) to dispay and query layers

Conclusion and perspectives
Senegalese land register modernization through
            OpenSource softwares.
                    The PAMOCA Project
                     What does the P.A.MO.CA means ?




 The P.A.MO.CA stand for (in french) :
   Projet d'Appuis à la MOdernisation du Cadastre


 Which could be translated by :

            Support Project to Cadastre Modernization
Senegalese land register modernization through
            OpenSource softwares.
                       The PAMOCA Project
             A brief history and overview of actors involved in this project


The P.A.MO.CA project was started the year 2006 by the DGID (which
means Direction Général des Impôts et des Domaines = Executive Office of
taxes and fields).

The project funding was made by both :


 the ADB (African Development Bank)

 +

 the European Community
Senegalese land register modernization through
            OpenSource softwares.
                        The PAMOCA Project
              A brief history and overview of actors involved in this project


a special group of DGID's experts was created to manage and pass
contracts with non gouvernemental companies specialized in the real
estate field. The director of this group was and still be : Mame Ounta FALL.

they chose the real estate experts agency called cabinet SADY & THIAM, a
company created in 1984, to handle and manage the first part of the
gouvernemental project which was called : the monograph of the
references buildings.

finally this part of the project started by the end of the year 2006.

by the end of the year 2007, the GeoLabs SARL was contracted by this
agency to implement a web-based solution of this monograph.
Senegalese land register modernization through
            OpenSource softwares.
                       The PAMOCA Project
             A brief history and overview of actors involved in this project


Since 2006 there was a lot of investigations made by the members of the
real estate experts agency to locate and investigate the most
representative houses and builldings in the whole Senegal country.



The investigations was made by 15 different senegalease specialists which
was first formed by Cherif THIAM during a couple of months.
Senegalese land register modernization through
            OpenSource softwares.
                        The PAMOCA Project
                 The goals of this project (What they get and what we provide)




The material provided to make the investigations was pretty simple :

 a 5 meter wire to take mesures,
 an A3 printed paper with complexe arrays containing so many fields.
 Some have to be filed during the investigation with relevant informations
 like for exemple number of : parts, living room, rooms with area larger
 than 9 m2 and so on, but some don't have to be filled,
 a pen to fill the paper,
 a printed map representing the location of the parcel,
 a digital camera to take a picture of the frontage of the house or the
 building.
Senegalese land register modernization through
            OpenSource softwares.
                          The PAMOCA Project
                   The goals of this project (What they get and what we provide)

The result of the investigations made was :

 a partially filled investigation file,
 a printed map of the parcel's location colored by hand,
 a hand-made plan which was digitized using AutoCad™ by some other
 specialists of the SADY & THIAM cabinet, 30 persons was contracted to
 manage this task,
 a picture of the frontage.


  So at the begining we get at least 2 files usable “as-is” into the informations system :
                       the AutoCad™ plan and the picture !!
Senegalese land register modernization through
            OpenSource softwares.
                          The PAMOCA Project
                   The goals of this project (What they get and what we provide)
What we finally provide to manage data resulting of the investigations :
  A GNU/Linux system we've called GeoLive VS 1.0, runing on two IBM X Series
  servers to host the solution,
  An ECM system called OOCMS to manage the results of the investigations made
  and also for the futur ones
  A Web-GIS solution called MapJax to manage GIS data and locating
  investigations.
Both of this projects got a specific Trac system to handle source code, share ideas
and bug report available on :
  http://geolive.cartography.st
  http://oocms.cartography.st
  http://www.mapjax.org/mapjax/
Senegalese land register modernization through
            OpenSource softwares.
                            The PAMOCA Project
      A brief presentation of the GeoLive VS platform used to implement the whole solution


At the beginning the GeoLive environment was a simple « chrootable » system
which was based on the Gentoo™ Linux distribution and which could be embeded
into every kind of already existing GNU/Linux system. It let us deployed our
solutions efficiently in the past for lot of our clients. It contains everything we have
to be installed for our applications to run. The idea of a chrootable system provided
its relevance so we keep this in place and make it evolve over the versions of the
main free softwares we used.
For another project, we had to provide the same kind of solution but including also
the host system, so we decided to use the Gentoo™ VirtualServer solution.
Then on this first base (installed on two IBM X Series servers) we've created our
solution that we called GeoLive VS 1.0 which run since some time and prove its
stability.
Senegalese land register modernization through
            OpenSource softwares.
                           The PAMOCA Project
     A brief presentation of the GeoLive VS platform used to implement the whole solution


As we already get a system and an architecture on which it ran well since
some time we decided with the PAMOCA direction and the SADY & THIAM
cabinet to buy two IBM X Series servers, one for the development phase
and the agency activity and another one for the integration into the DGID
network.

This way to deploy our solution and OS softwares required we only have to
synchronize the new servers from the development server to the new one.
Senegalese land register modernization through
            OpenSource softwares.
                         The PAMOCA Project
            The way we use to achieve those goals : coupling OOCMS + MapJax


In the past GeoLabs based lot of their solutions on two products which are :

    OOCMS : used when we have to create informations systems to manage
    documents production or flow of data where some different people could
    interact each other in the edition process
    and
    MapJax : used as a base solution to easily create our own specific GIS
    applications.
Both of this softwares use the MetaJS library which is available on GoogleCode.
Senegalese land register modernization through
            OpenSource softwares.
                           The PAMOCA Project
 An overview of the OOCMS solution (an easy way to list, edit and output complexe documents)


   OOCMS is a web application, implemented in PHP, which let you
   manage and produce complex documents on the fly through an
   OpenOffice server. The web application communicate with this server
   using the U.N.O API (Universal Network Object) and more precisely its
   Python implementation.

   Data was stored in a PostgreSQL/MySQL database.

   As the “GIS data awareness” of OOCMS is brand new, it was only
   implemented for PostGIS currently (so to manage both your GIS data
   and standard ones you have to use a PostgreSQL database).
Senegalese land register modernization through
            OpenSource softwares.
                      The PAMOCA Project
                         Tables and listing of its content


  PostgreSQL tables could be made available to any group of users of an OOCMS
  application. This way users, depending on their rights affected to their group,
  could made creation, modifications, suppression and production of documents.
  To make a table available to the application's users, you have to create a
  directory with the same name as the table into the docs/local/tables/ path of
  the OOCMS intallation, create an XML files to configure what informations the
  system have to display to the users from the data stored in the table. Here you
  are able to use any kind of SQL statement or php code you need.
  Then you have to write or use the default Smarty template which let you tell the
  system how the « listing view » have to be displayed.
Senegalese land register modernization through
                   OpenSource softwares.
                                  The PAMOCA Project
                         An overview of the templating system using Smarty + XML




                            + a table to display


  An XML file to set what to display
                  +




                                                         The Resulting « Listing View » in action


A Smarty template to set how to display
           (XHTML+PHP)
Senegalese land register modernization through
               OpenSource softwares.
                          The PAMOCA Project
                        Tuples creation, edition and their references

 When you want to grant the write access to a specific group of users you
have to create a workflow.xml file. In this file you tell the system who could edit
what and when. So there is an XML block for each step containing the group
and each field which could be filed.

 After creating this XML file you have to create an OpenOffice template which
will be used to display the HTML form to the end user. We provide an
administration interface to integrate such templates into the system.

 So, in the workflow.xml file you have to set for each step :

   What have to be edited and what kind of field it is.
   Which group have the rights to edit.
   Which OpenOffice template to use to display the HTML form to the end
   user.
Senegalese land register modernization through
             OpenSource softwares.
                          The PAMOCA Project
                        Tuples creation, edition and their references




The workflow.xml file
Senegalese land register modernization through
               OpenSource softwares.
                            The PAMOCA Project
                          Tuples creation, edition and their references




The OpenOffice template
Senegalese land register modernization through
                OpenSource softwares.
                           The PAMOCA Project
                         Tuples creation, edition and their references




The HTML form produced
Senegalese land register modernization through
            OpenSource softwares.
                  The PAMOCA Project
         Tuples creation, edition and the same for their references




                   The workflow.xml file with only
                     the step 6 block displayed
Senegalese land register modernization through
                OpenSource softwares.
                               The PAMOCA Project
                      Tuples creation, edition and the same for their references




The workflow.xml file with only
  the step 6 block displayed




                             OpenOffice template used to produce the HTML form on step 6
Senegalese land register modernization through
                 OpenSource softwares.
                                  The PAMOCA Project
                       Tuples creation, edition and the same for their references




The workflow.xml file with only
  the step 6 block displayed




     OpenOffice template
used to produce the HTML form                         The resulting edition HTML form
           on step 6                                produced by the OOCMS application
Senegalese land register modernization through
                 OpenSource softwares.
                              The PAMOCA Project
                            Tuples creation, edition and their references




        The workflow.xml file with only
                                                                                  ...
          the step 6 block displayed



                      ...
OpenOffice template          OpenOffice template
    for step 1                   for step 6
                                                                     The resulting edition HTML form
                                                                   produced by the OOCMS application
Senegalese land register modernization through
               OpenSource softwares.
                          The PAMOCA Project
                              Tuples output as documents

    Everytime you update an entry in a table, there is a trigger which inform the
system that it have to produce a new document. So in some sens we maintain
a cache of produced document.

    As before, to be able to output a full filled document you only have to create
an XML file and its associated OpenOffice template to specify what you want to
display in your restitution document.
Senegalese land register modernization through
            OpenSource softwares.
                      The PAMOCA Project
                        Tuples output as documents




The output.xml file
Senegalese land register modernization through
             OpenSource softwares.
                          The PAMOCA Project
                            Tuples output as documents




The OpenOffice Template
Senegalese land register modernization through
                OpenSource softwares.
                        The PAMOCA Project
                          Tuples output as documents




The produced document
Senegalese land register modernization through
               OpenSource softwares.
                              The PAMOCA Project
           An overview of the MapJax solution to easily manage and display your GIS data




MapJax is a Web-GIS solution easy to deploy. It provides lot of functionalities :
integrating your data in a PostGIS database, metadata edition, deploying WMS/WFS
webservices on demand (through MapServer), create/edit/delete layers, create
different cache of tiles (using tilecache) to use in an automaticaly produced HTA
application, upload your own OpenOffice template to output map in PDF or other
formats supported by OpenOffice and more ...
Senegalese land register modernization through
               OpenSource softwares.
                          The PAMOCA Project
                               The concept of « project »

A MapJax project is an instance of the web interface. It contains the layers
definition, datasources, symbols, fonts, legend, list of users able to access the
application, its own OpenOffice templates, keymap, spatial queries definitions
the web application have to provide and so on ...

From a PostgreSQL point of view a project is also a schema (namepace).

For the PAMOCA project, data provided by the DGID was in ShapeFile format.
For each cities where investigations took place, the data were structured like
this :

   Buildings
   Parcels
   Cadastral sections
   Roads
Senegalese land register modernization through
               OpenSource softwares.
                               The PAMOCA Project
           Creating a new project (one way to speed up the configuration of a new projects)
We decided to create a project for each investigated cities...
As I told you, data was allready structured by cities and we get the same kind of data
for each ones. We had to find a way to easily create a new project based on an already
existing one.
That what we called the « project cloning » system which let you keep the same layers
definitions, keymap, metadata, legend, templates, activated webservices as an other
project.
So you create a new project telling that you want to use another one as the source for
the creation and you will only have to load your data in the project directory, load them
in the PostGIS database, correct some metadata (at least the city name) and your new
project is ready to use.
Thanks to this way to create project for the 20 main cities investigated we spent only
one day.
Senegalese land register modernization through
               OpenSource softwares.
                                The PAMOCA Project
                   Creating and using the OpenOffice templating system from MapJax
Using the same idea as in OOCMS itself you could also use the same kind of templating
system.

To be able to produce an output document which contains the map, the legend, the keymap
and scalebar you only have to as anybody make a document with the well named pictures in.
Their names should be :

    [_mainmap_] for the main map picture,
    [_keymap_],
    [_legend_],
    [_scalebar_].

This way everybody is able to create its own output document, with its own style.

This sounds really more efficient than using some libs like for exemple fpdf or pdflib ....
Senegalese land register modernization through
               OpenSource softwares.
                           The PAMOCA Project
               An automated way to deploy OGC webservices through MapServer


To deploy WMS and WFS webservices you only have to check a box in the layer
properties edition dialog from the administration interface to tell MapJax that
you want to share this layers through the specified webservice (WMS or WFS
currently).



Then when you update the project, relevant mapfiles are created for you with
the layers you've specified and webservices are available through the web to
share your data in a standard way.
Senegalese land register modernization through
                   OpenSource softwares.
                                    The PAMOCA Project
Producing a cache of tiles using TileCache and automated creation of an embeded win32 HTML Application (HTA) to
                                              dispay and query layers

   The last innovative thing is that MapJax could produce an HTA.
   From a MapJax project you could produce a cache of tiles to use in GoogleMap.
   MapJax simply use TileCache to do that.
   When the creation of the cache is over, MapJax make you able to easily produce a zip
   file which contains the produced cache and an HTML Application based on the
   GoogleMap™ API which will use this cache to display your data stored localy.
   You only have to unzip the package and click on the HTA file to be able to view your data
   without having to put the data on the web.
   Recently we also add the capability to query one layer using the Python Mapscript API.
   The only limitation at this level is that you have to include the ShapeFile containing your
   data to query into
Senegalese land register modernization through
               OpenSource softwares.
                          The PAMOCA Project

So MapJax was used in this project to integrate the provided GIS data.

At the final step of the edition process people granted could then link a parcel
to an investigation and update the GIS data inserting a foreign key to an
investigation.

This way, the DGID is able to know where is the parcel from the OOCMS « liting
view » or query from MapJax to get more informations on the parcel or even
download the investigation document.
Senegalese land register modernization through
               OpenSource softwares.
                            The PAMOCA Project
                                 Conclusion and perspectives
    First of all, the investigations made should let us simplify a bit more the
investigation and the edition process. To achieve this, more investigations has allready
been started and will continue in the next months to get more and more data in the
database. Using some datamining methods we will try to extract relevant informations
from the references buildings to make the next investigations easier.
    Formations had took and will take place in Senegal and at the GeoLabs office to
learn the Senegaleases administrators of the application how they could maintain this
application and how they could easily deploy such applications for other kind of needs.
     GeoLabs collaborates with the Senegalease GIS national association called ASIGEO
to provide them a web platform to share their knowledge and make e-learning
formations available through the same platform. The first formation which will be
available was about PostGIS.
Senegalese land register modernization through
               OpenSource softwares.
                          The PAMOCA Project
                              Conclusion and perspectives



The main people involved in this project (Gérald Fenoy et Chérif Thiam) have
created a new society in august 2008 which was called :

                         GMC Intenational Consulting.

This society give us the opportunity to export, with the help of the ADB and the
European community, the same kind of solution which was made for the
Senegalease contry to the others african ones.
Senegalese land register modernization through
            OpenSource softwares.
              The PAMOCA Project


                Any questions ?

Más contenido relacionado

Destacado (12)

Katuak
KatuakKatuak
Katuak
 
JUDCon Berlin 2010 - practical enterprise java performance tuning
JUDCon Berlin 2010 -  practical enterprise java performance tuningJUDCon Berlin 2010 -  practical enterprise java performance tuning
JUDCon Berlin 2010 - practical enterprise java performance tuning
 
MapMint FOSS4G-CEE 2012 Presentation
MapMint FOSS4G-CEE 2012 PresentationMapMint FOSS4G-CEE 2012 Presentation
MapMint FOSS4G-CEE 2012 Presentation
 
Job Fiar Presentation Dean
Job Fiar Presentation DeanJob Fiar Presentation Dean
Job Fiar Presentation Dean
 
Topik 3-menilai-buku-5-
Topik 3-menilai-buku-5-Topik 3-menilai-buku-5-
Topik 3-menilai-buku-5-
 
Malformasi arnold chiari
Malformasi arnold chiariMalformasi arnold chiari
Malformasi arnold chiari
 
Portfolio Rk2009
Portfolio Rk2009Portfolio Rk2009
Portfolio Rk2009
 
141599671 peran-guru-dalam-implementasi-kurikulum-2013
141599671 peran-guru-dalam-implementasi-kurikulum-2013141599671 peran-guru-dalam-implementasi-kurikulum-2013
141599671 peran-guru-dalam-implementasi-kurikulum-2013
 
Penyusunan rencana strategis
Penyusunan rencana strategisPenyusunan rencana strategis
Penyusunan rencana strategis
 
Administrasi kepala sd
Administrasi kepala sdAdministrasi kepala sd
Administrasi kepala sd
 
Paparan materi pesta siaga 2015
Paparan materi pesta siaga 2015Paparan materi pesta siaga 2015
Paparan materi pesta siaga 2015
 
Bencana alam
Bencana alamBencana alam
Bencana alam
 

Similar a Foss4 G Slides V3

FreeGIS.net, INSPIRE, Open Source Software and OGC standards
FreeGIS.net, INSPIRE, Open Source Software and OGC standardsFreeGIS.net, INSPIRE, Open Source Software and OGC standards
FreeGIS.net, INSPIRE, Open Source Software and OGC standardsArnulf Christl
 
OSGeo Live Lightening Overview
OSGeo Live Lightening OverviewOSGeo Live Lightening Overview
OSGeo Live Lightening OverviewJody Garnett
 
Open Source GIS
Open Source GISOpen Source GIS
Open Source GISJoe Larson
 
Field Data Collecting, Processing and Sharing: Using web Service Technologies
Field Data Collecting, Processing and Sharing: Using web Service TechnologiesField Data Collecting, Processing and Sharing: Using web Service Technologies
Field Data Collecting, Processing and Sharing: Using web Service TechnologiesNiroshan Sanjaya
 
OGC Interfaces in Thematic Exploitation Platforms
OGC Interfaces in Thematic Exploitation PlatformsOGC Interfaces in Thematic Exploitation Platforms
OGC Interfaces in Thematic Exploitation Platformsterradue
 
Implementation of a SaaS based simulation platform using open standards and o...
Implementation of a SaaS based simulation platform using open standards and o...Implementation of a SaaS based simulation platform using open standards and o...
Implementation of a SaaS based simulation platform using open standards and o...Thomas Paviot
 
Open Source Geospatial Tools: Enabling Decision Makers
Open Source Geospatial Tools: Enabling Decision MakersOpen Source Geospatial Tools: Enabling Decision Makers
Open Source Geospatial Tools: Enabling Decision MakersEcotrust
 
GeoSDI: una piattaforma social di dati geografici basata sui principi di INSP...
GeoSDI: una piattaforma social di dati geografici basata sui principi di INSP...GeoSDI: una piattaforma social di dati geografici basata sui principi di INSP...
GeoSDI: una piattaforma social di dati geografici basata sui principi di INSP...Beniamino Murgante
 
OSGeo ireland keynote 2017 by Markus Neteler
OSGeo ireland keynote 2017 by Markus NetelerOSGeo ireland keynote 2017 by Markus Neteler
OSGeo ireland keynote 2017 by Markus NetelerMarkus Neteler
 
Report for-smart-trash-project
Report for-smart-trash-project Report for-smart-trash-project
Report for-smart-trash-project Aimen Hajri
 
DI4R 2018 - Ellip: a collaborative workplace for EO Open Science
DI4R 2018 - Ellip: a collaborative workplace for EO Open ScienceDI4R 2018 - Ellip: a collaborative workplace for EO Open Science
DI4R 2018 - Ellip: a collaborative workplace for EO Open Scienceterradue
 
Integrating PostGIS in Web Applications
Integrating PostGIS in Web ApplicationsIntegrating PostGIS in Web Applications
Integrating PostGIS in Web ApplicationsCommand Prompt., Inc
 
FOSS4G2018: presentation of the app Geopaparazzi
FOSS4G2018: presentation of the app GeopaparazziFOSS4G2018: presentation of the app Geopaparazzi
FOSS4G2018: presentation of the app Geopaparazzisilli
 
D6.2 pan european_plan4all_platform
D6.2 pan european_plan4all_platformD6.2 pan european_plan4all_platform
D6.2 pan european_plan4all_platformKarel Charvat
 
D6.2 Pan European Plan4all Platform
D6.2 Pan European Plan4all PlatformD6.2 Pan European Plan4all Platform
D6.2 Pan European Plan4all Platformplan4all
 
OGC Update for State of Geospatial Tech at T-Rex
OGC Update for State of Geospatial Tech at T-RexOGC Update for State of Geospatial Tech at T-Rex
OGC Update for State of Geospatial Tech at T-RexGeorge Percivall
 
Sharing the Openness of the Maps via FOSS4G and the Web
Sharing the Openness of the Maps via FOSS4G and the WebSharing the Openness of the Maps via FOSS4G and the Web
Sharing the Openness of the Maps via FOSS4G and the WebHidenori Fujimura
 

Similar a Foss4 G Slides V3 (20)

FreeGIS.net, INSPIRE, Open Source Software and OGC standards
FreeGIS.net, INSPIRE, Open Source Software and OGC standardsFreeGIS.net, INSPIRE, Open Source Software and OGC standards
FreeGIS.net, INSPIRE, Open Source Software and OGC standards
 
OSGeo Live Lightening Overview
OSGeo Live Lightening OverviewOSGeo Live Lightening Overview
OSGeo Live Lightening Overview
 
Open Source GIS
Open Source GISOpen Source GIS
Open Source GIS
 
Field Data Collecting, Processing and Sharing: Using web Service Technologies
Field Data Collecting, Processing and Sharing: Using web Service TechnologiesField Data Collecting, Processing and Sharing: Using web Service Technologies
Field Data Collecting, Processing and Sharing: Using web Service Technologies
 
EDINA National Datacentre Activity Update to GWG
EDINA National Datacentre Activity Update to GWGEDINA National Datacentre Activity Update to GWG
EDINA National Datacentre Activity Update to GWG
 
OGC Interfaces in Thematic Exploitation Platforms
OGC Interfaces in Thematic Exploitation PlatformsOGC Interfaces in Thematic Exploitation Platforms
OGC Interfaces in Thematic Exploitation Platforms
 
Implementation of a SaaS based simulation platform using open standards and o...
Implementation of a SaaS based simulation platform using open standards and o...Implementation of a SaaS based simulation platform using open standards and o...
Implementation of a SaaS based simulation platform using open standards and o...
 
Open Source Geospatial Tools: Enabling Decision Makers
Open Source Geospatial Tools: Enabling Decision MakersOpen Source Geospatial Tools: Enabling Decision Makers
Open Source Geospatial Tools: Enabling Decision Makers
 
GeoSDI: una piattaforma social di dati geografici basata sui principi di INSP...
GeoSDI: una piattaforma social di dati geografici basata sui principi di INSP...GeoSDI: una piattaforma social di dati geografici basata sui principi di INSP...
GeoSDI: una piattaforma social di dati geografici basata sui principi di INSP...
 
OSGeo ireland keynote 2017 by Markus Neteler
OSGeo ireland keynote 2017 by Markus NetelerOSGeo ireland keynote 2017 by Markus Neteler
OSGeo ireland keynote 2017 by Markus Neteler
 
Report for-smart-trash-project
Report for-smart-trash-project Report for-smart-trash-project
Report for-smart-trash-project
 
Geoportal4everybody
Geoportal4everybodyGeoportal4everybody
Geoportal4everybody
 
DI4R 2018 - Ellip: a collaborative workplace for EO Open Science
DI4R 2018 - Ellip: a collaborative workplace for EO Open ScienceDI4R 2018 - Ellip: a collaborative workplace for EO Open Science
DI4R 2018 - Ellip: a collaborative workplace for EO Open Science
 
Integrating PostGIS in Web Applications
Integrating PostGIS in Web ApplicationsIntegrating PostGIS in Web Applications
Integrating PostGIS in Web Applications
 
FOSS4G2018: presentation of the app Geopaparazzi
FOSS4G2018: presentation of the app GeopaparazziFOSS4G2018: presentation of the app Geopaparazzi
FOSS4G2018: presentation of the app Geopaparazzi
 
Open@EDINA
Open@EDINAOpen@EDINA
Open@EDINA
 
D6.2 pan european_plan4all_platform
D6.2 pan european_plan4all_platformD6.2 pan european_plan4all_platform
D6.2 pan european_plan4all_platform
 
D6.2 Pan European Plan4all Platform
D6.2 Pan European Plan4all PlatformD6.2 Pan European Plan4all Platform
D6.2 Pan European Plan4all Platform
 
OGC Update for State of Geospatial Tech at T-Rex
OGC Update for State of Geospatial Tech at T-RexOGC Update for State of Geospatial Tech at T-Rex
OGC Update for State of Geospatial Tech at T-Rex
 
Sharing the Openness of the Maps via FOSS4G and the Web
Sharing the Openness of the Maps via FOSS4G and the WebSharing the Openness of the Maps via FOSS4G and the Web
Sharing the Openness of the Maps via FOSS4G and the Web
 

Foss4 G Slides V3

  • 1. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Gérald Fenoy gerald.fenoy@geolabs.fr GeoLabs SARL FOSS4G - 2008
  • 2. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project What does the P.A.MO.CA means ? Goals of this project what they get and what we provide A brief history and overview of actors involved in this project A brief presentation of the GeoLive VS platform used to implement the whole solution The way we use to achieve those goals : mixing OOCMS + MapJax An overview of the OOCMS solution (an easy way to list, edit and output complexe documents) Tables and listing of its content : An overview of the templating system using Smarty + XML Tuples creation, edition, supression and their references : An overview of the process specifying how to edit fields through XML and using the OpenOffice templating system to create customized HTML forms Tuples output as document : An overview of the XML + OpenOffice templating system involved to output complex documents
  • 3. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project An overview of the MapJax solution to easily manage and display your GIS data : The concept of « project » Creating a new project (one way to speed up the configuration of a new project) Creating and using the OpenOffice templating system from MapJax An automated way to deploy OGC webservices through MapServer Producing a tiles cache using TileCache and automated creation of an embeded win32 HTML Application (HTA) to dispay and query layers Conclusion and perspectives
  • 4. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project What does the P.A.MO.CA means ? The P.A.MO.CA stand for (in french) : Projet d'Appuis à la MOdernisation du Cadastre Which could be translated by : Support Project to Cadastre Modernization
  • 5. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project A brief history and overview of actors involved in this project The P.A.MO.CA project was started the year 2006 by the DGID (which means Direction Général des Impôts et des Domaines = Executive Office of taxes and fields). The project funding was made by both : the ADB (African Development Bank) + the European Community
  • 6. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project A brief history and overview of actors involved in this project a special group of DGID's experts was created to manage and pass contracts with non gouvernemental companies specialized in the real estate field. The director of this group was and still be : Mame Ounta FALL. they chose the real estate experts agency called cabinet SADY & THIAM, a company created in 1984, to handle and manage the first part of the gouvernemental project which was called : the monograph of the references buildings. finally this part of the project started by the end of the year 2006. by the end of the year 2007, the GeoLabs SARL was contracted by this agency to implement a web-based solution of this monograph.
  • 7. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project A brief history and overview of actors involved in this project Since 2006 there was a lot of investigations made by the members of the real estate experts agency to locate and investigate the most representative houses and builldings in the whole Senegal country. The investigations was made by 15 different senegalease specialists which was first formed by Cherif THIAM during a couple of months.
  • 8. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project The goals of this project (What they get and what we provide) The material provided to make the investigations was pretty simple : a 5 meter wire to take mesures, an A3 printed paper with complexe arrays containing so many fields. Some have to be filed during the investigation with relevant informations like for exemple number of : parts, living room, rooms with area larger than 9 m2 and so on, but some don't have to be filled, a pen to fill the paper, a printed map representing the location of the parcel, a digital camera to take a picture of the frontage of the house or the building.
  • 9. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project The goals of this project (What they get and what we provide) The result of the investigations made was : a partially filled investigation file, a printed map of the parcel's location colored by hand, a hand-made plan which was digitized using AutoCad™ by some other specialists of the SADY & THIAM cabinet, 30 persons was contracted to manage this task, a picture of the frontage. So at the begining we get at least 2 files usable “as-is” into the informations system : the AutoCad™ plan and the picture !!
  • 10. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project The goals of this project (What they get and what we provide) What we finally provide to manage data resulting of the investigations : A GNU/Linux system we've called GeoLive VS 1.0, runing on two IBM X Series servers to host the solution, An ECM system called OOCMS to manage the results of the investigations made and also for the futur ones A Web-GIS solution called MapJax to manage GIS data and locating investigations. Both of this projects got a specific Trac system to handle source code, share ideas and bug report available on : http://geolive.cartography.st http://oocms.cartography.st http://www.mapjax.org/mapjax/
  • 11. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project A brief presentation of the GeoLive VS platform used to implement the whole solution At the beginning the GeoLive environment was a simple « chrootable » system which was based on the Gentoo™ Linux distribution and which could be embeded into every kind of already existing GNU/Linux system. It let us deployed our solutions efficiently in the past for lot of our clients. It contains everything we have to be installed for our applications to run. The idea of a chrootable system provided its relevance so we keep this in place and make it evolve over the versions of the main free softwares we used. For another project, we had to provide the same kind of solution but including also the host system, so we decided to use the Gentoo™ VirtualServer solution. Then on this first base (installed on two IBM X Series servers) we've created our solution that we called GeoLive VS 1.0 which run since some time and prove its stability.
  • 12. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project A brief presentation of the GeoLive VS platform used to implement the whole solution As we already get a system and an architecture on which it ran well since some time we decided with the PAMOCA direction and the SADY & THIAM cabinet to buy two IBM X Series servers, one for the development phase and the agency activity and another one for the integration into the DGID network. This way to deploy our solution and OS softwares required we only have to synchronize the new servers from the development server to the new one.
  • 13. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project The way we use to achieve those goals : coupling OOCMS + MapJax In the past GeoLabs based lot of their solutions on two products which are : OOCMS : used when we have to create informations systems to manage documents production or flow of data where some different people could interact each other in the edition process and MapJax : used as a base solution to easily create our own specific GIS applications. Both of this softwares use the MetaJS library which is available on GoogleCode.
  • 14. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project An overview of the OOCMS solution (an easy way to list, edit and output complexe documents) OOCMS is a web application, implemented in PHP, which let you manage and produce complex documents on the fly through an OpenOffice server. The web application communicate with this server using the U.N.O API (Universal Network Object) and more precisely its Python implementation. Data was stored in a PostgreSQL/MySQL database. As the “GIS data awareness” of OOCMS is brand new, it was only implemented for PostGIS currently (so to manage both your GIS data and standard ones you have to use a PostgreSQL database).
  • 15. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Tables and listing of its content PostgreSQL tables could be made available to any group of users of an OOCMS application. This way users, depending on their rights affected to their group, could made creation, modifications, suppression and production of documents. To make a table available to the application's users, you have to create a directory with the same name as the table into the docs/local/tables/ path of the OOCMS intallation, create an XML files to configure what informations the system have to display to the users from the data stored in the table. Here you are able to use any kind of SQL statement or php code you need. Then you have to write or use the default Smarty template which let you tell the system how the « listing view » have to be displayed.
  • 16. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project An overview of the templating system using Smarty + XML + a table to display An XML file to set what to display + The Resulting « Listing View » in action A Smarty template to set how to display (XHTML+PHP)
  • 17. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Tuples creation, edition and their references When you want to grant the write access to a specific group of users you have to create a workflow.xml file. In this file you tell the system who could edit what and when. So there is an XML block for each step containing the group and each field which could be filed. After creating this XML file you have to create an OpenOffice template which will be used to display the HTML form to the end user. We provide an administration interface to integrate such templates into the system. So, in the workflow.xml file you have to set for each step : What have to be edited and what kind of field it is. Which group have the rights to edit. Which OpenOffice template to use to display the HTML form to the end user.
  • 18. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Tuples creation, edition and their references The workflow.xml file
  • 19. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Tuples creation, edition and their references The OpenOffice template
  • 20. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Tuples creation, edition and their references The HTML form produced
  • 21. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Tuples creation, edition and the same for their references The workflow.xml file with only the step 6 block displayed
  • 22. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Tuples creation, edition and the same for their references The workflow.xml file with only the step 6 block displayed OpenOffice template used to produce the HTML form on step 6
  • 23. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Tuples creation, edition and the same for their references The workflow.xml file with only the step 6 block displayed OpenOffice template used to produce the HTML form The resulting edition HTML form on step 6 produced by the OOCMS application
  • 24. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Tuples creation, edition and their references The workflow.xml file with only ... the step 6 block displayed ... OpenOffice template OpenOffice template for step 1 for step 6 The resulting edition HTML form produced by the OOCMS application
  • 25. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Tuples output as documents Everytime you update an entry in a table, there is a trigger which inform the system that it have to produce a new document. So in some sens we maintain a cache of produced document. As before, to be able to output a full filled document you only have to create an XML file and its associated OpenOffice template to specify what you want to display in your restitution document.
  • 26. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Tuples output as documents The output.xml file
  • 27. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Tuples output as documents The OpenOffice Template
  • 28. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Tuples output as documents The produced document
  • 29. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project An overview of the MapJax solution to easily manage and display your GIS data MapJax is a Web-GIS solution easy to deploy. It provides lot of functionalities : integrating your data in a PostGIS database, metadata edition, deploying WMS/WFS webservices on demand (through MapServer), create/edit/delete layers, create different cache of tiles (using tilecache) to use in an automaticaly produced HTA application, upload your own OpenOffice template to output map in PDF or other formats supported by OpenOffice and more ...
  • 30. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project The concept of « project » A MapJax project is an instance of the web interface. It contains the layers definition, datasources, symbols, fonts, legend, list of users able to access the application, its own OpenOffice templates, keymap, spatial queries definitions the web application have to provide and so on ... From a PostgreSQL point of view a project is also a schema (namepace). For the PAMOCA project, data provided by the DGID was in ShapeFile format. For each cities where investigations took place, the data were structured like this : Buildings Parcels Cadastral sections Roads
  • 31. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Creating a new project (one way to speed up the configuration of a new projects) We decided to create a project for each investigated cities... As I told you, data was allready structured by cities and we get the same kind of data for each ones. We had to find a way to easily create a new project based on an already existing one. That what we called the « project cloning » system which let you keep the same layers definitions, keymap, metadata, legend, templates, activated webservices as an other project. So you create a new project telling that you want to use another one as the source for the creation and you will only have to load your data in the project directory, load them in the PostGIS database, correct some metadata (at least the city name) and your new project is ready to use. Thanks to this way to create project for the 20 main cities investigated we spent only one day.
  • 32. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Creating and using the OpenOffice templating system from MapJax Using the same idea as in OOCMS itself you could also use the same kind of templating system. To be able to produce an output document which contains the map, the legend, the keymap and scalebar you only have to as anybody make a document with the well named pictures in. Their names should be : [_mainmap_] for the main map picture, [_keymap_], [_legend_], [_scalebar_]. This way everybody is able to create its own output document, with its own style. This sounds really more efficient than using some libs like for exemple fpdf or pdflib ....
  • 33. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project An automated way to deploy OGC webservices through MapServer To deploy WMS and WFS webservices you only have to check a box in the layer properties edition dialog from the administration interface to tell MapJax that you want to share this layers through the specified webservice (WMS or WFS currently). Then when you update the project, relevant mapfiles are created for you with the layers you've specified and webservices are available through the web to share your data in a standard way.
  • 34. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Producing a cache of tiles using TileCache and automated creation of an embeded win32 HTML Application (HTA) to dispay and query layers The last innovative thing is that MapJax could produce an HTA. From a MapJax project you could produce a cache of tiles to use in GoogleMap. MapJax simply use TileCache to do that. When the creation of the cache is over, MapJax make you able to easily produce a zip file which contains the produced cache and an HTML Application based on the GoogleMap™ API which will use this cache to display your data stored localy. You only have to unzip the package and click on the HTA file to be able to view your data without having to put the data on the web. Recently we also add the capability to query one layer using the Python Mapscript API. The only limitation at this level is that you have to include the ShapeFile containing your data to query into
  • 35. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project So MapJax was used in this project to integrate the provided GIS data. At the final step of the edition process people granted could then link a parcel to an investigation and update the GIS data inserting a foreign key to an investigation. This way, the DGID is able to know where is the parcel from the OOCMS « liting view » or query from MapJax to get more informations on the parcel or even download the investigation document.
  • 36. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Conclusion and perspectives First of all, the investigations made should let us simplify a bit more the investigation and the edition process. To achieve this, more investigations has allready been started and will continue in the next months to get more and more data in the database. Using some datamining methods we will try to extract relevant informations from the references buildings to make the next investigations easier. Formations had took and will take place in Senegal and at the GeoLabs office to learn the Senegaleases administrators of the application how they could maintain this application and how they could easily deploy such applications for other kind of needs. GeoLabs collaborates with the Senegalease GIS national association called ASIGEO to provide them a web platform to share their knowledge and make e-learning formations available through the same platform. The first formation which will be available was about PostGIS.
  • 37. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Conclusion and perspectives The main people involved in this project (Gérald Fenoy et Chérif Thiam) have created a new society in august 2008 which was called : GMC Intenational Consulting. This society give us the opportunity to export, with the help of the ADB and the European community, the same kind of solution which was made for the Senegalease contry to the others african ones.
  • 38. Senegalese land register modernization through OpenSource softwares. The PAMOCA Project Any questions ?