SlideShare a Scribd company logo
1 of 16
Download to read offline
How Cool Can Be The Migration of an Old GIS
Corporate Dataset to a New System
From Coverages to Geospatial Databases
Gabriel Asato
Geological and Mining Survey of Argentina
g_asato2000@yahoo.com, gabriel.asato@segemar.gov.ar
GEOLOGICAL CONGRESS
27 AUGUST - 4 SEPTEMBER 2016 | CAPE TOWN, SOUTH AFRICA
Converting Hundred of Datasets in
Geological Surveys
What we need
● Do it quickly
● Do Not loose information
● Do it consistently
What is happend
● Really boring process
● Error prone activity if is
made by hand.
● No integrated
consistency tests
● In the context of new
geospatial paradigms
this process is much
complex
Worries
● Topology in geospatial systems
is always a real concern!!
What we are Trying to Migrate?
A Geospatial Data Structure
(ESRI ARC/Info Coverages)
What we are Trying to Migrate?
To an Integrated
Geospatial
Complex Data Model
(a geospatial database,
spatialite format)
System Migration for geospatial data
doesn’t means Import/Export
Means a change of information paradigm
from Data Structures to Data Model
Extract, Transform, Load (ETL)
Free and Open Source Software Tools
● Data Extraction
○ Extract data from homogeneous or heterogeneous data sources
● Data Transformation
○ Transforms the data for storing it in the proper format or structure for the purposes of
querying and analysis
● Data Loading
○ Loads it into the final target
GDAL/OGR + Python + SQLite
GeoKettle
GDAL/OGR,
Python and Spatial SQLite
● GDAL/OGR Geospatial Data Abstraction Library
○ Universal translator for raster and vector using a single abstract
raster and vector library
● Python Programming Language
● SpatiaLite format
○ SQL Vector geodatabase functionality
○ Simple and powerful
○ Portable
○ Platform independent
○ Supports OGC SFA
○ OGC Geopackage is based on SpatiaLite format
○ Topology support
○ One of the natural replacement of ESRI shapefiles
Extract, Transform and Load Process
In Detail
● Initialize by loading corresponding drivers
● Check the existence of data in the file system
● Check data structure and map it to the new system
● Filters undesired data
● Load data
The Program cov2sqlite
Initialize Drivers
….
# INPUT
driver = ogr.GetDriverByName("AVCBin")
dataSource = driver.Open(cov_name,0) #0 read only, 1 write
#open layer
lyr = dataSource.GetLayerByName(lyr_type)
# lyr_type can be [‘ARC’, ‘PAL’, ‘LAB’]
….
# OUTPUT
sqlDrv = ogr.GetDriverByName("SQLite")
dataOut = sqlDrv.Open(sqlDB,1)
….
The Program cov2sqlite
Checking Data Structure and Translation
#Check Data Structure
dataStructureDicc = {
'geo':{'PAL':['AREA', 'PERIMETER', 'ID','SID'], 'ARC':['LENGTH', 'ID']},
'meas':{'LAB':['ID', 'AZIMUT', 'BUZAMIENTO','RUMBO','CUADRANTE']}, 
'folds':{'ARC':['LENGTH', 'id']}
}
#itemOut, itemIN Translation
ItemTranslationDicc={
'geo':{'PAL':{'area':'AREA', 'perimetro': 'PERIMETER' , 'id':'ID',
'sid':'SID'},'ARC':{'length':'LENGTH', 'id':'ID'}},
'meas':{'LAB':{'id':'ID','buzamiento':
'BUZAMIENTO','azimut':'AZIMUT','rumbo':'RUMBO','cuadrante':'CUADRANTE'}},
'folds':{'ARC':{'LENGTH':'length', 'id':'id'}}
}
Look Up Table to SLD
LUT2SLD
INPUT / OUTPUT
csvFilePath = 'nqn250colorb.csv'
#INPUT
SLDFileName = 'nqn250.sld' # OUTPUT
CSV Structure
ID
Color ( HTML Format )
Description ( alfanumeric )
Creating SLD
def GetSLDXML(gid, color, desc):
dataSLD = ( '<Rule>',
'<Name>' + desc + '</Name>',
'<ogc:Filter>',
' <ogc:PropertyIsEqualTo>',
' <ogc:PropertyName>sid</ogc:PropertyName>',
' <ogc:Literal>'+ gid + '</ogc:Literal>',
' </ogc:PropertyIsEqualTo>',
'</ogc:Filter>',
'<PolygonSymbolizer>',
' <Fill>',
' <CssParameter name="fill">'+color+'</CssParameter>',
' <CssParameter name="fill-opacity">100</CssParameter>',
' </Fill>',
'</PolygonSymbolizer>',
'</Rule>')
return dataSLD
Other Additional Operations Must be Done
● Set SRID
● Upload data dictionaries as tables
● Create views with SQL
● Upload palette as OGC SLD format and stored in SQLite
● Predefined Queries construction
● Check visualization and queries with other GIS softwares like QGIS.
Result
A Simple Solution for a Complex Task
QGIS Visualization of SQLite Geospatial Database
ETL FOSS4G Tools in the form of
GDAL/OGR + Python + SQLite
improve the process of geospatial
system migration, that means from
data structures to data models.
New geospatial technologies allows
the management of information in
unified, integrated system and easy
way, store information as complex
data models is possible.
SQLite format is open, consistent,
portable, multi platform, supports
OGC SF, it is a good replacement
of ESRI shapefiles, and it can be
upgrade to much complex systems
like PostGIS. Good for making
experiments.
Future
(still in development)
● Metadata
● Satellite Image Integration (mosaics)
● Topology
● Triggers
● Complex Geospatial Constraints
● OGC GeoPackage
How cool can be the migration of an old gis corporate dataset to a new system. from coverages to geospatial databases presentation

