@@ -124,7 +124,7 @@ Data obtained in :doc:`data`.
124124This section will cover the status of the database in order to get the same
125125results when processing the queries.
126126
127- Exercise 1 : Set the search path
127+ Exercise 2 : Set the search path
128128--------------------------------------------------------------------------------
129129
130130First step in pre processing is to set the search path for ``Waterways ``
@@ -141,7 +141,7 @@ particular table is to be imported.
141141 .. literalinclude :: ../scripts/un_sdg/sdg11/set_path.txt
142142
143143
144- Exercise 2 : Verify database configuration
144+ Exercise 3 : Verify database configuration
145145--------------------------------------------------------------------------------
146146
147147As part of the every project tasks: inspect the database structure.
@@ -166,14 +166,13 @@ As part of the every project tasks: inspect the database structure.
166166
167167 .. literalinclude :: ../scripts/un_sdg/sdg11/get_tables.txt
168168
169- Exercise 6 : Count the number of Waterways
169+ Exercise 4 : Count the number of Waterways
170170................................................................................
171171
172172The importance of counting the information on this workshop is to make sure that
173- the same data is used and consequently the results are same. Also, some of the
174- rows can be seen to understand the structure of the table and how the data is
175- stored in it.
176-
173+ the same data is used and consequently the results are same.
174+ Also, some of the rows can be seen to understand the structure of the table and
175+ how the data is stored in it.
177176
178177.. literalinclude :: ../scripts/un_sdg/sdg11/all_exercises_sdg11.sql
179178 :start-after: exercise_6.txt
@@ -192,7 +191,7 @@ building the graph, the data has to be inspected to determine if there is any
192191invalid data. This is a very important step to make sure that the data is of
193192required quality. pgRouting can also be used to do some Data Adjustments.
194193
195- Exercise 7 : Remove waterways not for the problem
194+ Exercise 5 : Remove waterways not for the problem
196195--------------------------------------------------------------------------------
197196
198197.. image :: images/sdg11/remove_waterways.png
@@ -230,7 +229,7 @@ altitude of the city, are to be removed from the ``waterways_ways`` table.
230229
231230.. note :: A better approach might be to fix the original data in OSM website.
232231
233- Exercise 8 : Get the Connected Components of Waterways
232+ Exercise 6 : Get the Connected Components of Waterways
234233================================================================================
235234
236235As the rivers in the data are not having single edge, i.e, multiple edges make up
@@ -299,7 +298,7 @@ Next query uses this output and stores the component id in the waterways_ways
299298 :end-before: exercise_10.txt
300299 :language: sql
301300
302- Exercise 10 : Creating a function that gets the city buffer
301+ Exercise 7 : Creating a function that gets the city buffer
303302--------------------------------------------------------------------------------
304303
305304A function can be created for the same task. This will be help when the table
@@ -316,7 +315,7 @@ has more than one city.
316315 .. literalinclude :: ../scripts/un_sdg/sdg11/exercise_10.txt
317316
318317
319- Exercise 11 : Finding the components intersecting the buffer
318+ Exercise 8 : Finding the components intersecting the buffer
320319================================================================================
321320
322321Next step is to find the components of waterways which lie in the buffer zone of
@@ -338,7 +337,7 @@ Output shows the distinct component numbers which lie in the buffer zone of the
338337That is, the rivers that lie within the city.
339338
340339
341- Exercise 12 : Get the rain zones
340+ Exercise 9 : Get the rain zones
342341================================================================================
343342
344343In this excercise the area , where if it rains, the
@@ -377,7 +376,7 @@ Create a Buffer around the river components.
377376
378377This will give us the requires area, where if it rains, the city will be affected.
379378
380- Exercise 13 : Create a union of rain zones
379+ Exercise 10 : Create a union of rain zones
381380================================================================================
382381Multiple polygons that are obtained can also be merged using ``ST_Union ``. This
383382will give a single polygon as the output.
0 commit comments