Beyond points: How to turn SMW into a complete Geographic Information System

Similar documents
Popular Mechanics, 1954

Data Creation and Editing

Among various open-source GIS programs, QGIS can be the best suitable option which can be used across partners for reasons outlined below.

The Canadian Spatial Data Foundry

GeomRDF : A Geodata Converter with a Fine-Grained Structured Representation of Geometry in the Web

These modules are covered with a brief information and practical in ArcGIS Software and open source software also like QGIS, ILWIS.

Pierre Racine Research Assistant Centre for Forest Research Département des sciences du bois et de la forêt, Université Laval, Québec

GeoPostcodes. Trinidad & Tobago

Introduction to GIS I

YYT-C3002 Application Programming in Engineering GIS I. Anas Altartouri Otaniemi

INTRODUCTION TO GIS. Dr. Ori Gudes

Introduction INTRODUCTION TO GIS GIS - GIS GIS 1/12/2015. New York Association of Professional Land Surveyors January 22, 2015

GIS for ChEs Introduction to Geographic Information Systems

Esri UC2013. Technical Workshop.

Performing. Geospatial Analysis. Using Latitude and Longitude Data. Ginger Ni - Software Engineer

ENV208/ENV508 Applied GIS. Week 1: What is GIS?

GeoPostcodes. Denmark

GeoPackage, das Shapefile der Zukunft

GeoPostcodes. Luxembourg

Geodatabase An Introduction

Spatial analysis in XML/GML/SVG based WebGIS

Lecture 5. GIS Data Capture & Editing. Tomislav Sapic GIS Technologist Faculty of Natural Resources Management Lakehead University

GeoPostcodes. Grecia

GeoPostcodes. Litauen

Semantic GIS GeoSPARQL

Features and Benefits

Geographical Databases: PostGIS. Introduction. Creating a new database. References

GIS Functions and Integration. Tyler Pauley Associate Consultant

Practical teaching of GIS at University of Liège

About places and/or important events Landmarks Maps How the land is, hills or flat or mountain range Connected to maps World Different countries

GIS-based Smart Campus System using 3D Modeling

INTRODUCTION TO GEOGRAPHIC INFORMATION SYSTEM By Reshma H. Patil

Developing 3D Geoportal for Wilayah Persekutuan Iskandar

Geodatabase Essentials Part One - Intro to the Geodatabase. Jonathan Murphy Colin Zwicker

What are the five components of a GIS? A typically GIS consists of five elements: - Hardware, Software, Data, People and Procedures (Work Flows)

An open source approach for the intrinsic assessment of the temporal accuracy, up-todateness and lineage of OpenStreetMap

Geography 38/42:376 GIS II. Topic 1: Spatial Data Representation and an Introduction to Geodatabases. The Nature of Geographic Data

gvsig a real tool for GIS technicians

GEOGRAPHICAL INFORMATION SYSTEMS. GIS Foundation Capacity Building Course. Introduction

Geospatial Semantics for Topographic Data

Geospatial Products V8i (SELECTseries 1)

DATA 301 Introduction to Data Analytics Geographic Information Systems

Bentley Map Advancing GIS for the World s Infrastructure

What is GIS? Introduction to data. Introduction to data modeling

Existing Open Source Tools and Possibilities for Cadastre Systems

Census Mapping with ArcGIS

Techniques for Science Teachers: Using GIS in Science Classrooms.

Using CAD data in ArcGIS

Aileen Buckley, Ph.D. and Charlie Frye

EEOS 381 -Spatial Databases and GIS Applications

FlexiCadastre User Conference 2013 GIS Data Verification & Challenges

Spatial Data Cooler Than You d Think. Hope Foley

Introducing GIS analysis

Overview of Geospatial Open Source Software which is Robust, Feature Rich and Standards Compliant

Vector Analysis: Farm Land Suitability Analysis in Groton, MA

Display data in a map-like format so that geographic patterns and interrelationships are visible

Outline. What is MapPlace? MapPlace Toolbar & PopUp Menu. Geology Themes 1:5M 1:1M BCGS 1:250,000. Terranes

Development of Univ. of San Agustin Geographic Information System (USAGIS)

Dynamic Maps and Historical Context

Presenting Tree Inventory. Tomislav Sapic GIS Technologist Faculty of Natural Resources Management Lakehead University

What s New in ArcGIS 10.1 for Desktop. Karen Li Date: October 31, 2012

Working with the Geodatabase

Data Aggregation with InfraWorks and ArcGIS for Visualization, Analysis, and Planning

Lauren Jacob May 6, Tectonics of the Northern Menderes Massif: The Simav Detachment and its relationship to three granite plutons