More Related Content

Similar to How cool can be the migration of an old gis corporate dataset to a new system. from coverages to geospatial databases presentation

Running Intelligent Applications inside a Database: Deep Learning with Python...
Running Intelligent Applications inside a Database: Deep Learning with Python...Running Intelligent Applications inside a Database: Deep Learning with Python...
Running Intelligent Applications inside a Database: Deep Learning with Python...
Miguel González-Fierro
 
An Overview of VIEW
An Overview of VIEWAn Overview of VIEW
An Overview of VIEW
Shiyong Lu
 
Iasi code camp 20 april 2013 testing big data-anca sfecla - embarcadero
Iasi code camp 20 april 2013 testing big data-anca sfecla - embarcaderoIasi code camp 20 april 2013 testing big data-anca sfecla - embarcadero
Iasi code camp 20 april 2013 testing big data-anca sfecla - embarcadero
Codecamp Romania
 

Similar to How cool can be the migration of an old gis corporate dataset to a new system. from coverages to geospatial databases presentation (20)

Running Intelligent Applications inside a Database: Deep Learning with Python...
Running Intelligent Applications inside a Database: Deep Learning with Python...Running Intelligent Applications inside a Database: Deep Learning with Python...
Running Intelligent Applications inside a Database: Deep Learning with Python...
 
Presentation sql server to oracle a database migration roadmap
Presentation    sql server to oracle a database migration roadmapPresentation    sql server to oracle a database migration roadmap
Presentation sql server to oracle a database migration roadmap
 
Ax 2012 R3 Legacy Data Migration
Ax 2012 R3 Legacy Data MigrationAx 2012 R3 Legacy Data Migration
Ax 2012 R3 Legacy Data Migration
 
Agile Data Science 2.0: Using Spark with MongoDB
Agile Data Science 2.0: Using Spark with MongoDBAgile Data Science 2.0: Using Spark with MongoDB
Agile Data Science 2.0: Using Spark with MongoDB
 
Tutorial On Database Management System
Tutorial On Database Management SystemTutorial On Database Management System
Tutorial On Database Management System
 
Agile Data Science 2.0
Agile Data Science 2.0Agile Data Science 2.0
Agile Data Science 2.0
 
Agile Data Science 2.0
Agile Data Science 2.0Agile Data Science 2.0
Agile Data Science 2.0
 
Agile Data Science 2.0
Agile Data Science 2.0Agile Data Science 2.0
Agile Data Science 2.0
 
