SlideShare ist ein Scribd-Unternehmen logo
1 von 45
Downloaden Sie, um offline zu lesen
Postgis Topology will replace Postgis SimpleFeature
Lars Aksel Opsahl (NIBIO)
The Norwegian
Institute of
Bioeconomy
Research
Postgis
Simple Feature
Postgis Topology
Sandro Santilli
9/1/16 3Postgis Topology will replace Postgis SimpleFeature
Why use different projection on server and client ?
SRID 25832
(UTM 32, meter
5-12 degrees )
SRID 25833
(UTM 33, meter
12-21 degrees)
SRID 25835
(UTM 35, meter
21-30)
SRID 4258
(degrees)
9/1/16 4Postgis Topology will replace Postgis SimpleFeature
Client
Srid 25833 (meter)
Simple Feature
Postgis database
Srid 4258 (degrees)
Test case
Simple feature
(polygons, lines,points)
Simple feature
(polygons, lines,points)
9/1/16 5Postgis Topology will replace Postgis SimpleFeature
0% drifted points, 0% overlap
(postgis binary to postgis binary(WKB) and back with no projection)
SRID 25833
9/1/16 6Postgis Topology will replace Postgis SimpleFeature
90% drifted points
(meter to degrees and back using binary)
400 km.
9/1/16 7Postgis Topology will replace Postgis SimpleFeature
90% drifted points
(meter to degrees and back using binary)
400 km.
9/1/16 8Postgis Topology will replace Postgis SimpleFeature
99% of polygons overlaps
(meter to degrees and back using binary)
400 km.
9/1/16 9Postgis Topology will replace Postgis SimpleFeature
99% of polygons overlaps
(meter to degrees and back using binary, with 100 reputations )
400 km.
9/1/16 10Postgis Topology will replace Postgis SimpleFeature
Points drifts with many kilometers
(Projection formula UTM 35 on data in UTM 32
meter to degrees and back using binary, with 100 reputations)
50 km.
9/1/16 11Postgis Topology will replace Postgis SimpleFeature
What about JSON
JSON
9/1/16 12Postgis Topology will replace Postgis SimpleFeature
99% drifted points
(postgis binary to JSON and back)
400 km.
9/1/16 13Postgis Topology will replace Postgis SimpleFeature
100% of polygons overlap
(postgis binary to JSON and back)
400 km.
9/1/16 14Postgis Topology will replace Postgis SimpleFeature
Nano meter and TopologyExceptions
10 m.
9/1/16 15Postgis Topology will replace Postgis SimpleFeature
Nano meter and TopologyExceptions
10 m.
9/1/16 16Postgis Topology will replace Postgis SimpleFeature
TopologyException: side location conflict at 10.056395207707636 …....
10 m.
9/1/16 17Postgis Topology will replace Postgis SimpleFeature
TopologyException: side location conflict at 10.056395207707636 …....
10 m.
9/1/16 18Postgis Topology will replace Postgis SimpleFeature
Move border with Simple Feature
9/1/16 19Postgis Topology will replace Postgis SimpleFeature
Move border with SimpleFeature
SIMPLE FEATURE CAUSES
“Drifting points”
“Duplication of common borders”
(Tiny overlaps means more Topo Errors)
9/1/16 21Postgis Topology will replace Postgis SimpleFeature
9/1/16 22Postgis Topology will replace Postgis SimpleFeature
Only send points changed by user back to server.
9/1/16 23Postgis Topology will replace Postgis SimpleFeature
Only send points changed by user back to server.
9/1/16 24Postgis Topology will replace Postgis SimpleFeature
Duplication of common borders
9/1/16 25Postgis Topology will replace Postgis SimpleFeature
Move border with Postgis Topology
9/1/16 26Postgis Topology will replace Postgis SimpleFeature
How to extend a polygon
9/1/16 27Postgis Topology will replace Postgis SimpleFeature
Client
github.com/
NibioOpenSource/pgtopo_update_sql
Postgis Topology
Only new lines/points
Using generic JSON API
I
TopoJSON
JSON
9/1/16 28Postgis Topology will replace Postgis SimpleFeature
Postgis Topology also gives a lot more than this
No drifting points No duplications
9/1/16 29Postgis Topology will replace Postgis SimpleFeature
Draw a line
around
all polygons
in a layer
9/1/16 30Postgis Topology will replace Postgis SimpleFeature
Postgis Topology:5 new points
Simple Feature: 333105 new points
(333100 duplicates)
9/1/16 31Postgis Topology will replace Postgis SimpleFeature
{"type":"Topology","objects":{"collection":
{"type":"GeometryCollection","geometries":
[{"type":"Polygon","properties":{"id":520},"arcs":[[-1]]}]}},"arcs":
[[[9717,419],[-1126,-419],[-5070,958],[-2113,898],[-1126,2036],
[422,2335],[-704,2754],[1972,1018],[2253,0],[1267,-419],[1409,-
1437],[3098,-6467],[-282,-1257]]],"transform":{"scale":
[0.007100710071007101,0.016701670167016704],"translate":
[1088433,7800262]}}
● GeoJSON 7.6 MB
● TopoJSON 1.3 MB
● 80 % reduction
What is TopoJSON ?
9/1/16 32Postgis Topology will replace Postgis SimpleFeature
ST_Simplify and Simple Feature Using Topology
common border will not match. No problem
9/1/16 33Postgis Topology will replace Postgis SimpleFeature
Reduced update bandwidth needs for client
Client
Server
Payload reduced
by ST_Simplify
9/1/16 34Postgis Topology will replace Postgis SimpleFeature
ST_Simplify works perfect with Postgis Topology
7990316 bytes 149400 byte (98 % less)
9/1/16 35Postgis Topology will replace Postgis SimpleFeature
JSON mean API flexibility
9/1/16 36Postgis Topology will replace Postgis SimpleFeature
Reduced update bandwidth needs for client
Client
Server
Only new
new data
9/1/16 37Postgis Topology will replace Postgis SimpleFeature
Standard SQL means more open ness
9/1/16 38Postgis Topology will replace Postgis SimpleFeature
Row level seucirty
9/1/16 39Postgis Topology will replace Postgis SimpleFeature
Row level seucirty
9/1/16 40Postgis Topology will replace Postgis SimpleFeature
Client rendering D3 and TopoJSON
“GeoServer and MapServer
supports Simple Feature”
“Postgis Topology supports casting
to Simple Feature”
Postgis Topology
- tested with one billion points
http://www.slideshare.net/laopsahl/foss4-g-topologyjuly162015
- seems to be solid and few errors
Why is not Postgis Topology
used by everybody yet ?
9/1/16 44Postgis Topology will replace Postgis SimpleFeature
Software comes and goes.
Mind the data.
Arnulf Christl
Thanks for your attention.
Lars Aksel Opsahl developer at
The Norwegian Institute of
Bioeconomy Research (NIBIO)