Name NRS 409 Exam I. 1. (24 Points) Consider the following questions concerning standard data for GIS systems.

Performing Advanced Cartography with Esri Production Mapping

Data. Notes. are required reading for the week. textbook reading and a few slides on data formats and data cleaning

All About Spatial Data. Find it, Manage it, Use it

Geo-analysis + telecommunications. Tommy van der Vorst April 25, 2016

Discovery and Access of Geospatial Resources using the Geoportal Extension. Marten Hogeweg Geoportal Extension Product Manager

Learning ArcGIS: Introduction to ArcCatalog 10.1

V1.0. Session: Labelled Maps Verification, entering names into a GIS and Google Maps/Earth. Pier-Giorgio Zaccheddu

PostGIS Cookbook. open source I community experience distilled

Karsten Vennemann, Seattle. QGIS Workshop CUGOS Spring Fling 2015

Geographers Perspectives on the World

Iowa Department of Transportation Office of Transportation Data GIS / CAD Integration

What is GIS and How Can It Help Me?

Globally Estimating the Population Characteristics of Small Geographic Areas. Tom Fitzwater

GIS CONCEPTS ARCGIS METHODS AND. 2 nd Edition, July David M. Theobald, Ph.D. Natural Resource Ecology Laboratory Colorado State University

Bentley Map V8i (SELECTseries 3)

Designing GIS Databases to Support Mapping and Map Production Charlie Frye, ESRI Redlands Aileen Buckley, ESRI Redlands

Georelational Vector Data Model

Cadcorp Introductory Paper I

Innovation. The Push and Pull at ESRI. September Kevin Daugherty Cadastral/Land Records Industry Solutions Manager

Open Source Technologies and Remotely Sensed Data in Protecting Elephants. Rosemary Alles Dr. Justine Blanford Penn State World Campus July 2015

Lecture 1 Introduction to GIS. Dr. Zhang Spring, 2017

Transcription:

Beyond points: How to turn SMW into a complete Geographic Information System SMWCon 2013, New-York Pierre Racine Contributor to PostGIS Research Professional Center for Forest Research Québec, Canada

Objectives Demonstrate the need to support complex geometries in SMW. Emphasis the need to store geometries natively in the DB. Propose some geospatial functionalities. Discuss how to transpose common GIS concepts into SMW.

Semantic Mediawiki is a Database Meaningful data and types Queries More than a database, it is a web data management system Forms for input and edition. Display and presentation of data (wikitextand template). Possible to develop data driven web applications without having to write low level code (PHP, Ruby, Java, Python, etc )

Semantic Maps is a Spatial Database A spatial database Has special types to store complex geographical entities. Provide functions to manipulate and query spatial entities. Semantic Maps can store points (geographic coordinates) Human constructions (towns, villages, building, etc ). Geographic features (peaks, falls, islands, etc ). Events (shows, conferences, scientific observations, etc ). Moving objects (trucks, plane, boats, cars). Queries By any attributes returning a geographic coordinate. By distance to a specific coordinate. Display as maps Basemaps: Google Map, OpenLayers and OpenStreetMap. Forms Map allowing to point to generate a geographic coordinate. Perfect to create what we call a Web GIS application! But the world is not made just of points

What s missing? 1) Types for representing complex geographic entities Professional spatial databases allows storing more complex geometries LineStrings& MultiLineString Roads, rivers, transmission lines, plane, boat or human trajectories or directions, contour lines, etc Polygons & MultiPolygons Administrative limits (countries, states, agglomerations, postal codes). Ecological delimitations (lakes, land covers, ecologic stratifications, mountain ranges, animal or plant distributions, geological deposit). Footprints (satellite or aerial images, paper maps). Polygons and MultiPolygons may contain holes A common type: GEOMETRY Most spatial databasesstore all thosevectorshapesas a unique type named GEOMETRY. A typical geographic coverage store all its geometries in one table column.

