Geo - processing Services to fleets control in the Spatial ...

unalaskaweepingInternet και Εφαρμογές Web

19 Ιουλ 2012 (πριν από 5 χρόνια και 1 μήνα)

255 εμφανίσεις

processing Services to fleets control in the Spatial Data
Infrastructure of the Republic of Cuba

MSc. Lic.
Guillermo González Suárez


enterprise group
, Cuba,
, Manicaragua, Villa Cara.

Sc. Ing. Rafael Cruz Iglesias

MSc. Ing.José Luis Capote Fernández

Lic. Raquel Fernández Pérez

Téc. Liset Becerra Lugones

Lic. Lineidys Fernández Águila

Lic. Mildrey Rodríguez González del Valle



enterprise group
, Cuba.


Using th
e services and the cartography available in the Spatial Data
Infrastructure of the Republic of Cuba (IDERC for its initials in Spanish) several
projects have been developed about information linked to geographical elements.
One of them is an application to
locate vehicles based on Web to follow mobiles on
vectorial cartography and raster, designed for controling fleets. This application
allows the mobiles’ monitoring of a remote form on a network of communications,
making possible to rebuild the behavior o
f the vehicle in a certain period of time, re
preparing his trajectory and analyzing his speed, detentions in authorized
destinations or not, etc. by means of information stored in a historical database, it
also provides to the user a group of tools for th
e handling of maps, similar to the tools
of professional softwares for handling the Geographical Information System. Its
architecture is focused to services, there is produced the integration and linking of
several processing services and the distribution
of geospatial information on the
Web. It is implemented on free software platforms, it uses PostgreSQL as database
agent, Business Intelligence and Reporting Tools as a tool to generate reports,
GeoServer as maps service, everything is run on Apache Tomca
t 6.0 as server of
Web applications, the new utilities have been implemented on Java and it is
nourished of the geospatial services available in the Spatial Data Infrastructure of the
Republic of Cuba, as the services of satelital images and vectorial cart
Nowadays it offers services to an important group of transport fleets in all over the
country and its information is consulted by the users of the system.

Free Software



For s
everal years GEOCUBA enterprise group has been developing a service
map based on the OpenGIS specifications in version 1.0 and 2.0. This service is
being used in the Spatial Data Infrastructure of the Republic of Cuba and in other
corporative solutions to
provide vectorial cartography with very good results.

The maps service has been developed from the OpenGIS Consortium
specifications that work closely with ISO TC/211 (Geography/Geomática) and

OpenGIS© Web Map Service Implementation Specifica
tion 1.1.0.

OpenGIS© Geography Markup Language (GML) 2.0 Implementation

OpenGIS© Web Feature Service Implementation Specification.

OpenGIS© Styled Layer Descriptor.

OpenGIS© Web Coverage Service Implementation Specification.

OpenGIS© Filter
Encoding Specification.

OpenGIS© OpenLS Core Services.

An important attribute of the Spatial Data Infrastructure of the Republic of Cuba
(IDERC) is its services set based on standards to access to the geospatial data.
Nowadays are available: Web Map Serv
ice (WMS version 1.1.1), Web Feature
Service (WFS version 1.0.0) and Web Coverage Service (WCS version 1.0.0), which
implement the specifications of GML 4,0 and SLD 1.0.

The Web services constitute the new paradigm of distributed applications, that
es the best aspects of the development of components and the development
Web using standard protocols and data formats of generalized use to obtain multi
platform integration. That is the reason because of the greater efforts are focused in
the use of Web

From April, 2006 GEOCUBA enterprise group has an application of fleets control
based on the IDERC, applied for transport bases in all over the country, which
requires its constant development to guarantee the new functionalities.

At present ti
me there is a tendency at world
wide level to the use of free software
taking into account the advantages it entails (there are no licensing costs. Software
can settle in unlimited number of machines and it can be copied and distributed in a
free way. If i
n addition to be free it is of Open Source it also has access to the source
code and it is possible to be modified freely to adapt it to particular necessities) and
our country is taking it as strategy for the future use and development of the

he free software community has developed a good number of projects related to
GIS that they include viewers, libraries and complete systems. This development has
been well
known and also increased in the last years, arriving to have more than 170
projects, the majority related to visualization of geographic information. The
systems at issue have been developed mainly in C for UNIX platforms. Some of them
have reached a good maturity degree, though others do not happen to be

Based on
the experiences acquired in the free software use for different
functionalities, among them the geographic information handling, GEOCUBA
enterprise group decided migrate its applications to free platforms, and this manner
obtain a product with complete te
chnological sovereignty.



