and text based format (GeoJSON, 2018). Since Geo-
JSON is a JSON encoding, the parsing and data inter-
changing for web services are flexible, and it is one
of the most popular encodings for transferring data to
client-side map visualization.
In the literature, beyond GeoJSON, the well-
known spatial formats are Shapefile, and Geogra-
phy Markup Language (GML) (Marqu
´
es-Mateu et al.,
2015). The Shapefile format is probably the most
common one in the fields of GIS and geomatics,
and was introduced by a commercial company (Esri,
2018). The GML format is a standard proposed by
the Open Geospatial Consortium (OGC) (OGC, 2018)
and essentially is an XML grammar for expressing ge-
ographical features whose specification is available in
several official documents. We selected GeoJSON be-
cause it is the most recent format, and is based on the
JavaScript object notation (JSON) (GeoJSON, 2018).
It is defined as a format for encoding a variety of ge-
ographic data structures, and is becoming a valid one
to send geographic data over computer networks or in
mobile devices (Sriparasa, 2013).
The main goal of this paper is to exploit the
data interchange property of GeoJSON to enhance
the GeoPQL system in order to pictorially query a
network of distributed GIS. To this end, we intro-
duce the GeoPQLJ functions that are based on the
GeoJSON format specifications, as illustrated in Sec-
tion 4. These functions are defined for the polygon-
polyline topological relationships
1
. In particular, the
operators we address in this paper are disjoint (DSJ),
inclusion (INC), touch (TCH), intersect (INT), and
pass-through (PTH). Successively, we enhance the
GeoPQL system to query and retrieve data in dis-
tributed GIS, and we describe the underlying logical
diagram. Then, we illustrate the functionalities of the
system by means of an experiment, where the results
of pictorial queries are given.
The paper is structured as follows. In the next sec-
tion, the related work is given, and in Section 3, an
overview about the GeoPQL operators is presented.
In Section 4, the GeoPQLJ functions are defined,
and in Section 5 the related distributed system is de-
scribed. In Section 6, the main functionalities of the
distributed system are illustrated. Finally, in Section
7 the conclusion is given.
2 RELATED WORK
Widespread use of the Web has increased the need to
share and access distributed GIS (Bo and Hui, 1999)
1
A polyline is non self-intersecting (self-crossing), with-
out loops, spirals, and bifurcations.
(Liang et al., 2015) (Vatsavai, 2002). The current
Web-based GIS mostly adopt traditional client/server
or browser/ server architectures (Liang et al., 2015).
In both these environments, the client/browser usu-
ally sends a request to the server, which processes it
and returns the result to the client. For this process,
spatial query languages essentially act as a guide-
line for Web-based GIS. As highlighted in (Amirian
et al., 2014), essentially two approaches are used for
handling spatial data. The first approach is to use
the specifications published and managed by OGC,
whereas the second one is to use web services as core
technologies, such as XML, XSD, WSDL, SOAP. The
main geospatial web service is Web Feature Service
(WFS), which provides access to geospatial data us-
ing GML format. This format contains both geomet-
rical and attribute properties of data.
For instance in (Vatsavai, 2002), the authors pro-
pose the spatial query language GML-QL derived
from XQuery, which is essentially based on two types
of queries, i.e., unary and binary types. They also de-
fine some spatial functions and operations to support
spatial queries. Similarly, in (Guan et al., 2006), the
authors propose GQL, a query language specification
to support spatial queries over GML documents by
extending the data model, algebra, and semantics of
XQuery.
In (Almendros-Jimenez et al., 2015), an XQuery
library for querying Open Street Map (OSM) has been
proposed, following the approach given in (Boucelma
and Colonna, 2004). This library is based on the
spatial operators originally introduced in (Clementini
et al., 1993) and (Egenhofer, 1991). In (Huang et al.,
2009), a similar proposal has been defined which is
based on GML, and also addresses the performance
problem of using XML/GML-native technologies in
order to manipulate large GML documents.
The aforementioned papers present an approach
similar to our proposal, but the former is limited to
the OSM environment, whereas the latter addresses
a general distributed environment without supporting
functional operators. With respect to these papers, our
approach can be used in a general distributed system
thanks to GeoJSON which, by making use of spatial
operators, allows the access to geo-spatial reposito-
ries in a more efficient way. In addition, with respect
to (Almendros-Jimenez et al., 2015), where data are
extracted according to a composition and filtering ap-
proach, in our proposal the user is not required to be
aware about complex query syntaxes because he/she
can benefit of the pictorial querying facilities. In fact,
we use GeoPQL (Ferri and Rafanelli, 2005), and en-
hance the related system in order to query distributed
GIS by using open source JTS libraries (JTS, 2018).
GISTAM 2019 - 5th International Conference on Geographical Information Systems Theory, Applications and Management
176