Now that we have set up our own project, we are ready to explore the data, and use it for traffic analysis.
We will use the Visual analytics page for this. Visual analytics is the science of analytical reasoning using interactive visual interfaces.
With visual analytics you can explore and answer questions on-the-spot, without having to run long and complex algorithms beforehand.
The visual analytics page provides three views on the data: a map, a timeline, and the data distribution panel. The three views are linked, for example, if you zoom in on the map, the timeline and data distributions will show statistics for only the data visible on the map.
Click on Visual analytics to open the visual analytics page for your newly created project. Note by the way how the name of the active project is shown at the top of the page.
In this part of the tutorial we will zoom in on the data, and perform a local analysis by styling and filtering the data.
To get familiar with the Visual analytics page, zoom in and out on the map with the scroll wheel and on the timeline. Note how the histogram on the timeline updates when you zoom in on the map: The histogram corresponds to the data shown on the map. This means that the map viewport itself serves as a filter.
Similarly, when zooming in on the time line, the time range is reduced and the map updates.
Finally, also the statistics on the vessel data properties on the right side in the DATA DISTRIBUTION panel update and reflect the summary statistics of the data being shown on the map.
Now, let’s focus on a single area, for this perform following steps:
In the search box on the top right of the map, type
Suez, and select
Suez, Egypt. The map now fits on the region around Suez in Egypt.
Disable the Dark background layer by disabling the checkbox next to
Dark on the LAYERS panel.This should reveal the aerial imagery.
To restrict our analysis anchorage areas just before the Suez canal, let’s draw a circular shape as shown in the video below.You do so by clicking on the circle icon in the map menu bar above the map.
Provide a name for the shape, for example
Check the box Use shape as filter and leave the filter type to Inside
Press CREATE to create the shape on the map. Note: during shape creation you can always hit the escape button to cancel the shape creation.
We now are looking at the AIS records inside the shape. You can further zoom in using the scroll wheel to focus on the data.
Let’s visualize the data by the
Speed (knots) attribute, mapping speed to a color using a suitable colormap.This is done in following steps:
In the LAYERS panel, locate the
Sample Data: Spire Maritime layer and click on the dropdown box that now says
Number of records and select
Speed (knots) instead.
Change the colormap to one with more color variation, for example the purple-to-yellow plasma colormap.
Change the VALUE RANGE slider so that the left knob says
0 and the right knob is close to
15.Notice how we can now clearly distinguish moving vessels from vessels at anchor or moored.Note also how the legend adapts to your configuration and how the SPEED (KNOTS) widget in the DATA DISTRIBUTION on the right is colored according to the configuration.You should also see on that bar chart how most vessels are not moving (about 74% of the location records depending on the shape that you use for filtering).
Let’s further analyze the distributions of the moving traffic and the standstill traffic.
In the LAYERS panel, locate the
Sample Data: Spire Maritime layer and find the Filters panel.
Click on the second dropdown box in that filters panel and select
Drag the left-most knob to the
2 value and click on INCLUDE.
This applies a filter to only maintain the records that have a speed of at least 2 knots (and that are inside the Suez shape that we created before).
This hence highlights the moving vessels and their locations.
Notice how the circular patterns on the map disappear (those are vessels at anchor) and notice how the velocity profile shows a clear peak at the [7,8] knots interval. Also look at the histogram on the timeline, showing total numbers of vessels over time. As you can see by March 23-25 there are less moving vessels.
Let’s now visualize the opposite: the vessels at anchor., This can easily be done by clicking on the EXCLUDE button in the Filters section in the LAYERS panel. Note the very different histogram on the timeline. The number of vessels stuck is clearly increasing from March 23 and on.
Using the styling and filtering capability you can extract and highlight any insight on the map. Let’s disable the Speed filter again, by clicking on the red chip in the Filters section in the LAYERS panel.
Before continuing with the next step, let’s save our analysis as follows:
Press the bookmark icon in the top right corner of the page menu bar.
Provide a name and optional description. Let’s just use the name
Suez for now.
Press CREATE BOOKMARK
You can now always return to your analysis from this step by clicking on Project bookmarks on the navigation bar and by clicking on the relevant bookmark card.
In the previous part of the tutorial, we toggled between looking at traffic moving and not moving.
You can also compare different situations using the split view capability. For this, click on the + button above the map on the top right side.
The page now displays two maps, two timelines, and two data distribution panels.
By default, these maps and timelines are linked. That means that if you navigate one map, the other follows in the same way. You can unlink the maps and timelines by clicking on the link button above the right map and the right timeline. Note, you can keep the link function activated for the map while the link function is disactivated for the timeline (and vice versa), as shown in the example below.
Let’s unlink the timelines and set a different time filter on both maps:
To unlink the timelines, click on the link button in the top right corner of the second timeline.
On the first timeline, move the right-most thick vertical line to the left, so that the time range is set on the first 5 days in the data (Mar 5 until Mar 9).
On the second timeline, move the first thick vertical line to the right, focusing on the last 5 days in the data set (Mar 22 until Mar 26).
Notice that in the second period, there are about 38% less different vessels near Suez, while, surprisingly, the timeline indicates an increase in number of vessels per hour. The reason is that there is much less traffic moving, and vessels are stuck because of the Ever Given blocking passage.
The split view capability enables other side-by-side analysis use cases:
Look and compare two different regions
Apply two different filters in each view (e.g., looking at slow traffic in the first, and fast traffic in the second)
Style your data by two different properties (e.g., styling by speed in the first, and by vessel status in the second)
For this step of the tutorial, we are going to look at vessel movements through different ports in Europe. For the example, we will focus on Rotterdam, Antwerp, and Hamburg.
For this we will create an Areas of interest layer by uploading a GeoJSON file with the 3 port areas:
Download and save Antwerp_Rotterdam_Hamburg.geojson, a file with the different port areas.
Select Areas of interest on the navigation bar on the left.
Click on the ADD AREAS OF INTEREST button on the top right of the page.
Drag 'n drop the
Antwerp_Rotterdam_Hamburg.geojson file on the drop box or click on the drop box and select the file using the file chooser UI.
When the file is uploaded it shows the shapes on a map, in this case only 3, next to a number of configuration options.
Display name: This is the name of that will be used for the layer on the map in the Visual analytics page.
Description: An optional description to help other users understand what this file is meant for.
Area display name property: Here you select which property is used to reference each shape.
Distance threshold: Allows to set a distance in meters surrounding the shape (or point) to extend the shape with. This is especially useful for point locations.
Let’s finalize the Area of interest creation clicking on SAVE.
Now, let’s look at all traffic inside and passing through these maritime ports.
For this follow these steps:
Go back to the Visual analytics page and reload the page to go back to the default settings.
Rotterdam in the search box on the map.
Click on Rotterdam, South Holland, Netherlands or hit enter to fit the map on the searched location.
In the Filters section in the LAYERS panel, set an area filter using the
Click on the first dropdown box in the Filters section and select Area.
Click on the second dropdown box and select Through.
Click on the third dropdown box in the Filters section and select
Click on the *INCLUDE_ button.
We now have applied a filter that retains only the AIS records of vessels passing through the Rotterdam area. You can navigate and zoom in on the data to further inspect the area. Note that the histogram statistics, for example on the timeline, are now reflecting the applied spatial filter.
Look at the global traffic over the past 3 weeks passing through Rotterdam as follows:
Right click on the map.
Select Fit Map.You should now see where these vessels came from and went to.
You can disable the filter again in two ways:
By clicking on the x button on the map.
By clicking on the x button on the chip in the Filters section in the LAYERS panel.
Note that you can also enable spatial filters for shapes on the map, directly from the map:
Antwerp in the search box and hit enter.
Now right-click on the polygon shape surrounding the port and select Use Shape Antwerp as Filter → Through.
Right-click on the area on the map.
A context menu should now be shown. Select Use shape Antwerp as filter.
Then select Through.
Note how in the Filters section in the LAYERS panel a chip appears saying
Through: Antwerp (x).
We have now applied a filter that retains all records of all trips passing through the Antwerp area.
Right-click and fit the map again to see the global traffic passing through Antwerp.
You can then zoom in on any area with traffic and analyze and identify the vessels coming from that area.
Remember that the viewport of the map itself serves as a filter, meaning that just moving around provides you information on the traffic inside the region you are looking at, considering also the other filters defined.
Go to the next part: Trend analytics