Simple Features for R: Standardized Support for Spatial Vector Data by Edzer Pebesma
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
Show Guideguide Web Searching for GIS Services and Web Mapping Have Been Either Published Or an Introduction Adopted by OGC
showshow guideguide Web searching for GIS services and Web Mapping have been either published or An Introduction adopted by OGC. Who are OGC’s members? to OpenGIS There are three main levels of OGC membership: Principal, Technical and By Adam Gawne-Cain and Chris Holcroft Associate. The higher membership levels confer more voting rights. There are now OpenGIS is the activity pursued by the Open GIS over 300 members featuring 20 Principal members and 25 Technical members from Consortium (OGC). OpenGIS seeks to achieve around the globe. transparent access to disparate geo-data and geo- The membership of OGC is impressively processing resources in a networked environment by broad. Most major GIS companies are members, along with database companies, providing a rich suite of open interface specifications. operating system companies, national mapping agencies, large government These interface specifications will enable GIS developers departments, universities and research to create inter-operable components that provide this institutes. The membership is international, but mainly focused in North transparency. America and Europe. The difference between OpenGIS and A second advantage of OGC’s interface- How does OGC make Interface previous attempts to standardise GIS is based approach is that users can be sure Specifications? that OGC agrees interfaces, and not that they are looking at genuine, live data, Every two months, the OGC Technical neutral file formats. The problem with and not at a static file generated some time Committee (TC) and Management neutral file formats (e.g. SDTS or NTF) in the past. Committee (MC) meet for a week. was that specifications grew so complex The meetings are held in different that each GIS could only support a sub-set A third, practical advantage of interfaces locations around the world, hosted by one of the format. -
Installing R
Installing R Russell Almond August 29, 2020 Objectives When you finish this lesson, you will be able to 1) Start and Stop R and R Studio 2) Download, install and run the tidyverse package. 3) Get help on R functions. What you need to Download R is a programming language for statistics. Generally, the way that you will work with R code is you will write scripts—small programs—that do the analysis you want to do. You will also need a development environment which will allow you to edit and run the scripts. I recommend RStudio, which is pretty easy to learn. In general, you will need three things for an analysis job: • R itself. R can be downloaded from https://cloud.r-project.org. If you use a package manager on your computer, R is likely available there. The most common package managers are homebrew on Mac OS, apt-get on Debian Linux, yum on Red hat Linux, or chocolatey on Windows. You may need to search for ‘cran’ to find the name of the right package. For Debian Linux, it is called r-base. • R Studio development environment. R Studio https://rstudio.com/products/rstudio/download/. The free version is fine for what we are doing. 1 There are other choices for development environments. I use Emacs and ESS, Emacs Speaks Statistics, but that is mostly because I’ve been using Emacs for 20 years. • A number of R packages for specific analyses. These can be downloaded from the Comprehensive R Archive Network, or CRAN. Go to https://cloud.r-project.org and click on the ‘Packages’ tab. -
Data and Service Discovery in Linked SDI and Linked VGI
Data and Service Discovery in Linked SDI and Linked VGI Virtual Workshop on Geospatial Semantic Architectures Todd Pehle May 7, 2013 Chief Engineer tpehle-at-orbistechnologies.com 1 Agenda • Introduce Example OGC Workflow • Describe Analogous Linked Data Workflow: • Geographic Feature Types in Linked SDI/VGI • Data Discovery with GeoVoID • Service Capabilities with GeoSPARQL Service Descriptions • SPARQL-based Feature Collections • Conclusion 2 Example OGC-based GIS Workflow 1. Discover OGC Catalog 2. Search Catalog by Feature Type/BBOX 3. Discover OGC WFS Service 4. GetCapabilities 5. GetFeature 6. DescribeFeatureType 7. Add WFS Layer(s) to Map 8. Get Feature By ID 3 Feature Types in LOD What constitutes a feature type in Linked Data? • Linked Data is described using RDFS and OWL ontologies giving data a formal semantics • Consensus on a “core” intensional semantics for geographic phenomena remains elusive • Option 1: Wait (a long time) for consensus • Option 2: Minimize ontological commitment and apply definitions driven by extensional alignment (i.e. – no core) 4 Common LOD Feature Type Definitions W3C Basic Geo (Linked VGI) OGC GeoSPARQL (Linked SDI) ? SpatialThing SpatialObject ? Feature Geometry Point ns:City Relations = rdfs:subClassOf 5 Dataset Discovery with VoID and DCAT • VoID Capabilities: • General metadata • Structural • Class/property partitions • Linksets • DCAT Capabilities: • Interoperability of Catalogs • Non-RDF Catalogs Source: http://docs.ckan.org/en/latest/geospatial.html • Often stored in data portal like CKAN • Offers BBOX dataset queries • Has extension support for CSW • Flexible discovery via centralized catalogs AND socialized links (VoID Repos, URI backlinks, etc.) 6 Geospatial Data Discovery with GeoVoID Goals: • Enable discovery of geographic feature data and services in LOD via: • Feature Type Discovery • Feature Type Spatial Extents • Dataset Spatial Extents • Thematic Attribution Schema Discovery (maybe) • GeoSPARQL Endpoint Discovery • Reuse and extend existing LOD vocabs vs. -
Cityjson: a Compact and Easy-To-Use Encoding of the Citygml Data Model
CityJSON: A compact and easy-to-use encoding of the CityGML data model Hugo Ledoux Ken Arroyo Ohori Kavisha Kumar Balazs´ Dukai Anna Labetski Stelios Vitalis This is the author’s version of the work. It is posted here only for personal use, not for redistribution and not for commercial use. The definitive version will be published in the journal Open Geospatial Data, Software and Standards soon. H. Ledoux, K. Arroyo Ohori, K. Kumar, B. Dukai, A. Labetski, and S. Vitalis (2018). CityJ- SON: A compact and easy-to-use encoding of the CityGML data model. Open Geospatial Data, Software and Standards, In Press. DOI: http://dx.doi.org/10.1186/s40965-019-0064-0 Full details of the project: https://cityjson.org The international standard CityGML is both a data model and an exchange for- mat to store digital 3D models of cities. While the data model is used by several cities, companies, and governments, in this paper we argue that its XML-based ex- change format has several drawbacks. These drawbacks mean that it is difficult for developers to implement parsers for CityGML, and that practitioners have, as a con- sequence, to convert their data to other formats if they want to exchange them with others. We present CityJSON, a new JSON-based exchange format for the CityGML data model (version 2.0.0). CityJSON was designed with programmers in mind, so that software and APIs supporting it can be quickly built. It was also designed to be compact (a compression factor of around six with real-world datasets), and to be friendly for web and mobile development. -
The Rockerverse: Packages and Applications for Containerisation
PREPRINT 1 The Rockerverse: Packages and Applications for Containerisation with R by Daniel Nüst, Dirk Eddelbuettel, Dom Bennett, Robrecht Cannoodt, Dav Clark, Gergely Daróczi, Mark Edmondson, Colin Fay, Ellis Hughes, Lars Kjeldgaard, Sean Lopp, Ben Marwick, Heather Nolis, Jacqueline Nolis, Hong Ooi, Karthik Ram, Noam Ross, Lori Shepherd, Péter Sólymos, Tyson Lee Swetnam, Nitesh Turaga, Charlotte Van Petegem, Jason Williams, Craig Willis, Nan Xiao Abstract The Rocker Project provides widely used Docker images for R across different application scenarios. This article surveys downstream projects that build upon the Rocker Project images and presents the current state of R packages for managing Docker images and controlling containers. These use cases cover diverse topics such as package development, reproducible research, collaborative work, cloud-based data processing, and production deployment of services. The variety of applications demonstrates the power of the Rocker Project specifically and containerisation in general. Across the diverse ways to use containers, we identified common themes: reproducible environments, scalability and efficiency, and portability across clouds. We conclude that the current growth and diversification of use cases is likely to continue its positive impact, but see the need for consolidating the Rockerverse ecosystem of packages, developing common practices for applications, and exploring alternative containerisation software. Introduction The R community continues to grow. This can be seen in the number of new packages on CRAN, which is still on growing exponentially (Hornik et al., 2019), but also in the numbers of conferences, open educational resources, meetups, unconferences, and companies that are adopting R, as exemplified by the useR! conference series1, the global growth of the R and R-Ladies user groups2, or the foundation and impact of the R Consortium3. -
Understanding and Working with the OGC Geopackage Keith Ryden Lance Shipman Introduction
Understanding and Working with the OGC Geopackage Keith Ryden Lance Shipman Introduction - Introduction to Simple Features - What is the GeoPackage? - Esri Support - Looking ahead… Geographic Things 3 Why add spatial data to a database? • The premise: - People want to manage spatial data in association with their standard business data. - Spatial data is simply another “property” of a business object. • The approach: - Utilize the existing SQL data access model. - Define a simple geometry object. - Define well known representations for passing structured data between systems. - Define a simple metadata schema so applications can find the spatial data. - Integrate support for spatial data types with commercial RDBMS software. Simple Feature Model 10 area1 yellow Feature Table 11 area2 green 12 area3 Blue Feature 13 area4 red Geometry Feature Attribute • Feature Tables contain rows (features) sharing common properties (Feature Attributes). • Geometry is a Feature Attribute. Database Simple Feature access Query Connection model based on SQL Cursor Value Geometry Type 1 Type 2 Spatial Geometry (e.g. string) (e.g. number) Reference Data Access Point Line Area Simple Feature Geometry Geometry SpatialRefSys Point Curve Surface GeomCollection LineString Polygon MultiSurface MultiPoint MultiCurve Non-Instantiable Instantiable MultiPolygon MultiLineString Some of the Major Standards Involved • ISO 19125, Geographic Information - Simple feature access - Part 1: common architecture - Part 2: SQL Option • ISO 13249-3, Information technology — Database -
A Survey of Geospatial Semantic Web for Cultural Heritage
heritage Review A Survey of Geospatial Semantic Web for Cultural Heritage Ikrom Nishanbaev 1,* , Erik Champion 1 and David A. McMeekin 2 1 School of Media, Creative Arts, and Social Inquiry, Curtin University, Perth, WA 6845, Australia; [email protected] 2 School of Earth and Planetary Sciences, Curtin University, Perth, WA 6845, Australia; [email protected] * Correspondence: [email protected] Received: 23 April 2019; Accepted: 16 May 2019; Published: 20 May 2019 Abstract: The amount of digital cultural heritage data produced by cultural heritage institutions is growing rapidly. Digital cultural heritage repositories have therefore become an efficient and effective way to disseminate and exploit digital cultural heritage data. However, many digital cultural heritage repositories worldwide share technical challenges such as data integration and interoperability among national and regional digital cultural heritage repositories. The result is dispersed and poorly-linked cultured heritage data, backed by non-standardized search interfaces, which thwart users’ attempts to contextualize information from distributed repositories. A recently introduced geospatial semantic web is being adopted by a great many new and existing digital cultural heritage repositories to overcome these challenges. However, no one has yet conducted a conceptual survey of the geospatial semantic web concepts for a cultural heritage audience. A conceptual survey of these concepts pertinent to the cultural heritage field is, therefore, needed. Such a survey equips cultural heritage professionals and practitioners with an overview of all the necessary tools, and free and open source semantic web and geospatial semantic web platforms that can be used to implement geospatial semantic web-based cultural heritage repositories. -
Installing R and Cran Binaries on Ubuntu
INSTALLING R AND CRAN BINARIES ON UBUNTU COMPOUNDING MANY SMALL CHANGES FOR LARGER EFFECTS Dirk Eddelbuettel T4 Video Lightning Talk #006 and R4 Video #5 Jun 21, 2020 R PACKAGE INSTALLATION ON LINUX • In general installation on Linux is from source, which can present an additional hurdle for those less familiar with package building, and/or compilation and error messages, and/or more general (Linux) (sys-)admin skills • That said there have always been some binaries in some places; Debian has a few hundred in the distro itself; and there have been at least three distinct ‘cran2deb’ automation attempts • (Also of note is that Fedora recently added a user-contributed repo pre-builds of all 15k CRAN packages, which is laudable. I have no first- or second-hand experience with it) • I have written about this at length (see previous R4 posts and videos) but it bears repeating T4 + R4 Video 2/14 R PACKAGES INSTALLATION ON LINUX Three different ways • Barebones empty Ubuntu system, discussing the setup steps • Using r-ubuntu container with previous setup pre-installed • The new kid on the block: r-rspm container for RSPM T4 + R4 Video 3/14 CONTAINERS AND UBUNTU One Important Point • We show container use here because Docker allows us to “simulate” an empty machine so easily • But nothing we show here is limited to Docker • I.e. everything works the same on a corresponding Ubuntu system: your laptop, server or cloud instance • It is also transferable between Ubuntu releases (within limits: apparently still no RSPM for the now-current Ubuntu 20.04) -
Developing Geosparql Applications with Oracle Spatial and Graph
Developing GeoSPARQL Applications with Oracle Spatial and Graph Matthew Perry, Ana Estrada, Souripriya Das, Jayanta Banerjee Oracle, One Oracle Drive, Nashua, NH 03062, USA Abstract. Oracle Spatial and Graph – RDF Semantic Graph, an option for Ora- cle Database 12c, is the only mainstream commercial RDF triplestore that sup- ports the OGC GeoSPARQL standard for spatial data on the Semantic Web. This demonstration will give an overview of the GeoSPARQL implementation in Oracle Spatial and Graph and will show how to load, index and query spatial RDF data. In addition, this demonstration will discuss complimentary tools such as Oracle Map Viewer. 1 Introduction The Open Geospatial Consortium (OGC) published the GeoSPARQL standard in 2012 [1]. This standard defines, among other things, a vocabulary for representing geospatial data in RDF and an extension of the W3C SPARQL query language [4] that allows spatial processing. Oracle Database has provided support for RDF data with the Spatial and Graph op- tion since 2005. GeoSPARQL has been supported since 2013, beginning with version 12c Release 1 [2]. Oracle Spatial and Graph is the only mainstream commercial RDF triplestore that supports significant components of the OGC GeoSPARQL standard. A demonstration of Oracle’s technology will give an overview of the current state-of- the-art for managing linked geospatial data. The remainder of this paper describes major components of OGC GeoSPARQL and then discusses the architecture of Oracle Spatial and Graph. This is followed by a description of key features of Oracle Spatial and Graph that will be demonstrated. 2 The OGC GeoSPARQL Standard The OGC GeoSPARQL standard defines a number of components ranging from top-level OWL classes to a set of rules for query transformations. -
R Generation [1] 25
IN DETAIL > y <- 25 > y R generation [1] 25 14 SIGNIFICANCE August 2018 The story of a statistical programming they shared an interest in what Ihaka calls “playing academic fun language that became a subcultural and games” with statistical computing languages. phenomenon. By Nick Thieme Each had questions about programming languages they wanted to answer. In particular, both Ihaka and Gentleman shared a common knowledge of the language called eyond the age of 5, very few people would profess “Scheme”, and both found the language useful in a variety to have a favourite letter. But if you have ever been of ways. Scheme, however, was unwieldy to type and lacked to a statistics or data science conference, you may desired functionality. Again, convenience brought good have seen more than a few grown adults wearing fortune. Each was familiar with another language, called “S”, Bbadges or stickers with the phrase “I love R!”. and S provided the kind of syntax they wanted. With no blend To these proud badge-wearers, R is much more than the of the two languages commercially available, Gentleman eighteenth letter of the modern English alphabet. The R suggested building something themselves. they love is a programming language that provides a robust Around that time, the University of Auckland needed environment for tabulating, analysing and visualising data, one a programming language to use in its undergraduate statistics powered by a community of millions of users collaborating courses as the school’s current tool had reached the end of its in ways large and small to make statistical computing more useful life. -
Geosparql Query Tool a Geospatial Semantic Web Visual Query Tool
GeoSPARQL Query Tool A Geospatial Semantic Web Visual Query Tool Ralph Grove1, James Wilson2, Dave Kolas3 and Nancy Wiegand4 1Department of Computer Science, James Madison University, Harrisonburg, Virginia, U.S.A. 2Department of Integrated Science and Technology, James Madison University, Harrisonburg, Virginia, U.S.A. 3Raytheon BBN Technologies, Columbia, Maryland, U.S.A. 4Space Science and Engineering Center, University of Wisconsin, Madison, Wisconsin, U.S.A. Keywords: Semantic Web, Geographic Information Systems, GeoSPARQL, SPARQL, RDF. Abstract: As geospatial data are becoming more widely used through mobile devices and location sensitive applications, the potential value of linked open geospatial data in particular has grown, and a foundation is being developed for the Semantic Geospatial Web. Protocols such as GeoSPARQL and stSPARQL extend SPARQL in order to take advantage of spatial relationships inherent in geospatial data. This paper presents GeoQuery, a graphical geospatial query tool that is based on Semantic Web technologies. GeoQuery presents a map-based user interface to geospatial search functions and geospatial operators. Rather than using a proprietary geospatial database, GeoQuery enables queries against any GeoSPARQL endpoint by translating queries expressed via its graphical user interface into GeoSPARQL queries, allowing geographic information scientists and other Web users to query linked data without knowing GeoSPARQL syntax. 1 INTRODUCTION Tool (GeoQuery)1, a graphical geospatial query tool that is based on Semantic Web technologies. The Semantic Web has the potential to greatly GeoQuery translates queries expressed through its increase the usability of publicly available data by graphical user interface into GeoSPARQL queries, allowing access to open data sets in linked format which can then be executed against any over the Web. -
Geosparql: Enabling a Geospatial Semantic Web
Undefined 0 (0) 1 1 IOS Press GeoSPARQL: Enabling a Geospatial Semantic Web Robert Battle, Dave Kolas Knowledge Engineering Group, Raytheon BBN Technologies 1300 N 17th Street, Suite 400, Arlington, VA 22209, USA E-mail: {rbattle,dkolas}@bbn.com Abstract. As the amount of Linked Open Data on the web increases, so does the amount of data with an inherent spatial context. Without spatial reasoning, however, the value of this spatial context is limited. Over the past decade there have been several vocabularies and query languages that attempt to exploit this knowledge and enable spatial reasoning. These attempts provide varying levels of support for fundamental geospatial concepts. In this paper, we look at the overall state of geospatial data in the Semantic Web, with a focus on the upcoming OGC standard GeoSPARQL. GeoSPARQL attempts to unify data access for the geospatial Semantic Web. We first describe the motivation for GeoSPARQL, then the current state of the art in industry and research, followed by an example use case, and the implementation of GeoSPARQL in the Parliament triple store. Keywords: GeoSPARQL, SPARQL, RDF, geospatial, geospatial data, query language, geospatial query language, geospatial index 1. Introduction In this paper, we discuss an emerging standard, Geo- SPARQL [24] from the Open Geospatial Consortium Geospatial data is increasingly being made avail- (OGC)1. This standard aims to address the issues of able on the Web in the form of datasets described us- geospatial data representation and access. It provides ing the Resource Description Framework (RDF). The a common representation of geospatial data described principles of Linked Open Data, detailed in [5], en- using RDF, and the ability to query and filter on the courage a set of best practices for publishing and con- relationships between geospatial entities.