SlideShare ist ein Scribd-Unternehmen logo
1 von 19
GIS+Perl
GIS Anwendungsgebiete
● Umweltforschung
● Archäologie
● Marketing
● Kartographie
● Städteplanung
● Kriminologie
● Logistik
● usw.
Kartenprojektionen
● Ausmessung der Erde als Ellipsoid
● Verbesserte Vermessungstechnik führte zu
verschiedenen Referenz Ellipsoiden
● Bestimmt reale Position eines
Längen-/Breitengrads
● WGS 84 ist der aktuelle GPS Standard und
wird z.B. auch von Online Karten Anbietern
(Google, OSM usw. genutzt)
Geographische Länge (Longitude)
● Früher Längengrad
● Vom Nullmeridian geteilt nach Ost und
West
● Größtmöglicher Wert 180 Grad (180° O =
180° W)
● In der Informatik wird Ost als Positive, West
als Negative Zahl angegeben
Geographische Breite (Latitude)
● Früher Breitengrad
● Vom Äquator geteilt nach Nord und Süd
● Größtmöglicher Wert 90 Grad (90° N, 90° S)
● In der Informatik wird Nord als Positive, Süd
als Negative Zahl angegeben
Koordinaten
● Der Breitengrad wird traditionell vor dem
Längengrad geschrieben
● 53.555504,9.992173 ist z.B. an der Innen
Alster
● Diese Koordinaten kann man z.B. auch
direkt bei Online Kartenanbietern eingeben
Grad/Minuten/Sekunden?
● Koordinate 16° 19' 28,29"
● Umrechnung: Sekunden / 60, Minuten
addieren, Ergebnis durch 60, Grad addieren
● 16° 19' 28,29" = 16,324525°
Dezimal zu Grad/Minute/Sekunde
● Koordinate 48,177455556° zu
Grad/Minute/Sekunde
● Ganzzahliger Anteil sind Grad,
Nachkommaanteil * 60, Ganzzahliger Anteil
sind Minuten, Nachkommaanteil * 60 ergeben
die Sekunden
● 48,177455556° = 48° 10' 38,84"
Datenhaltung
● SQL Datenbanken wie z.B. MySQL,
PostgreSQL
● PostgreSQL ist mit der PostGIS Erweiterung
MySQL überlegen
● NoSQL wie z.B. Neo4j oder CouchDB
Spatiale Daten
● Koordinaten könnten z.B. in 2 float
Datenfeldern gespeichert werden
● Speicherung in einem Datenfeld das für
Geometrie Daten bestimmt ist
Indizes
● B-tree Index ist ausreichend für Koordinaten
falls man die Daten nur speichern und schnell
abrufen möchte (Index auf float Feldern)
● Spatial Index lohnt sich bei höheren
Geometrien oder wenn erweiterte
Datenbankfunktionen genutzt werden sollen
(Index auf spezielles Geometrie Feld)
● Ein Spatial Index ist ein Überbegriff für Indizes
wie z.B. R-tree, kd-tree Octree usw.
PostGIS Daten
● Arbeitet mit dem OpenGIS (Open Geospatial
Consortium) Standard
● OpenGIS Well-Known Text bzw. Well-Known
Binary
● Extended WKT/WKB (Höheninformation
und/oder mit einem Messwert)
● SQL/MM: Kurven etc. (nicht vollständig
unterstützt)
PostGIS Funktionen
● Räumliche Funktionen wie Berechnung von
Flächen und Distanzen, Verschneidung,
Berechnung von Pufferzonen etc.
● Räumliche Operatoren wie Overlaps, Within,
Contains etc.
● Funktionen für die Erstellung von Geometrien
● Funktionen für die Abfrage von Geometrien in
den Formaten Well-Known Text, Well-Known
Binary, GML, SVG, KML
● Räumliche Indizierung mit dem GiST-Index
PostGIS Erweiterungen
● Umgang mit Rasterdaten
● Routenplanung
Perl
● Module sind im Namensraum Geo::
● Geo::Ellipsoid ist gut geeignet um schnell
Berechnungen mit Koordinaten durchzuführen
Geo::Ellipsoid
● Unterstützt eine Vielzahl an Projektionen
● Besonders Sinnvoll wenn man die
Berechnung nicht direkt in der Datenbank
machen kann/will
Anwendungsbeispiele
● Personen oder POI auf einer Karte darstellen
z.B. Restaurants
● Identifizieren von Clustern
● Ortsabhängige Werbung
● Mobile Handshake
Openstreetmap
● Die gesamte Datenbasis von Openstreetmap
steht frei zum Download zur Verfügung
● Enthalten sind z.B. alle Kartendaten und eine
große POI Datenbank
● Aktuell eine 12GB gepackte Textdatei
● Import dauert lange ;)
Links
● http://dev.mysql.com/doc/refman/5.0/en/spatial-ex
● http://de.wikipedia.org/wiki/PostGIS
● http://postgis.refractions.net/
● http://search.cpan.org/~jgibson/Geo-Ellipsoid-1.12
● http://planet.openstreetmap.org/

Weitere ähnliche Inhalte

Empfohlen

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 