Weitere ähnliche Inhalte

Ähnlich wie Postgis topology presentation_foss4g_oslo_01_09_2016

Foss4 g topology_july_16_2015
Foss4 g topology_july_16_2015Foss4 g topology_july_16_2015
Foss4 g topology_july_16_2015Lars Aksel Opsahl
 
Building Scalable Semantic Geospatial RDF Stores
Building Scalable Semantic Geospatial RDF StoresBuilding Scalable Semantic Geospatial RDF Stores
Building Scalable Semantic Geospatial RDF StoresKostis Kyzirakos
 
Stockage, manipulation et analyse de données matricielles avec PostGIS Raster
Stockage, manipulation et analyse de données matricielles avec PostGIS RasterStockage, manipulation et analyse de données matricielles avec PostGIS Raster
Stockage, manipulation et analyse de données matricielles avec PostGIS RasterACSG Section Montréal
 
Spatial functions in MySQL 5.6, MariaDB 5.5, PostGIS 2.0 and others
Spatial functions in  MySQL 5.6, MariaDB 5.5, PostGIS 2.0 and othersSpatial functions in  MySQL 5.6, MariaDB 5.5, PostGIS 2.0 and others
Spatial functions in MySQL 5.6, MariaDB 5.5, PostGIS 2.0 and othersHenrik Ingo
 