Advantages of the native GEOMETRY type MySQL, PostgreSQL(with PostGIS) and SQLite (with Spatialite) all have a GEOMETRY type. There is a spatial extension to SPARQL called GeoSPARQL. All have a function to convert a text representation (WKT) into GEOMETRY (GeomFromText) and back. All have special spatial indexes for fast retrieval of geometries based on spatial operators. e.g. All points inside a boundary or the bboxof the map All have a set of functions to manipulate and query geometries. Buffer(geom, dist) Within(geom, geom) Distance(geom, geom) (great circle distance on PostGIS!) AsKML(geom) (not in MySQL : ( And many, many more ()

What s missing? 2) Display of complex geometries and symbology Think big! In a typical geographic coverage, many geometries may have thousands of vertexes. People CAN T manually edit textual representation of such geometries. Preferable to NOT display WKT in wikitext, only display an identifier to the DB. Whatif thereare 1 000 000 featuresto display in a querymap? For maps, KML code can easily be generated directly from the DB (AsKML) Symbology(styling of features) KML and SLD are standards ways to describe features symbologies Complex styling can be quite verbose. They could be defined as pages in a MapStyles namespace. A form would help defining the most important SLD or KML properties for point, line, polygon and toponym styles. Semantic Maps could provide a libraries of predefined MapStylespages for points, lines and polygons.

What s missing? 4) Edition of complex geometries 4 ways to create/edit a complex geometry (in order of usability) Upload a row from a shapefileor a KML (or a whole) Semantic Maps MapEditor(no snapping, no holes) A textareaform input to drop a WKT or a KML string created with another sophisticated (more) map editor Wikitext: NO! Only for points.

What s missing? 5) Import/export of geospatial data Import and export shapefiles, CSV with a WKT column and KML with the Data Transfert extension ShapefileARE simple tables (with a geometry column) so the logic is similar to importing a CSV file. One row = one page A PHP shapefilereader exist. KML is XML. KML also contains symbologyinfo that can be imported to MapStyle pages.

What s missing? 6) Parser functions & Queries Some useful parser functions {{#area: GEOMETRY}}, {{#lenght: GEOMETRY}} {{#geometrytype: GEOMETRY}} {{#envelop: GEOMETRY}}, {{#buffer: GEOMETRY dist}} Spatial Comparators (Operators) Show all cities (points) intersecting Germany s border (multipolygon): [[Has location:: intersects{{#show: Germany?Has border}}]]

What s missing? 7) Optional support for different coordinate systems Google Map shows everything in WGS 84 but OpenLayer can project in other coordinate systems. A database of standard coordinate system exist: Each CS has a unique ID called SRID. It is important to be able to reprojecta geometry in another SRID. Most spatial databases support ST_Transform(geom, srid). However thereisno support for reprojectionin MySQL Support for different coordinate systems can be avoided if werequirethatall importeddata to bemapped togethermostbein the samecoordinatesystem (SRID) BEFORE they are imported in SMW.

What s missing? 8) Support for raster Raster data is generally used to represent continuous values like temperature or elevation. They are however of a quite different nature than points, lines and polygons: A polygon representing a geographic feature can have a name, an area, a description, and many other properties. A raster however do not have other descriptive properties than the values of the pixels themselves. In a wiki where different Categories of features are represented by many instances (or Pages), there would always be only one instance of a raster coverage type. The only application that would imply many properties per raster would be a catalog of georeferencedsatellite or aerial images.

Exemples of applications Any application having to describe an object represented by a geographic entity. A gazetteer A catalog of geographical feature with their names in different languages, their synonyms, their parent and children features and the geometry representing them. Cadastral survey A catalog of every property of a city with their owners names, history of values, etc Catalog of geospatial data Catalog of geospatial datasets with their name, type of data they store, info about the producer and the distributors, geographic coverage, etc OpenStreetMap Every feature stored in OpenStreetMapwith revision history, tags, source and the feature itself. An Open Atlas Every articles having a georeference in Wikipedia.

A roadmap 1. Make WKT the text representation of the "Geographic coordinate" type. 2. Store the "Geographiccoordinate"values as native "geometry" type in the DB. 3. Rename"Geographic coordinate""geometry". 4. Adda "Special:ImportSHP"to the Data Transfer extension to import shapefiles as SMW pages. 5. Reuse the Special:ImportSHP code to create a "Load Shape" form input in Semantic Form. 6. Do a "Special:ImportKML" and a form input. 7. Replace complex shape WKT in pages with an ID to the DB shape. 8. Add an "intersects" operator. 9. Define and create predefined MapStyle pages.

Thanks Geospatial Elucubrations @geoelucubration

Wikidata?

What s missing? 2) Storage of complex geometries As text in the database (not really a good option) KML Includes symbology and supported by Google Map, Earth Supports only one coordinate system (WGS 84). WKT (Well Known Text) Does not include symbology, data only. As native spatial database types (better option) MySQL, Spatialite or PostGIS geometry Advantages: Access to a multitude of manipulation functions Indexation for fast search and spatial operators Examples: As an annotation in a SMW page (minimalist) Textual representations for complex shapes are way too verbose. Impossible to create/edit by hand. Better simply put an identifier of the real stored native geometry. A new geometry type replacing Geographic coordinates.