Paradigmas de procesamiento en Big Data: estado actual, tendencias y oportu...
Paradigmas de procesamiento en  Big Data: estado actual,  tendencias y oportu...Paradigmas de procesamiento en  Big Data: estado actual,  tendencias y oportu...
Paradigmas de procesamiento en Big Data: estado actual, tendencias y oportu...
 
Best Practices for Building and Deploying Data Pipelines in Apache Spark
Best Practices for Building and Deploying Data Pipelines in Apache SparkBest Practices for Building and Deploying Data Pipelines in Apache Spark
Best Practices for Building and Deploying Data Pipelines in Apache Spark
 
Five Data Models for Sharding | Nordic PGDay 2018 | Craig Kerstiens
Five Data Models for Sharding | Nordic PGDay 2018 | Craig KerstiensFive Data Models for Sharding | Nordic PGDay 2018 | Craig Kerstiens
Five Data Models for Sharding | Nordic PGDay 2018 | Craig Kerstiens
 
Five data models for sharding and which is right | PGConf.ASIA 2018 | Craig K...
Five data models for sharding and which is right | PGConf.ASIA 2018 | Craig K...Five data models for sharding and which is right | PGConf.ASIA 2018 | Craig K...
Five data models for sharding and which is right | PGConf.ASIA 2018 | Craig K...
 
Chandrasekhar_Resume
Chandrasekhar_ResumeChandrasekhar_Resume
Chandrasekhar_Resume
 
An Overview of VIEW
An Overview of VIEWAn Overview of VIEW
An Overview of VIEW
 
Change tracking
Change trackingChange tracking
Change tracking
 
Iasi code camp 20 april 2013 testing big data-anca sfecla - embarcadero
Iasi code camp 20 april 2013 testing big data-anca sfecla - embarcaderoIasi code camp 20 april 2013 testing big data-anca sfecla - embarcadero
Iasi code camp 20 april 2013 testing big data-anca sfecla - embarcadero
 
Data Warehouse and Business Intelligence - Recipe 4 - Staging area - how to v...
Data Warehouse and Business Intelligence - Recipe 4 - Staging area - how to v...Data Warehouse and Business Intelligence - Recipe 4 - Staging area - how to v...
Data Warehouse and Business Intelligence - Recipe 4 - Staging area - how to v...
 
Time series Analytics - a deep dive into ADX Azure Data Explorer @Data Saturd...
Time series Analytics - a deep dive into ADX Azure Data Explorer @Data Saturd...Time series Analytics - a deep dive into ADX Azure Data Explorer @Data Saturd...
Time series Analytics - a deep dive into ADX Azure Data Explorer @Data Saturd...
 
Data Warehousing with Python
Data Warehousing with PythonData Warehousing with Python
Data Warehousing with Python
 
Storage Methods for Nonstandard Data Patterns
Storage Methods for Nonstandard Data PatternsStorage Methods for Nonstandard Data Patterns
Storage Methods for Nonstandard Data Patterns
 

More from Carlos Gabriel Asato

La Calidad de la Información Geoespacial Digital, sus Limitaciones, y su Imp...
La Calidad de la Información Geoespacial Digital, sus Limitaciones,  y su Imp...La Calidad de la Información Geoespacial Digital, sus Limitaciones,  y su Imp...
La Calidad de la Información Geoespacial Digital, sus Limitaciones, y su Imp...
Carlos Gabriel Asato
 

More from Carlos Gabriel Asato (20)

EXPERIENCIAS EN EL DESARROLLO DE LA PRODUCCIÓN CARTOGRÁFICA AUTOMATIZADA MED...
EXPERIENCIAS EN EL DESARROLLO DE LA  PRODUCCIÓN CARTOGRÁFICA AUTOMATIZADA MED...EXPERIENCIAS EN EL DESARROLLO DE LA  PRODUCCIÓN CARTOGRÁFICA AUTOMATIZADA MED...
EXPERIENCIAS EN EL DESARROLLO DE LA PRODUCCIÓN CARTOGRÁFICA AUTOMATIZADA MED...
 
Introducción a la Creación de Mapas de Potencial Geotérmico Mediante el Métod...
Introducción a la Creación de Mapas de Potencial Geotérmico Mediante el Métod...Introducción a la Creación de Mapas de Potencial Geotérmico Mediante el Métod...
Introducción a la Creación de Mapas de Potencial Geotérmico Mediante el Métod...
 