Representing and Querying Geospatial Information in the Semantic Web
Representing and Querying Geospatial Information in the Semantic WebRepresenting and Querying Geospatial Information in the Semantic Web
Representing and Querying Geospatial Information in the Semantic WebKostis Kyzirakos
 
Geek Sync | Having Fun with Spatial Data
Geek Sync | Having Fun with Spatial DataGeek Sync | Having Fun with Spatial Data
Geek Sync | Having Fun with Spatial DataIDERA Software
 
GIS and Map Tiles
GIS and Map TilesGIS and Map Tiles
GIS and Map TilesPetr Pridal
 
2017 RM-URISA Track: Spatial SQL - The Best Kept Secret in the Geospatial World
2017 RM-URISA Track:  Spatial SQL - The Best Kept Secret in the Geospatial World2017 RM-URISA Track:  Spatial SQL - The Best Kept Secret in the Geospatial World
2017 RM-URISA Track: Spatial SQL - The Best Kept Secret in the Geospatial WorldGIS in the Rockies
 

Ähnlich wie Postgis topology presentation_foss4g_oslo_01_09_2016 (9)

Foss4 g topology_july_16_2015
Foss4 g topology_july_16_2015Foss4 g topology_july_16_2015
Foss4 g topology_july_16_2015
 
Building Scalable Semantic Geospatial RDF Stores
Building Scalable Semantic Geospatial RDF StoresBuilding Scalable Semantic Geospatial RDF Stores
Building Scalable Semantic Geospatial RDF Stores
 
Stockage, manipulation et analyse de données matricielles avec PostGIS Raster
Stockage, manipulation et analyse de données matricielles avec PostGIS RasterStockage, manipulation et analyse de données matricielles avec PostGIS Raster
Stockage, manipulation et analyse de données matricielles avec PostGIS Raster
 
Spatial functions in MySQL 5.6, MariaDB 5.5, PostGIS 2.0 and others
Spatial functions in  MySQL 5.6, MariaDB 5.5, PostGIS 2.0 and othersSpatial functions in  MySQL 5.6, MariaDB 5.5, PostGIS 2.0 and others
Spatial functions in MySQL 5.6, MariaDB 5.5, PostGIS 2.0 and others
 
Representing and Querying Geospatial Information in the Semantic Web
Representing and Querying Geospatial Information in the Semantic WebRepresenting and Querying Geospatial Information in the Semantic Web
Representing and Querying Geospatial Information in the Semantic Web
 
Geek Sync | Having Fun with Spatial Data
Geek Sync | Having Fun with Spatial DataGeek Sync | Having Fun with Spatial Data
Geek Sync | Having Fun with Spatial Data
 
About GeoHex
About GeoHexAbout GeoHex
About GeoHex
 
GIS and Map Tiles
GIS and Map TilesGIS and Map Tiles
GIS and Map Tiles
 
2017 RM-URISA Track: Spatial SQL - The Best Kept Secret in the Geospatial World
2017 RM-URISA Track:  Spatial SQL - The Best Kept Secret in the Geospatial World2017 RM-URISA Track:  Spatial SQL - The Best Kept Secret in the Geospatial World
2017 RM-URISA Track: Spatial SQL - The Best Kept Secret in the Geospatial World
 

Kürzlich hochgeladen

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.pptxVivek487417
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1ranjankumarbehera14
 
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
 
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
 
SR-101-01012024-EN.docx Federal Constitution of the Swiss Confederation
SR-101-01012024-EN.docx  Federal Constitution  of the Swiss ConfederationSR-101-01012024-EN.docx  Federal Constitution  of the Swiss Confederation
SR-101-01012024-EN.docx Federal Constitution of the Swiss ConfederationEfruzAsilolu
 
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制vexqp
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...Bertram Ludäscher
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Valters Lauzums
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...nirzagarg
 
