The Geo Dashboard of WSO2 DAS is a Jaggery application that provides realtime information about geo spatial objects. It processes spatial data from an external source of events and analyzes/manipulates this data to produce meaningful information to end users using the geo dashboard. You can interact with it to generate a variety of alerts and warnings as follows.
|Speed alert||You can specify a maximum speed limit to all spatial objects. If an object exceeds the specified speed, an alert will be generated.|
|Proximity alert||You can specify a radius and a time. Thereby, a warning will be populated if two spatial objects arrive near each other within the specified limits.|
|Within alert||You can specify a geo area and if any spatial object comes in to the specified area an alert will be generated.|
|Stationery alert||You can specify a geo area and a fluctuation radius and a time, which will generate an alert if any spatial object is located in that area during the specified time. Fluctuation radius is used to minimize the fluctuation effect of a spatial object.|
|Congestion Alert||You can define a geo area. An alert is generated when the congestion level in that area changes.|
You can use the Geo Dashboard of WSO2 DAS as described below.
Set up the following prerequisites before starting the configurations.
- Install the GPL - Siddhi Geo Extension feature. For detailed instructions to install GPL features, see Installing WSO2 GPL Features.
- Copy the two extension JAR files in the directory
- Add <Role>GeoDashboard</Role> to /repository/conf/carbon.xml under <ServerRoles> parent tag
Add the following configuration in <DAS_HOME>/repository/conf/datasources/master-datasources.xml file under <datasources> parent element and restart the server.
Running the Geo Dashboard
To deploy the required artifacts to run the Geo dashboard, follow the steps below:
Navigate to the
<DAS_HOME>/repository/deployment/serverdirectory and check whether it contains the
carbonappsdirectory. If it does not exist, create it.
carbonappsdirectory may not be available by default if your DAS installation is a fresh installation.
- Copy the
org_wso2_carbon_geo_dashboard-1.0.0.carfile from the
<DAS_HOME>/samples/capp/directory and place it in the
Executing the producer
Follow the steps below to run the tfl-feed producer client from the command line.
- Download GeoTools GIS toolkit
- Copy the following client JAR files from downloaded
<GeoTools_HOME>directory to both
- Download JTS Topology Suite.
- Copy jts-1.8.jar from
<JTS_HOME>/libdirectory to both
- Navigate to
<DAS_HOME>/samples/cep/producers/tfl-feed/directory, and execute the
antcommand in a new tab of your DAS console, to execute the producer of the Geo Dashboard application.
Accessing the Geo Dashboard
Follow the steps below to start and access the Geo Dashboard.
- Start the WSO2 DAS server. For instructions, see Running the Product .
- Access the Geo Dashboard application in your Web browser using the following URL: https://localhost:9443/portal/dashboards/geo-dashboard
This dashboard can be used to define alerts, define geo fences, click on spatial objects to view information relating to them etc.