Skip to content

Commit

Permalink
Correct xmlllint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanzimanyi committed Jul 9, 2024
1 parent ca0763b commit 6a45e97
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 45 deletions.
28 changes: 14 additions & 14 deletions docs/AIS_Dashboard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
properties for different outputs, and use Variables to create
dynamic visuals.
</para>
<section xml:id="contents">
<section id="contents">
<title>Contents</title>
<para>
The module covers the following topics:
Expand Down Expand Up @@ -48,7 +48,7 @@
</listitem>
</itemizedlist>
</section>
<section xml:id="tools">
<section id="tools">
<title>Tools</title>
<para>
The tools used in this module are as follows:
Expand All @@ -66,7 +66,7 @@
</listitem>
</itemizedlist>
</section>
<section xml:id="setting-up-the-data-source">
<section id="setting-up-the-data-source">
<title>Setting up the Data Source</title>
<para>
Data for the workshop is loaded into a MobilityDB database hosted
Expand All @@ -80,7 +80,7 @@
repository</ulink>.
</para>
</section>
<section xml:id="setting-up-the-visualization-dashboard">
<section id="setting-up-the-visualization-dashboard">
<title>Setting up the Visualization Dashboard</title>
<para>
We can use <ulink url="https://grafana.com/">Grafana</ulink>,
Expand Down Expand Up @@ -137,7 +137,7 @@ sudo apt-get install grafana-enterprise
</listitem>
</orderedlist>
</section>
<section xml:id="sign-in-and-connect-to-data-source">
<section id="sign-in-and-connect-to-data-source">
<title>Sign in and Connect to Data Source</title>
<para>
We can now sign in to Grafana by going to
Expand Down Expand Up @@ -209,13 +209,13 @@ sudo apt-get install grafana-enterprise
</mediaobject>
</figure>
</section>
<section xml:id="creating-a-dashboard">
<section id="creating-a-dashboard">
<title>Creating a Dashboard</title>
<para>
With the dashboard configured, and a datasource added, we can now
build different panels to visualize data in intuitive ways.
</para>
<section xml:id="speed-of-individual-ships">
<section id="speed-of-individual-ships">
<title>Speed of Individual Ships</title>
<para>
Let's visualize the speed of the ships using the previously
Expand Down Expand Up @@ -408,7 +408,7 @@ LIMIT 5;
</mediaobject>
</figure>
</section>
<section xml:id="routes-used-most-frequently-visualized-with-a-static-heat-map">
<section id="routes-used-most-frequently-visualized-with-a-static-heat-map">
<title>Routes Used Most Frequently Visualized with a Static Heat
Map</title>
<para>
Expand Down Expand Up @@ -586,7 +586,7 @@ FROM aisinputfiltered TABLESAMPLE SYSTEM (40)
</mediaobject>
</figure>
</section>
<section xml:id="number-of-boats-moving-through-a-given-area">
<section id="number-of-boats-moving-through-a-given-area">
<title>Number of Boats Moving Through a Given Area</title>
<orderedlist numeration="arabic">
<listitem>
Expand Down Expand Up @@ -707,7 +707,7 @@ GROUP BY P.port_name, P.lat, P.lng
</mediaobject>
</figure>
</section>
<section xml:id="boats-in-close-proximity-in-a-given-time-range">
<section id="boats-in-close-proximity-in-a-given-time-range">
<title>Boats in Proximity in a Given Time Range</title>
<para>
Follow the similar steps to add a Geomap panel as before, we
Expand Down Expand Up @@ -891,7 +891,7 @@ FROM TimeClosestShips t;
</figure>
</section>
</section>
<section xml:id="dynamic-dashboards---creating-variables">
<section id="dynamic-dashboards---creating-variables">
<title>Dynamic Dashboards - Creating Variables</title>
<para>
We can use variables in Grafana to manipulate time-ranges that are
Expand Down Expand Up @@ -1002,7 +1002,7 @@ FROM TimeClosestShips t;
window. We have now provided a user with the ability to
dynamically modify visualization queries and slice through time.
</para>
<section xml:id="dynamic-query-number-of-boats-moving-through-a-given-area-in-a-certain-time-period">
<section id="dynamic-query-number-of-boats-moving-through-a-given-area-in-a-certain-time-period">
<title>Dynamic Query: Number of Boats Moving Through a Given Area
in a Certain Time Period</title>
<para>
Expand Down Expand Up @@ -1075,7 +1075,7 @@ GROUP BY P.port_name, P.lat, P.lng
</mediaobject>
</figure>
</section>
<section xml:id="global-variables">
<section id="global-variables">
<title>Global Variables</title>
<para>
Grafana also has some
Expand Down Expand Up @@ -1107,7 +1107,7 @@ GROUP BY P.port_name, P.lat, P.lng
</para>
</section>
</section>
<section xml:id="final-dashboard">
<section id="final-dashboard">
<title>Final Dashboard</title>
<para>
The final dashboard will look like this. Note there are a couple
Expand Down
46 changes: 17 additions & 29 deletions docs/FlightDataDashboard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1150,14 +1150,7 @@ AND (maxValue(geoaltitude) IS NOT NULL
</section>
<section><title>Flights Taking-off in Some Interval of Time (User-Defined)</title>
<para>
<emphasis role="strong">Note:</emphasis>
This query makes used
of a sample set of data that has 200 flights to return results.
<quote>flight_traj_sample</quote>
is just a sampled version of
<quote>flight_traj</quote>. As of the writing of this workshop,
Grafana does not support display of vectors, and so individual
latitude and longitude points are used as a proxy.
<emphasis role="strong">Note:</emphasis> This query makes used of a sample set of data that has 200 flights to return results. <quote>flight_traj_sample</quote> is just a sampled version of <quote>flight_traj</quote>. As of the writing of this workshop, Grafana does not support display of vectors, and so individual latitude and longitude points are used as a proxy.
</para>
<para>
In order to make the query use Grafana global time range panel replace
Expand Down Expand Up @@ -1310,11 +1303,9 @@ AND geoaltitude IS NOT NULL;
</itemizedlist>
</listitem>
<listitem>
<para>
We will also add a manual override (top right of panel options, beside "All") to limit the minimum value of vertrate. This will make all values
below the minimum the same color, making larger values more obvious. This can be used to quickly
pinpoint locations where a large rate of ascent existed.
</para>
<para>
We will also add a manual override (top right of panel options, beside "All") to limit the minimum value of vertrate. This will make all values below the minimum the same color, making larger values more obvious. This can be used to quickly pinpoint locations where a large rate of ascent existed.
</para>
<para>
<emphasis role="strong">Overrides</emphasis>
</para>
Expand All @@ -1323,28 +1314,25 @@ AND geoaltitude IS NOT NULL;
<para>
Add field override > Fields with name > vertrate
</para>
<itemizedlist spacing="compact">
<listitem>
<para>
Min: 5
</para>
</listitem>
<listitem>
<para>
Max: 20
</para>
</listitem>
</itemizedlist>
</listitem>
<itemizedlist spacing="compact">
<listitem>
<para>
Min: 5
</para>
</listitem>
<listitem>
<para>
Max: 20
</para>
</listitem>
</itemizedlist>
</itemizedlist>
</listitem>

</orderedlist>
<para>
Here is a zoomed in version of how each individual flight ascent will look, as well as a view of
multiple flights at the same time. The marker size is increasing with altitude, and the color is showing
more aggressive vertical ascent rates. We can see towards the end of the visualized ascent period, there
is a short increased vertical ascent rate.
Here is a zoomed in version of how each individual flight ascent will look, as well as a view of multiple flights at the same time. The marker size is increasing with altitude, and the color is showing more aggressive vertical ascent rates. We can see towards the end of the visualized ascent period, there is a short increased vertical ascent rate.
</para>
<figure>
<title>Zoomed in view of flight ascent</title>
Expand Down
4 changes: 2 additions & 2 deletions docs/GTFS.xml
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ INSERT INTO trip_segs (trip_id, route_id, service_id, stop1_sequence, stop2_sequ
WITH temp AS (
SELECT trip_id, route_id, service_id, stop_sequence,
LEAD(stop_sequence) OVER w AS stop_sequence2,
MAX(stop_sequence) OVER (PARTITION BY trip_id),
shape_id, arrival_time, LEAD(arrival_time) OVER w, perc, LEAD(perc) OVER w
MAX(stop_sequence) OVER (PARTITION BY trip_id),
shape_id, arrival_time, LEAD(arrival_time) OVER w, perc, LEAD(perc) OVER w
FROM trip_stops WINDOW w AS (PARTITION BY trip_id ORDER BY stop_sequence)
)
SELECT * FROM temp WHERE stop_sequence2 IS NOT null;
Expand Down

0 comments on commit 6a45e97

Please sign in to comment.