Proyecto de Transformación Digital de la Información Geológica Regional en YP...
Proyecto de Transformación Digital de la Información Geológica Regional en YP...Proyecto de Transformación Digital de la Información Geológica Regional en YP...
Proyecto de Transformación Digital de la Información Geológica Regional en YP...
 
APLICACIÓN DEL MÉTODO PLAY FAIRWAY PARA LA DETERMINACIÓN DE ZONAS DE FAVORABI...
APLICACIÓN DEL MÉTODO PLAY FAIRWAY PARA LA DETERMINACIÓN DE ZONAS DE FAVORABI...APLICACIÓN DEL MÉTODO PLAY FAIRWAY PARA LA DETERMINACIÓN DE ZONAS DE FAVORABI...
APLICACIÓN DEL MÉTODO PLAY FAIRWAY PARA LA DETERMINACIÓN DE ZONAS DE FAVORABI...
 
Características del Sensor Aster
Características del Sensor AsterCaracterísticas del Sensor Aster
Características del Sensor Aster
 
Contextual Elements for Geoscience Standards Adoption and Development in SA S...
Contextual Elements for Geoscience Standards Adoption and Development in SA S...Contextual Elements for Geoscience Standards Adoption and Development in SA S...
Contextual Elements for Geoscience Standards Adoption and Development in SA S...
 
Análisis Geoespacial y Potencial Minero
Análisis Geoespacial y Potencial MineroAnálisis Geoespacial y Potencial Minero
Análisis Geoespacial y Potencial Minero
 
Comparación Presupuestaria En el contexto de los aportes de los Servicios Geo...
Comparación Presupuestaria En el contexto de los aportes de los Servicios Geo...Comparación Presupuestaria En el contexto de los aportes de los Servicios Geo...
Comparación Presupuestaria En el contexto de los aportes de los Servicios Geo...
 