The application of vehicles location implemented is based on Web and its main
function is follow mobiles on vectorial cartography and raster, it was designed to
rol different fleets of vehicles within a client
server architecture.

This application allows the mobiles’ monitoring from a remote form on a network
of communications, making possible to rebuild the behavior of the vehicle in a certain
period of time,
preparing its trajectory and analyzing speed, detentions in
authorized destinations or not, etc. by means of information stored in a historical

Its architecture is oriented to services, there takes place the integration and
chaining of several
services of processing and geospatial data distributed on the
Web. It is nourished of the geospatial services available in the Spatial Data
Infrastructure of the Republic of Cuba (IDERC).

In this scheme the mobiles’ positioning data are obtained Online o
r Deferred,
through the Web towards the central servers from AVL where the data bases and the
application reside.

This application interacts with the services that will recover the positioning
information of the data bases and the maps services available
in the IDERC to
generate the different thematic maps turn out to combine the data and maps.

From 2006 on, a Web application was
implemented in ASP
, it used SQL Server
2000 as data base platform. From the advances obtained in the field of free software
a n
ew version was developed with similar benefits but considerable improvements in
Web services, the reports management, spatial queries, the maps visualization and
the application sustainability; based in this technology and from a totally new
development in
which the problems of the previous version related to the initial
design adjustments to the constant users requirements, are solved.

2.1 Technologies

Programming language:
Java. Google Web Toolkit (GWT), NetBeans

Data Base:

Maps Viewer

Maps Service:
GeoMIXWMS, GeoServer.

Web and Applications service:

Business Intelligent Reports (BIRT).


NetBeans is a desktop platform for the development of applications using Java,
rough an integrated development environment (IDE).

The NetBeans platform allows that the applications are developed from a
software components set, called modules. A module is a Java file that contains java
classes, written to interact with the NetBeans A
PIs and a special file (manifest file)
that identifies it as a module. The applications constructed from modules can be
extended adding new modules to him. Due to modules can be developed
independently, the applications based on the NetBeans platform can b
e extended
easily by other software developers.

NetBeans is a great successful open source project with a great base of users, a
community in constant growth, and with at about 100 partners anywhere in the world.
Sun Microsystems founded the open source p
roject NetBeans on June 2000 and
continues being the main projects sponsor.