PLE-statistics document for primary schs
PLE-statistics document for primary schsPLE-statistics document for primary schs
PLE-statistics document for primary schscnajjemba
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteedamy56318795
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNKTimothy Spann
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制vexqp
 
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 EDUCATIONLakpaYanziSherpa
 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRajesh Mondal
 
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制vexqp
 
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling ManjurJual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjurptikerjasaptiker
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowgargpaaro
 

Kürzlich hochgeladen (20)

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
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
 
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...
 
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...
 
SR-101-01012024-EN.docx Federal Constitution of the Swiss Confederation
SR-101-01012024-EN.docx  Federal Constitution  of the Swiss ConfederationSR-101-01012024-EN.docx  Federal Constitution  of the Swiss Confederation
SR-101-01012024-EN.docx Federal Constitution of the Swiss Confederation
 
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit RiyadhCytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
 
PLE-statistics document for primary schs
PLE-statistics document for primary schsPLE-statistics document for primary schs
PLE-statistics document for primary schs
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
 
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
 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for Research
 
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
 
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...
 
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling ManjurJual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
 

Postgis topology presentation_foss4g_oslo_01_09_2016

  • 1. Postgis Topology will replace Postgis SimpleFeature Lars Aksel Opsahl (NIBIO) The Norwegian Institute of Bioeconomy Research
  • 3. 9/1/16 3Postgis Topology will replace Postgis SimpleFeature Why use different projection on server and client ? SRID 25832 (UTM 32, meter 5-12 degrees ) SRID 25833 (UTM 33, meter 12-21 degrees) SRID 25835 (UTM 35, meter 21-30) SRID 4258 (degrees)
  • 4. 9/1/16 4Postgis Topology will replace Postgis SimpleFeature Client Srid 25833 (meter) Simple Feature Postgis database Srid 4258 (degrees) Test case Simple feature (polygons, lines,points) Simple feature (polygons, lines,points)
  • 5. 9/1/16 5Postgis Topology will replace Postgis SimpleFeature 0% drifted points, 0% overlap (postgis binary to postgis binary(WKB) and back with no projection) SRID 25833
  • 6. 9/1/16 6Postgis Topology will replace Postgis SimpleFeature 90% drifted points (meter to degrees and back using binary) 400 km.
  • 7. 9/1/16 7Postgis Topology will replace Postgis SimpleFeature 90% drifted points (meter to degrees and back using binary) 400 km.
  • 8. 9/1/16 8Postgis Topology will replace Postgis SimpleFeature 99% of polygons overlaps (meter to degrees and back using binary) 400 km.
  • 9. 9/1/16 9Postgis Topology will replace Postgis SimpleFeature 99% of polygons overlaps (meter to degrees and back using binary, with 100 reputations ) 400 km.
  • 10. 9/1/16 10Postgis Topology will replace Postgis SimpleFeature Points drifts with many kilometers (Projection formula UTM 35 on data in UTM 32 meter to degrees and back using binary, with 100 reputations) 50 km.
  • 11. 9/1/16 11Postgis Topology will replace Postgis SimpleFeature What about JSON JSON
  • 12. 9/1/16 12Postgis Topology will replace Postgis SimpleFeature 99% drifted points (postgis binary to JSON and back) 400 km.
  • 13. 9/1/16 13Postgis Topology will replace Postgis SimpleFeature 100% of polygons overlap (postgis binary to JSON and back) 400 km.
  • 14. 9/1/16 14Postgis Topology will replace Postgis SimpleFeature Nano meter and TopologyExceptions 10 m.
  • 15. 9/1/16 15Postgis Topology will replace Postgis SimpleFeature Nano meter and TopologyExceptions 10 m.
  • 16. 9/1/16 16Postgis Topology will replace Postgis SimpleFeature TopologyException: side location conflict at 10.056395207707636 ….... 10 m.
  • 17. 9/1/16 17Postgis Topology will replace Postgis SimpleFeature TopologyException: side location conflict at 10.056395207707636 ….... 10 m.
  • 18. 9/1/16 18Postgis Topology will replace Postgis SimpleFeature Move border with Simple Feature
  • 19. 9/1/16 19Postgis Topology will replace Postgis SimpleFeature Move border with SimpleFeature
  • 20. SIMPLE FEATURE CAUSES “Drifting points” “Duplication of common borders” (Tiny overlaps means more Topo Errors)
  • 21. 9/1/16 21Postgis Topology will replace Postgis SimpleFeature
  • 22. 9/1/16 22Postgis Topology will replace Postgis SimpleFeature Only send points changed by user back to server.
  • 23. 9/1/16 23Postgis Topology will replace Postgis SimpleFeature Only send points changed by user back to server.
  • 24. 9/1/16 24Postgis Topology will replace Postgis SimpleFeature Duplication of common borders
  • 25. 9/1/16 25Postgis Topology will replace Postgis SimpleFeature Move border with Postgis Topology
  • 26. 9/1/16 26Postgis Topology will replace Postgis SimpleFeature How to extend a polygon
  • 27. 9/1/16 27Postgis Topology will replace Postgis SimpleFeature Client github.com/ NibioOpenSource/pgtopo_update_sql Postgis Topology Only new lines/points Using generic JSON API I TopoJSON JSON
  • 28. 9/1/16 28Postgis Topology will replace Postgis SimpleFeature Postgis Topology also gives a lot more than this No drifting points No duplications
  • 29. 9/1/16 29Postgis Topology will replace Postgis SimpleFeature Draw a line around all polygons in a layer
  • 30. 9/1/16 30Postgis Topology will replace Postgis SimpleFeature Postgis Topology:5 new points Simple Feature: 333105 new points (333100 duplicates)
  • 31. 9/1/16 31Postgis Topology will replace Postgis SimpleFeature {"type":"Topology","objects":{"collection": {"type":"GeometryCollection","geometries": [{"type":"Polygon","properties":{"id":520},"arcs":[[-1]]}]}},"arcs": [[[9717,419],[-1126,-419],[-5070,958],[-2113,898],[-1126,2036], [422,2335],[-704,2754],[1972,1018],[2253,0],[1267,-419],[1409,- 1437],[3098,-6467],[-282,-1257]]],"transform":{"scale": [0.007100710071007101,0.016701670167016704],"translate": [1088433,7800262]}} ● GeoJSON 7.6 MB ● TopoJSON 1.3 MB ● 80 % reduction What is TopoJSON ?
  • 32. 9/1/16 32Postgis Topology will replace Postgis SimpleFeature ST_Simplify and Simple Feature Using Topology common border will not match. No problem
  • 33. 9/1/16 33Postgis Topology will replace Postgis SimpleFeature Reduced update bandwidth needs for client Client Server Payload reduced by ST_Simplify
  • 34. 9/1/16 34Postgis Topology will replace Postgis SimpleFeature ST_Simplify works perfect with Postgis Topology 7990316 bytes 149400 byte (98 % less)
  • 35. 9/1/16 35Postgis Topology will replace Postgis SimpleFeature JSON mean API flexibility
  • 36. 9/1/16 36Postgis Topology will replace Postgis SimpleFeature Reduced update bandwidth needs for client Client Server Only new new data
  • 37. 9/1/16 37Postgis Topology will replace Postgis SimpleFeature Standard SQL means more open ness
  • 38. 9/1/16 38Postgis Topology will replace Postgis SimpleFeature Row level seucirty
  • 39. 9/1/16 39Postgis Topology will replace Postgis SimpleFeature Row level seucirty
  • 40. 9/1/16 40Postgis Topology will replace Postgis SimpleFeature Client rendering D3 and TopoJSON
  • 41. “GeoServer and MapServer supports Simple Feature” “Postgis Topology supports casting to Simple Feature”
  • 42. Postgis Topology - tested with one billion points http://www.slideshare.net/laopsahl/foss4-g-topologyjuly162015 - seems to be solid and few errors
  • 43. Why is not Postgis Topology used by everybody yet ?
  • 44. 9/1/16 44Postgis Topology will replace Postgis SimpleFeature Software comes and goes. Mind the data. Arnulf Christl
  • 45. Thanks for your attention. Lars Aksel Opsahl developer at The Norwegian Institute of Bioeconomy Research (NIBIO)