Estudio sobre política pública, Servicios Geológicos y Desarrollo (DRAFT=
Estudio sobre política pública, Servicios Geológicos y Desarrollo (DRAFT=Estudio sobre política pública, Servicios Geológicos y Desarrollo (DRAFT=
Estudio sobre política pública, Servicios Geológicos y Desarrollo (DRAFT=
 
2019 Geopackage estándar de OGC para la transferencia física de datos geoespa...
2019 Geopackage estándar de OGC para la transferencia física de datos geoespa...2019 Geopackage estándar de OGC para la transferencia física de datos geoespa...
2019 Geopackage estándar de OGC para la transferencia física de datos geoespa...
 
Las Bases de Datos Geoespaciales. Impactos en SIG y Cartografía Digital
Las Bases de Datos Geoespaciales. Impactos en SIG y Cartografía DigitalLas Bases de Datos Geoespaciales. Impactos en SIG y Cartografía Digital
Las Bases de Datos Geoespaciales. Impactos en SIG y Cartografía Digital
 
Introduccion sql geoespacial
Introduccion sql geoespacialIntroduccion sql geoespacial
Introduccion sql geoespacial
 
A GIS Based Satellite Data Management Application
A GIS Based Satellite Data Management ApplicationA GIS Based Satellite Data Management Application
A GIS Based Satellite Data Management Application
 
Los Topónimos su manejo mediante SIG y sus aplicaciones en cartografía
Los Topónimos su manejo mediante SIG y sus aplicaciones en cartografíaLos Topónimos su manejo mediante SIG y sus aplicaciones en cartografía
Los Topónimos su manejo mediante SIG y sus aplicaciones en cartografía
 
ATLAS TECHNOLOGY, A DIGITAL FRAMEWORK FOR EFFICIENT MANAGEMENT AND USE OF RE...
ATLAS  TECHNOLOGY, A DIGITAL FRAMEWORK FOR EFFICIENT MANAGEMENT AND USE OF RE...ATLAS  TECHNOLOGY, A DIGITAL FRAMEWORK FOR EFFICIENT MANAGEMENT AND USE OF RE...
ATLAS TECHNOLOGY, A DIGITAL FRAMEWORK FOR EFFICIENT MANAGEMENT AND USE OF RE...
 
La Calidad de la Información Geoespacial Digital, sus Limitaciones, y su Imp...
La Calidad de la Información Geoespacial Digital, sus Limitaciones,  y su Imp...La Calidad de la Información Geoespacial Digital, sus Limitaciones,  y su Imp...
La Calidad de la Información Geoespacial Digital, sus Limitaciones, y su Imp...
 
Introducción al los Modelos Digitales de Terreno y su Análisis con Sistemas d...
Introducción al los Modelos Digitales de Terreno y su Análisis con Sistemas d...Introducción al los Modelos Digitales de Terreno y su Análisis con Sistemas d...
Introducción al los Modelos Digitales de Terreno y su Análisis con Sistemas d...
 
Ser Informado con RSS
Ser Informado con RSSSer Informado con RSS
Ser Informado con RSS
 
Explotación de Información Geocientífica por Internet. Desde Geo-RSS a WMS, h...
Explotación de Información Geocientífica por Internet. Desde Geo-RSS a WMS, h...Explotación de Información Geocientífica por Internet. Desde Geo-RSS a WMS, h...
Explotación de Información Geocientífica por Internet. Desde Geo-RSS a WMS, h...
 
Avances y Desarrollo del Servicio Geológico Minero Argentino en Cartografía D...
Avances y Desarrollo del Servicio Geológico Minero Argentino en Cartografía D...Avances y Desarrollo del Servicio Geológico Minero Argentino en Cartografía D...
Avances y Desarrollo del Servicio Geológico Minero Argentino en Cartografía D...
 

Recently uploaded

Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Klinik kandungan
 
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
Health
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
nirzagarg
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
nirzagarg
 
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
wsppdmt
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
nirzagarg
 
怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制
怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制
怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制
vexqp
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
gajnagarg
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptx
chadhar227
 

Recently uploaded (20)

Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
 
Sequential and reinforcement learning for demand side management by Margaux B...
Sequential and reinforcement learning for demand side management by Margaux B...Sequential and reinforcement learning for demand side management by Margaux B...
Sequential and reinforcement learning for demand side management by Margaux B...
 
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
 
怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制
怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制
怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - Almora
 
Digital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareDigital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham Ware
 
Capstone in Interprofessional Informatic // IMPACT OF COVID 19 ON EDUCATION
Capstone in Interprofessional Informatic  // IMPACT OF COVID 19 ON EDUCATIONCapstone in Interprofessional Informatic  // IMPACT OF COVID 19 ON EDUCATION
Capstone in Interprofessional Informatic // IMPACT OF COVID 19 ON EDUCATION
 
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptxThe-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
 
Harnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptxHarnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptx
 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for Research
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptx
 

How cool can be the migration of an old gis corporate dataset to a new system. from coverages to geospatial databases presentation

  • 1. How Cool Can Be The Migration of an Old GIS Corporate Dataset to a New System From Coverages to Geospatial Databases Gabriel Asato Geological and Mining Survey of Argentina g_asato2000@yahoo.com, gabriel.asato@segemar.gov.ar GEOLOGICAL CONGRESS 27 AUGUST - 4 SEPTEMBER 2016 | CAPE TOWN, SOUTH AFRICA
  • 2. Converting Hundred of Datasets in Geological Surveys What we need ● Do it quickly ● Do Not loose information ● Do it consistently What is happend ● Really boring process ● Error prone activity if is made by hand. ● No integrated consistency tests ● In the context of new geospatial paradigms this process is much complex Worries ● Topology in geospatial systems is always a real concern!!
  • 3. What we are Trying to Migrate? A Geospatial Data Structure (ESRI ARC/Info Coverages)
  • 4. What we are Trying to Migrate? To an Integrated Geospatial Complex Data Model (a geospatial database, spatialite format)
  • 5. System Migration for geospatial data doesn’t means Import/Export Means a change of information paradigm from Data Structures to Data Model
  • 6. Extract, Transform, Load (ETL) Free and Open Source Software Tools ● Data Extraction ○ Extract data from homogeneous or heterogeneous data sources ● Data Transformation ○ Transforms the data for storing it in the proper format or structure for the purposes of querying and analysis ● Data Loading ○ Loads it into the final target GDAL/OGR + Python + SQLite
  • 8. GDAL/OGR, Python and Spatial SQLite ● GDAL/OGR Geospatial Data Abstraction Library ○ Universal translator for raster and vector using a single abstract raster and vector library ● Python Programming Language ● SpatiaLite format ○ SQL Vector geodatabase functionality ○ Simple and powerful ○ Portable ○ Platform independent ○ Supports OGC SFA ○ OGC Geopackage is based on SpatiaLite format ○ Topology support ○ One of the natural replacement of ESRI shapefiles
  • 9. Extract, Transform and Load Process In Detail ● Initialize by loading corresponding drivers ● Check the existence of data in the file system ● Check data structure and map it to the new system ● Filters undesired data ● Load data
  • 10. The Program cov2sqlite Initialize Drivers …. # INPUT driver = ogr.GetDriverByName("AVCBin") dataSource = driver.Open(cov_name,0) #0 read only, 1 write #open layer lyr = dataSource.GetLayerByName(lyr_type) # lyr_type can be [‘ARC’, ‘PAL’, ‘LAB’] …. # OUTPUT sqlDrv = ogr.GetDriverByName("SQLite") dataOut = sqlDrv.Open(sqlDB,1) ….
  • 11. The Program cov2sqlite Checking Data Structure and Translation #Check Data Structure dataStructureDicc = { 'geo':{'PAL':['AREA', 'PERIMETER', 'ID','SID'], 'ARC':['LENGTH', 'ID']}, 'meas':{'LAB':['ID', 'AZIMUT', 'BUZAMIENTO','RUMBO','CUADRANTE']}, 'folds':{'ARC':['LENGTH', 'id']} } #itemOut, itemIN Translation ItemTranslationDicc={ 'geo':{'PAL':{'area':'AREA', 'perimetro': 'PERIMETER' , 'id':'ID', 'sid':'SID'},'ARC':{'length':'LENGTH', 'id':'ID'}}, 'meas':{'LAB':{'id':'ID','buzamiento': 'BUZAMIENTO','azimut':'AZIMUT','rumbo':'RUMBO','cuadrante':'CUADRANTE'}}, 'folds':{'ARC':{'LENGTH':'length', 'id':'id'}} }
  • 12. Look Up Table to SLD LUT2SLD INPUT / OUTPUT csvFilePath = 'nqn250colorb.csv' #INPUT SLDFileName = 'nqn250.sld' # OUTPUT CSV Structure ID Color ( HTML Format ) Description ( alfanumeric ) Creating SLD def GetSLDXML(gid, color, desc): dataSLD = ( '<Rule>', '<Name>' + desc + '</Name>', '<ogc:Filter>', ' <ogc:PropertyIsEqualTo>', ' <ogc:PropertyName>sid</ogc:PropertyName>', ' <ogc:Literal>'+ gid + '</ogc:Literal>', ' </ogc:PropertyIsEqualTo>', '</ogc:Filter>', '<PolygonSymbolizer>', ' <Fill>', ' <CssParameter name="fill">'+color+'</CssParameter>', ' <CssParameter name="fill-opacity">100</CssParameter>', ' </Fill>', '</PolygonSymbolizer>', '</Rule>') return dataSLD
  • 13. Other Additional Operations Must be Done ● Set SRID ● Upload data dictionaries as tables ● Create views with SQL ● Upload palette as OGC SLD format and stored in SQLite ● Predefined Queries construction ● Check visualization and queries with other GIS softwares like QGIS.
  • 14. Result A Simple Solution for a Complex Task QGIS Visualization of SQLite Geospatial Database ETL FOSS4G Tools in the form of GDAL/OGR + Python + SQLite improve the process of geospatial system migration, that means from data structures to data models. New geospatial technologies allows the management of information in unified, integrated system and easy way, store information as complex data models is possible. SQLite format is open, consistent, portable, multi platform, supports OGC SF, it is a good replacement of ESRI shapefiles, and it can be upgrade to much complex systems like PostGIS. Good for making experiments.
  • 15. Future (still in development) ● Metadata ● Satellite Image Integration (mosaics) ● Topology ● Triggers ● Complex Geospatial Constraints ● OGC GeoPackage