Empfohlen (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

Gis+Perl

  • 2. GIS Anwendungsgebiete ● Umweltforschung ● Archäologie ● Marketing ● Kartographie ● Städteplanung ● Kriminologie ● Logistik ● usw.
  • 3. Kartenprojektionen ● Ausmessung der Erde als Ellipsoid ● Verbesserte Vermessungstechnik führte zu verschiedenen Referenz Ellipsoiden ● Bestimmt reale Position eines Längen-/Breitengrads ● WGS 84 ist der aktuelle GPS Standard und wird z.B. auch von Online Karten Anbietern (Google, OSM usw. genutzt)
  • 4. Geographische Länge (Longitude) ● Früher Längengrad ● Vom Nullmeridian geteilt nach Ost und West ● Größtmöglicher Wert 180 Grad (180° O = 180° W) ● In der Informatik wird Ost als Positive, West als Negative Zahl angegeben
  • 5. Geographische Breite (Latitude) ● Früher Breitengrad ● Vom Äquator geteilt nach Nord und Süd ● Größtmöglicher Wert 90 Grad (90° N, 90° S) ● In der Informatik wird Nord als Positive, Süd als Negative Zahl angegeben
  • 6. Koordinaten ● Der Breitengrad wird traditionell vor dem Längengrad geschrieben ● 53.555504,9.992173 ist z.B. an der Innen Alster ● Diese Koordinaten kann man z.B. auch direkt bei Online Kartenanbietern eingeben
  • 7. Grad/Minuten/Sekunden? ● Koordinate 16° 19' 28,29" ● Umrechnung: Sekunden / 60, Minuten addieren, Ergebnis durch 60, Grad addieren ● 16° 19' 28,29" = 16,324525°
  • 8. Dezimal zu Grad/Minute/Sekunde ● Koordinate 48,177455556° zu Grad/Minute/Sekunde ● Ganzzahliger Anteil sind Grad, Nachkommaanteil * 60, Ganzzahliger Anteil sind Minuten, Nachkommaanteil * 60 ergeben die Sekunden ● 48,177455556° = 48° 10' 38,84"
  • 9. Datenhaltung ● SQL Datenbanken wie z.B. MySQL, PostgreSQL ● PostgreSQL ist mit der PostGIS Erweiterung MySQL überlegen ● NoSQL wie z.B. Neo4j oder CouchDB
  • 10. Spatiale Daten ● Koordinaten könnten z.B. in 2 float Datenfeldern gespeichert werden ● Speicherung in einem Datenfeld das für Geometrie Daten bestimmt ist
  • 11. Indizes ● B-tree Index ist ausreichend für Koordinaten falls man die Daten nur speichern und schnell abrufen möchte (Index auf float Feldern) ● Spatial Index lohnt sich bei höheren Geometrien oder wenn erweiterte Datenbankfunktionen genutzt werden sollen (Index auf spezielles Geometrie Feld) ● Ein Spatial Index ist ein Überbegriff für Indizes wie z.B. R-tree, kd-tree Octree usw.
  • 12. PostGIS Daten ● Arbeitet mit dem OpenGIS (Open Geospatial Consortium) Standard ● OpenGIS Well-Known Text bzw. Well-Known Binary ● Extended WKT/WKB (Höheninformation und/oder mit einem Messwert) ● SQL/MM: Kurven etc. (nicht vollständig unterstützt)
  • 13. PostGIS Funktionen ● Räumliche Funktionen wie Berechnung von Flächen und Distanzen, Verschneidung, Berechnung von Pufferzonen etc. ● Räumliche Operatoren wie Overlaps, Within, Contains etc. ● Funktionen für die Erstellung von Geometrien ● Funktionen für die Abfrage von Geometrien in den Formaten Well-Known Text, Well-Known Binary, GML, SVG, KML ● Räumliche Indizierung mit dem GiST-Index
  • 14. PostGIS Erweiterungen ● Umgang mit Rasterdaten ● Routenplanung
  • 15. Perl ● Module sind im Namensraum Geo:: ● Geo::Ellipsoid ist gut geeignet um schnell Berechnungen mit Koordinaten durchzuführen
  • 16. Geo::Ellipsoid ● Unterstützt eine Vielzahl an Projektionen ● Besonders Sinnvoll wenn man die Berechnung nicht direkt in der Datenbank machen kann/will
  • 17. Anwendungsbeispiele ● Personen oder POI auf einer Karte darstellen z.B. Restaurants ● Identifizieren von Clustern ● Ortsabhängige Werbung ● Mobile Handshake
  • 18. Openstreetmap ● Die gesamte Datenbasis von Openstreetmap steht frei zum Download zur Verfügung ● Enthalten sind z.B. alle Kartendaten und eine große POI Datenbank ● Aktuell eine 12GB gepackte Textdatei ● Import dauert lange ;)
  • 19. Links ● http://dev.mysql.com/doc/refman/5.0/en/spatial-ex ● http://de.wikipedia.org/wiki/PostGIS ● http://postgis.refractions.net/ ● http://search.cpan.org/~jgibson/Geo-Ellipsoid-1.12 ● http://planet.openstreetmap.org/