GWT (Google Web

GWT is framework created by Google that allows hiding the complexity of several
aspects of the AJAX technology. It is compatible with all navigators which
is very
important, because they need different codes. The concept of Google Web Toolkit is
quite simple, basically with any Java integrated development environment (IDE) what
it needs is to create the Java code and the compiler will translate to HTML and



Tomcat (also called Jakarta Tomcat or Apache Tomcat) works like a container of
servlets developed under the Jakarta project in the Apache Software Foundation.
Tomcat implements the servlets specifications and Sun Microsystems Jav
a Server
Pages (JSP).

Tomcat is a Web server with servlets and JSPs support. It includes Jasper
compiler, who compiles JSPs turning them in servlets. The Tomcat servlets motor
often appears in combination with the Apache Web server.

Tomcat can work like
Web server by itself. At the beginnings there was a
perception about the use of Tomcat as independent form only recommendable for
environments of development and environments with minimum speed requirements
and transactions management. Nowadays no longer t
hat perception exists and
Tomcat is used like independent Web server in environment with high traffic level
and discharge availability.

Since Tomcat was written in Java, it works in any operating system that has the
virtual Java machine.


Application Arch

The new application is based on Open Source software and the interfaces
defined by OpenGIS having the following architecture:



Data Base

Authentication and Authorization

This module is b
ased on JAAS (Java Authentication and Authorization Service).
This specification uses an independent platform to define a security based on users
and rolls. It is one of the most useful security platforms in Java.

Authentication Service


There are user’s profiles (Analyst, Administrator, and Technician) who define
joined to the level of these users (Everything, Province, Organization, Firm and
Group) the options of the application to whom they have access, the data they can
see or modify
, etc.

ser’s profiles


The structure is formed by three levels: organization, firm and group. For each
one of the levels reports were defined that consolidate the information at that level,
whereas for the group level the informati
on in addition will be detailed.



A trajectories service was implemented that stores in a data base table the
statistics of each trajectory in which we can find distance, combustible consumed, the
driver that mad
e the route, the trip ticket data that endorses the route and others. The
data corresponding to the trajectory points are stored in an external file, that it has
unique ID formed by 18 digits (6 for the registration number, 8 for date and 4 for the
hour in which the data were transferred). Example AAA123200712311720 is
ID corresponding to the trajectory of the car AAA123 that was raised January 31,
2007 at 5:20 p.m.

This ID is used in addition as connection between the tables that store the
ntary elements of the trajectory.


The authorized destinies are used so that:

To detect stopping in authorized destinies and none authorized.

To control the time in authorized destinies for the analysis of delay in the load
or the unl

To define the operations reflected in the Letter Bearing to make the analysis
of the main transportation indicators.

Trajectory S

Each transport base has access to its authorized destinies.

These destinies can be also in other
levels, for example at level of firm,
organization or everything, so that the firm destinies are available for all the bases of
that firm and the one organization for all the firms.

The transport base administrators can create new destinies that will be v
and incorporated to the data base of destinies by the authorized personnel for it. This
allows the control of the destinies that are gotten up and would avoid the duplicity of
the information.




One of the main modules is the
one destined to the administration of the
application. In this module some data information is taken and stored of a persistent
form in data bases. In the context of this application the multiple tables are published
and in different users rolls. Each use
r roll and each table to be modified need a
different page. Some of these tables are:







Type of cars


To each of these tables administration rolls are applied where a user can publish
or visualize some
fields and others no. That is why the time of development of the
application is proportional to the time that is used in each one of the pages that
compose it. For that reason is feasible implement a component that encapsulates the
edition of these organi
zations and using parameters to set the edition page. In order
to create this component a JavaScript library was used based on AJAX, that is called



The reports were designed and executed using Business Intelligence and
Reporting Tools (BIRT).
BIRT is an Intelligence system of businesses and reports for
web applications, specially based on Java and J2ee.

Report in BIRT

For the visualization of
was developed a component using Ext library, in
JavaScript as well
as its encapsulations to be used in GWT, having obtained itself an
interface like the one that is coming:

Report Tool Viewer


Maps Viewers

For the maps visualization was developed a component using two libraries of
classes in JavaScript as w
ell as its encapsulations to be used in GWT.
These two
libraries were Ext and OpenLayers.

Ext is a library of Open Source classes in JavaScript language that can be
included in Web applications and includes a great amount of visual components with
a visua
l interface very well conceived. This library of components is going to be used
in several modules of the application and its inclusion in the panels that visualize the
maps allows an easy integration with the rest of the application.

The Ext developer f
oundation also develops an encapsulation to be used in Java
language by means of GWT. This encapsulation allows the use of these
components to visualize a logic application from a high
level language as Java is.

On the other hand OpenLayers is a class’s
library destined to visualization and
manipulation of geospatial information in Web. This is an Open Source library and it
has an ample developer community and dependent products what guarantees its
development. OpenLayers have classes to visualize the in
formation stored in maps
servers of different specifications, including the OpenGIS standard. It also allows the
visualization in the client of information in vectorial format in different forms, it could
be used marking images or traditional geometries (p
oints, lines and polygons), all of
them using easy customize styles.

Map Viewer Component

The interaction with OpenLayers using GWT is obtained by means of an Open
Source encapsulation available for the same one that has been enriched by the

group of technology of the Spatial Data Infrastructure of the Republic of Cuba.




The standards implemented in the Spatial Data Infrastructure of the Republic
of Cuba satisfy the requirements with the users of geographic information and
ct correctly with other compatible products OpenGIS, that is the case of


The geographic information available in the Spatial Data Infrastructure of the
Republic of Cuba is ready to be used, through its interphases, in GIS Web


The str
ength reached by the Infrastructure of Spatial data of the Republic of
Cuba in the use of free software for geographic information allows him to
confront projects of GIS and give answer to their increasing necessity.



Open GIS Consortium, Inc.,
The OpenGIS Abstract Specification, Versión 4,

OpenGIS Consortium, Inc., OpenGIS Simple Features Specification For
OLE/COM Revision 1.1, 1999

OpenGIS Consortium, Inc., OpenGIS Simple Features Specification For SQL
Revision 1.1, 1999

Open GIS Conso
rtium, Inc., OpenGIS Web Map Server Interface Implementation
Specification Revision 1.0.0, 2000.

Open GIS Consortium, Inc.,Geography Markup Language (GML) 2.0. OpenGIS®
Implementation Specification, 20 February 2001

Open GIS Consortium, Inc., Web Feature
Service Implementation Specification,

GSDI, The SDI CookBook, Version 1, 2000

ADOBE SYSTEMS INCORPORATED (2000): SVG, Scalable Vector Graphics,
Release notes,

Sang, Shin. "Using Google Web Toolkit (GWT) and NetBeans for Building AJAX
Applications" June 2005;

Sang, Shin. "Free Java Programming with Passion! Online Course" Septiembre

Sang, Shin. " 18
week "Free" Ajax and Web 2.0 Programming (w
ith Passion!)
Online Course" Julio 2006;