<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rodrigo Arias Braun - GIS Course | TYC GIS Training</title>
	<atom:link href="https://www.giscourse.com/author/r-arias/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.giscourse.com</link>
	<description>Courses &#38; Training - ArcGIS 10, ArcGIS PRO, QGIS, Python, JS, Development</description>
	<lastBuildDate>Wed, 20 Mar 2024 12:20:15 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.7</generator>

<image>
	<url>https://www.giscourse.com/wp-content/uploads/2017/07/cropped-flavicon-01-32x32.png</url>
	<title>Rodrigo Arias Braun - GIS Course | TYC GIS Training</title>
	<link>https://www.giscourse.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Creating a regular grid of cells in ArcGIS Pro</title>
		<link>https://www.giscourse.com/creating-a-regular-grid-of-cells-in-arcgis-pro/</link>
					<comments>https://www.giscourse.com/creating-a-regular-grid-of-cells-in-arcgis-pro/#respond</comments>
		
		<dc:creator><![CDATA[Rodrigo Arias Braun]]></dc:creator>
		<pubDate>Wed, 07 Jun 2023 12:21:14 +0000</pubDate>
				<category><![CDATA[BLOG]]></category>
		<guid isPermaLink="false">https://www.giscourse.com/?p=18778</guid>

					<description><![CDATA[Sometimes, we need to generate a grid or network of rectangular cells to place certain elements at specific distances from each other. An example of this could be the systematic location of sampling plots which will be visited for data capture. To carry out this task in ArcGIS Pro, we have the “Create grid” tool  [...]]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">Sometimes, we need to generate a grid or network of rectangular cells to place certain elements at specific distances from each other.<span id="more-18778"></span> An example of this could be the systematic location of sampling plots which will be visited for data capture.</p>
<p style="text-align: justify;">To carry out this task in ArcGIS Pro, we have the &#8220;Create grid&#8221; tool from the &#8220;Data management tools &#8211; Sampling&#8221; set. This tool allows us to generate such rectangular or quadrangular cell networks using polyline or polygon geometries, as well as (optional) point geometries indicating cell centres. Besides that, this grid can be oriented in any direction we want.</p>
<p style="text-align: justify;">We&#8217;ll start creating a grid of vertically oriented quadrangular cells. For that, all we need as imput data is a layer (entity class or shapefile) containing the surface area where we want to generate the grid. In this case, this will be a polygon layer with a single entity containing the surface area of a hill for which we want to generate a network of samplig plots.</p>
<p style="text-align: justify;"><img decoding="async" class="aligncenter wp-image-33271" src="https://www.giscourse.com/wp-content/uploads/2024/03/01_Monte_limite.png" alt="" width="650" height="342" /></p>
<p style="text-align: justify;">Once the layer is incorporated to our map, we run the &#8220;Create grid&#8221; tool. First, we must specify the extension of it. For this, the &#8220;Template extension&#8221; drop-down menu offer us this options:</p>
<p style="text-align: justify; padding-left: 40px;">&#8211; Default: the extension will be the maximun size that can be determined by the rest of the entered data (the data extension itself shall remian fixed at 0).<br />
&#8211; Current view extent.<br />
&#8211; As specified below: Minimum and maximum X and Y values must be introduced.<br />
&#8211; Browse&#8230;: A layer stored in the system must be chosen. Its extension will be the one used by the grid.<br />
&#8211; Same as layer: One of the opened layers in the map will be selected. Its extension will be used for the grid.</p>
<p style="text-align: justify;">In this case, we&#8217;ll select: &#8220;Same as layer: Monte (Hill)&#8221;.</p>
<p style="text-align: justify;"><img decoding="async" class="aligncenter wp-image-33272" src="https://www.giscourse.com/wp-content/uploads/2024/03/02_Extension_capa_monte.png" alt="" width="650" height="342" /></p>
<p style="text-align: justify;">This way the grid will have, as minimum (we&#8217;ll see why minimum), the extension of the layer for which we want to generate. We see that upon selection, the checkboxes &#8220;Original coordinates of the grid&#8221;, &#8220;Y axis coordinates&#8221; and &#8220;Opposite corner of the grid&#8221; have been completed, in addition to the boxes corresponding to the extension of the template.</p>
<p style="text-align: justify;">The original coordinate of the grid is the point from which the grid is generated, which corresponds to the bottom left corner of it. The opposite corner of the grid correspond with the upper righ corner and the Y coordinate refers to, aligned with the orignal coordinate of the grid, gives place to the line that determine the direction of it. By default, a Y point located 10 metres north fromt he original coordinate is generated, which gives place to a vertical grid. If the original coordinates or the ones in the opposite corner are modified, the final extension of the grid will adjust.</p>
<p style="text-align: justify;">Hereafter, we must choose either the size (height and width) of the cells or the number of columns and rows that must be build inside the previously indicated extension. In this case, we have introduced the same distance for both height and width of the cells (250 metres), which will result in quadrangular cells.</p>
<p style="text-align: justify;">Finally, we must choose what type of geometry we want the grid to be generated in (Polyline or polygon), as well as pointing out if we want an additional point layer containing the center of every cell (&#8220;Create label points&#8221; checkbox). In this case, we check this box because said points will be the center of our sampling plots.</p>
<p style="text-align: justify;">The only thing left to do is to define the name and location where it will be saved and run the tool. The result will consist on two layers (one the grid itself and the other one the centers of each cell) on which the grid will have a vertical orientation and its extension will only match with the previously established if none of the columns or rows is left incomplete, in which case it will be completed beyond the pre-established extension.</p>
<p style="text-align: justify;"><img decoding="async" class="aligncenter wp-image-33273" src="https://www.giscourse.com/wp-content/uploads/2024/03/03_Red_vertical_250m_creada.png" alt="" width="650" height="342" /></p>
<p style="text-align: justify;">To generate a grid with a different orientation, we must modify the &#8220;Y axis coordinate&#8221; parameter so that , together with the point of origin, the line whose direction the grid will follow is defined. We must consider that on this case, the extension will no longer reference the surface area on which the grid will be generated, but rather continue referencing the rectangular/quarangular area that would occupy in case this was vertical. Therefore, we must think of a strategy to define both the extension and the direction of the grid so it falls over the desired surface area and orientation.</p>
<p style="text-align: justify;">In our case, two polygon layers have been generated. On the first one a vertical rectangle has been created with a extension big enought to cover the hole target surface area (Hill) and whose lower left corner matches with the desired point of origin of the grid. On the second layer, a rectangle was also created, with its lower left corner also matching the point of origin of the future new grid, but it is oriented on the direction we want to build the grid.</p>
<p style="text-align: justify;"><img decoding="async" class="aligncenter wp-image-33274" src="https://www.giscourse.com/wp-content/uploads/2024/03/04_Oblicua_extension.png" alt="" width="650" height="342" /></p>
<p style="text-align: justify;">The layer that contains the vertical rectangle will be used to define the extension of the grid, while the other one will be used to define the Y axis coordinate by extracting the coordinate of the upper left corner of it. After defining the rest of parameters, we run the tool and we&#8217;ll have our new grid cell, oriented in the desired direction and covering all the target surface area.</p>
<p><img decoding="async" class="aligncenter wp-image-33275" src="https://www.giscourse.com/wp-content/uploads/2024/03/05_Oblicua_Red_3.png" alt="" width="650" height="342" /></p>
<p style="text-align: justify;">It is worth mentioning that although our diagonal rectangle covers the hole target surface area, it&#8217;s not necessary. In fact, a line could be used or even we can introduce manually the coordinates of the point we want.</p>
<p style="text-align: justify;">As an additional step, we might want to restrict the grid to only the target surface area, which does not need to be rectangular or quadrangular. For that, we use the &#8220;Cut&#8221; tool (Analysis tools &#8211; Extract) selecting the grid layer as &#8220;Input dataset or entity&#8221; and the target surface area layer as &#8220;Cutting entities&#8221;.</p>
<p><img decoding="async" class="aligncenter wp-image-33276" src="https://www.giscourse.com/wp-content/uploads/2024/03/06_Recortar_red_oblicua.png" alt="" width="650" height="342" /></p>
<p style="text-align: justify;">After running the tool, we will now have our cell grid confined to our target surface area.</p>
<p style="text-align: justify;"><img decoding="async" class="alignnone wp-image-33277" src="https://www.giscourse.com/wp-content/uploads/2024/03/07_Red_oblicua_recortada2.png" alt="" width="381" height="322" /> <img decoding="async" class="alignnone wp-image-33278" src="https://www.giscourse.com/wp-content/uploads/2024/03/08_Red_vertical_recortada_2.png" alt="" width="381" height="322" /></p>
<p style="text-align: right;">Note: There is a rating embedded within this post, please visit this post to rate it.</p>
<p>Original post:</p>
<p style="text-align: justify;"><a href="https://www.cursosgis.com/crear-una-red-regular-de-celdas-en-arcgis-pro/" target="_blank" rel="noopener">Crear una red regular de celdas en ArcGIS Pro</a>.</p>
<h2 style="text-align: center;">Training provided by professionals</h2>
<p style="text-align: center;"><a href="https://www.giscourse.com/arcgis-pro-courses/arcgis-pro-course-beginner-level-online-gis-training/#1486375669798-bc42cc3a-b0a4" target="_blank" rel="noopener"><img decoding="async" class="alignnone wp-image-23765" src="https://www.giscourse.com/wp-content/uploads/2022/04/arcgispro-beginner_square.jpg" alt="" width="250" height="250" /></a> <a href="https://www.giscourse.com/arcgis-pro-courses/arcgis-pro-course-from-beginner-to-advanced-level-online-gis-training/#1486375669798-bc42cc3a-b0a4" target="_blank" rel="noopener"><img decoding="async" class="alignnone wp-image-23776" src="https://www.giscourse.com/wp-content/uploads/2022/04/arcgispro-specialist_square.jpg" alt="" width="250" height="250" /></a></p><p>The post <a href="https://www.giscourse.com/creating-a-regular-grid-of-cells-in-arcgis-pro/">Creating a regular grid of cells in ArcGIS Pro</a> first appeared on <a href="https://www.giscourse.com">GIS Course  |  TYC GIS Training</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.giscourse.com/creating-a-regular-grid-of-cells-in-arcgis-pro/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Topographic profile generation integrated in QGIS</title>
		<link>https://www.giscourse.com/topographic-profile-generation-integrated-in-qgis/</link>
					<comments>https://www.giscourse.com/topographic-profile-generation-integrated-in-qgis/#respond</comments>
		
		<dc:creator><![CDATA[Rodrigo Arias Braun]]></dc:creator>
		<pubDate>Wed, 08 Feb 2023 11:42:37 +0000</pubDate>
				<category><![CDATA[BLOG]]></category>
		<guid isPermaLink="false">https://www.giscourse.com/?p=18768</guid>

					<description><![CDATA[There is a wide variety of tools available for the topographic profile generation in QGIS. Most of these tools are available as plugins. We can highlight qProf, VoGIS-ProfilTool and Profile tool. Finally, QGIS has incorporated this functionality as a tool of its own. We will focus on this integrated QGIS functionality which can be of  [...]]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">There is a wide variety of tools available for the topographic profile generation in QGIS. <span id="more-18768"></span> Most of these tools are available as plugins. We can highlight qProf, VoGIS-ProfilTool and Profile tool. Finally, QGIS has incorporated this functionality as a tool of its own.</p>
<p style="text-align: justify;">We will focus on this integrated QGIS functionality which can be of great interest in geological, engineering and evironmental studies.</p>
<p style="text-align: justify;">When we try to obtain a topographic profile, we can start from two elements:</p>
<p style="text-align: justify; padding-left: 40px;">• On one side, the <em><strong>layer that contains the height or elevation information</strong></em>. This layer can come in vector (contour lines, lidar point clouds, etc.) or raster (DEM) data type.<br />
• On the other side, the <em><strong>cutting limit line</strong> </em> along which we obtain the profile. This cutting line can be virtual and be drawn on a canvas, or belong to an existing layer already loaded into our layer panel.</p>
<p style="text-align: justify;">This time, we&#8217;ll describe how a topographic profile obtained from a DEM can be represented.</p>
<p style="text-align: justify;">For that, we&#8217;ll first enable the tool on the &#8220;View&#8221; menu and &#8220;Elevation profile&#8221;. The &#8220;Elevation profile&#8221; panel will open.</p>
<p><img decoding="async" class="aligncenter wp-image-32802" src="https://www.giscourse.com/wp-content/uploads/2024/03/PERF_TOPO_1.png" alt="" width="650" height="352" /></p>
<p>Next step will be to configure the elevation properties of the layer to be represented (DEM). For that, we will double-click on the layer to display the layer properties window, where the &#8220;elevation&#8221; tab is located.</p>
<p><img decoding="async" class="aligncenter wp-image-32801" src="https://www.giscourse.com/wp-content/uploads/2024/03/PERF_TOPO_2.png" alt="" width="650" height="402" /></p>
<p style="text-align: justify;">Activate the checkbox for the &#8220;Elevation surface representation&#8221; (1). This window allows to specify a scale factor (2) in case you want to exaggerate the elevation profile or need to apply a conversion factor of the elevation information and a displacement (3).</p>
<p style="text-align: justify;">On the lower part of the window, we can define how the topographic profile will be represented, through either a line style or a polygon (4).In both cases we hace a complete control of the symbology.</p>
<p style="text-align: justify;">Once the properties of the elevation layer have been configured, we can go back to the &#8220;Elevation profie&#8221; panel, where we&#8217;ll see our DEM layer loaded. We select the &#8220;Capture curve&#8221; tool (5) and draw a virtual cut line on the DEM. We rigth-click to finish the digitisation of the cut line.</p>
<p style="text-align: justify;">Finally, we get the representation of the topographic profile. By moving the cursor along the profile (6) we can see the elevation and displacement information represented on cartesian axes, and in the canvas on the profile line it shows us the position of the cursor (7) in order to be able to identify its location on the map.</p>
<div style="width: 1100px;" class="wp-video"><!--[if lt IE 9]><script>document.createElement('video');</script><![endif]-->
<video class="wp-video-shortcode" id="video-18768-1" width="1100" height="619" loop="1" autoplay="1" preload="metadata" controls="controls"><source type="video/mp4" src="https://www.cursosgis.com/wp-content/uploads/ENTRADA_QGIS_PERFIL_TOPOGRAFICO.mp4?_=1" /><a href="https://www.cursosgis.com/wp-content/uploads/ENTRADA_QGIS_PERFIL_TOPOGRAFICO.mp4">https://www.cursosgis.com/wp-content/uploads/ENTRADA_QGIS_PERFIL_TOPOGRAFICO.mp4</a></video></div>
<p style="text-align: center;"><span style="color: #ffffff;">&#8211;</span></p>
<p style="text-align: right;">Note: There is a rating embedded within this post, please visit this post to rate it.</p>
<p>Original post:</p>
<p style="text-align: justify;"><a href="https://www.cursosgis.com/generacion-de-perfil-topografico-integrado-en-qgis/" target="_blank" rel="noopener">Generación de perfil topográfico integrado en QGIS</a>.</p>
<h2 style="text-align: center;">Training provided by professionals</h2>
<p style="text-align: center;"><a href="https://www.giscourse.com/qgis-courses/qgis-course-beginner-level-online-gis-training/" target="_blank" rel="noopener"><img decoding="async" class="alignnone wp-image-25091" src="https://www.giscourse.com/wp-content/uploads/2022/04/qgis-beginner_square.jpg" alt="" width="250" height="250" /></a> <a href="https://www.giscourse.com/qgis-courses/qgis-course-beginner-to-advanced-level-online-gis-training/" target="_blank" rel="noopener"><img decoding="async" class="alignnone wp-image-24701" src="https://www.giscourse.com/wp-content/uploads/2022/04/qgis-specialist_square.jpg" alt="" width="250" height="250" /></a></p><p>The post <a href="https://www.giscourse.com/topographic-profile-generation-integrated-in-qgis/">Topographic profile generation integrated in QGIS</a> first appeared on <a href="https://www.giscourse.com">GIS Course  |  TYC GIS Training</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.giscourse.com/topographic-profile-generation-integrated-in-qgis/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		<enclosure url="https://www.cursosgis.com/wp-content/uploads/ENTRADA_QGIS_PERFIL_TOPOGRAFICO.mp4" length="45086665" type="video/mp4" />

			</item>
		<item>
		<title>Autosave in QGIS</title>
		<link>https://www.giscourse.com/autosave-qgis/</link>
					<comments>https://www.giscourse.com/autosave-qgis/#respond</comments>
		
		<dc:creator><![CDATA[Rodrigo Arias Braun]]></dc:creator>
		<pubDate>Mon, 30 Jan 2023 08:54:22 +0000</pubDate>
				<category><![CDATA[BLOG]]></category>
		<guid isPermaLink="false">https://www.giscourse.com/?p=18761</guid>

					<description><![CDATA[A very interesting plugin when working with QGIS is the possibility to run autosave of our project or of the layers being edited. The autosave allows saving the changes over our project or layer being edited on a scheduled way every few minutes, as we work. This way we can avoid the loss of information  [...]]]></description>
										<content:encoded><![CDATA[<p>A very interesting plugin when working with QGIS is the possibility to run autosave<span id="more-18761"></span> of our project or of the layers being edited.</p>
<p>The autosave allows saving the changes over our project or layer being edited on a scheduled way every few minutes, as we work.</p>
<p>This way we can avoid the loss of information due to programme crashes, electrical flow failures, etc&#8230;. anything that could cause the loss of our work.</p>
<p>For that, we have available the “AutoSaver” plugin. We just need to access the add-ons section, search and install the plugin.</p>
<p><img decoding="async" class="aligncenter wp-image-32758" src="https://www.giscourse.com/wp-content/uploads/2024/03/autosaver_-001.png" alt="" width="650" height="402" /></p>
<p>Once it is installed, open it and check the verification box to enable the autosave of the map project (1).</p>
<p><img decoding="async" class="aligncenter wp-image-32759 size-full" src="https://www.giscourse.com/wp-content/uploads/2024/03/autosaver_-002.png" alt="" width="366" height="173" /></p>
<p>Once the autosave of the project is enabled, we will also have the possibility to extend the autosave to the layers in editing (3).</p>
<p>There is also the possibility of creating a backup file (.bak), to create a backup copy external to the map document (2).</p>
<p>In the lower part of the window we can define the time interval (expressed in minutes) on the basis of which the autosave is carried out (4).</p>
<p>After everything is configured, all that remains is to accept (5).</p>
<p>Hope you get the most out of this plugin, both simple and essential.</p>
<p style="text-align: right;">Note: There is a rating embedded within this post, please visit this post to rate it.</p>
<p>Original post:</p>
<p style="text-align: justify;"><a href="https://www.cursosgis.com/el-autoguardado-en-qgis/" target="_blank" rel="noopener">El autoguardado en QGIS</a>.</p>
<h2 style="text-align: center;">Training provided by professionals</h2>
<p style="text-align: center;"><a href="https://www.giscourse.com/qgis-courses/qgis-course-beginner-level-online-gis-training/#1486375669798-bc42cc3a-b0a4" target="_blank" rel="noopener"><img decoding="async" class="alignnone wp-image-25091 size-medium" src="https://www.giscourse.com/wp-content/uploads/2022/04/qgis-beginner_square.jpg" alt="" width="300" height="300" /></a></p><p>The post <a href="https://www.giscourse.com/autosave-qgis/">Autosave in QGIS</a> first appeared on <a href="https://www.giscourse.com">GIS Course  |  TYC GIS Training</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.giscourse.com/autosave-qgis/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>The QGIS &#8220;Group Stats&#8221; plugin</title>
		<link>https://www.giscourse.com/the-qgis-group-stats-plugin/</link>
					<comments>https://www.giscourse.com/the-qgis-group-stats-plugin/#respond</comments>
		
		<dc:creator><![CDATA[Rodrigo Arias Braun]]></dc:creator>
		<pubDate>Thu, 26 Jan 2023 12:48:27 +0000</pubDate>
				<category><![CDATA[BLOG]]></category>
		<guid isPermaLink="false">https://www.giscourse.com/?p=18744</guid>

					<description><![CDATA[This QGIS add-on is used to work with statistical data, generating reports by groups or categories for an attribute table field. Here below we’ll see how to use it. In this case, we’ll work with roads, towns and municipalities data from the Chiapas state, Mexico. First thing, we upload our data into QGIS. In order  [...]]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">This QGIS add-on is used to work with statistical data, generating reports by groups or categories for an attribute table field.<span id="more-18744"></span> Here below we&#8217;ll see how to use it.</p>
<p><img decoding="async" class="aligncenter wp-image-32722" src="https://www.giscourse.com/wp-content/uploads/2024/03/GROUP_STATS_7.png" alt="" width="650" height="371" /></p>
<p style="text-align: justify;">In this case, we&#8217;ll work with roads, towns and municipalities data from the Chiapas state, Mexico.</p>
<p style="text-align: justify;">First thing, we upload our data into QGIS.</p>
<p><img decoding="async" class="aligncenter wp-image-32723" src="https://www.giscourse.com/wp-content/uploads/2024/03/GROUP_STATS_1.png" alt="" width="650" height="347" /></p>
<p style="text-align: justify;">In order to start working with the plugin, we must install it from the QGIS add-on section.</p>
<p><img decoding="async" class="aligncenter wp-image-32724" src="https://www.giscourse.com/wp-content/uploads/2024/03/GROUP_STATS_2.png" alt="" width="650" height="371" /></p>
<p style="text-align: justify;">Once installed, we can start working with our data. We can access the add-on as follows:</p>
<p><img decoding="async" class="aligncenter wp-image-32725" src="https://www.giscourse.com/wp-content/uploads/2024/03/GROUP_STATS_3.png" alt="" width="650" height="348" /></p>
<p style="text-align: justify;">Next step will be to broaden the attribute table with more information. For exmple, in the &#8220;Town&#8221; layer we will add a field with the municipality name. This will be done with the Join tool located in the layer properties. Let&#8217;s remember that this Join is made only virtually, so the layer must be exported if we want to keep this joined data permanently.</p>
<p><img decoding="async" class="aligncenter wp-image-32726" src="https://www.giscourse.com/wp-content/uploads/2024/03/GROUP_STATS_4.png" alt="" width="650" height="424" /></p>
<p style="text-align: justify;">Following up, we will combine the Roads and Municipalities layer to define an administrative boundary. This is in order to obtain an estimate of the lengh of a road type within each municipality.</p>
<p><img decoding="async" class="aligncenter wp-image-32727" src="https://www.giscourse.com/wp-content/uploads/2024/03/GROUP_STATS_5.png" alt="" width="650" height="523" /></p>
<p style="text-align: justify;">Once all fo this is done, we can continue with the &#8220;Group stats&#8221; plugin. Using this tool, we&#8217;ll calculate the sum of the lengh for each road type in each of the municipalities.</p>
<p style="text-align: justify;">First, we must select the vector layer to calculate the statistics (1).After that, we drag the attribute fields to locate them in the columns (2) and rows (3) section. In the Value section, keep in mind to drag a numeric value that needs to be analysed and next to it the statistic we want to calculate with those values (4). It is important to mention that only one statistic can be chosen. Then, the calculation can be made and it can be displayed in a table which is usually a two-entry table.</p>
<p><img decoding="async" class="aligncenter wp-image-32728" src="https://www.giscourse.com/wp-content/uploads/2024/03/GROUP_STATS_6.png" alt="" width="650" height="376" /></p>
<p style="text-align: justify;">Once the results have been obtained, they can be exported in CSV format so they can be consulted later if necessary.</p>
<p style="padding-left: 40px; text-align: right;">Note: There is a rating embedded within this post, please visit this post to rate it.</p>
<p>Original post:</p>
<p style="text-align: justify;"><a href="https://www.cursosgis.com/el-plugin-group-stats-de-qgis/" target="_blank" rel="noopener">El plugin «Group Stats» de QGIS</a>.</p>
<h2 style="text-align: center;">Training provided by professionals</h2>
<p style="text-align: center;"><a href="https://www.giscourse.com/qgis-courses/qgis-course-beginner-level-online-gis-training/" target="_blank" rel="noopener"><img decoding="async" class="alignnone wp-image-25091" src="https://www.giscourse.com/wp-content/uploads/2022/04/qgis-beginner_square.jpg" alt="" width="250" height="250" /></a> <a href="https://www.giscourse.com/web-development/using-python-with-qgis-online-gis-training/#1486375549896-7e7a7b32-a470" target="_blank" rel="noopener"><img decoding="async" class="alignnone wp-image-24295" src="https://www.giscourse.com/wp-content/uploads/2022/04/pyqgis_square.jpg" alt="" width="250" height="250" /></a> <a href="https://www.giscourse.com/web-development/qgis-plugin-development-with-python-online-gis-training/#1486375549896-7e7a7b32-a470" target="_blank" rel="noopener"><img decoding="async" class="alignnone wp-image-22324" src="https://www.giscourse.com/wp-content/uploads/2022/04/pyqgis-plugin_square.jpg" alt="" width="250" height="250" /></a></p><p>The post <a href="https://www.giscourse.com/the-qgis-group-stats-plugin/">The QGIS “Group Stats” plugin</a> first appeared on <a href="https://www.giscourse.com">GIS Course  |  TYC GIS Training</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.giscourse.com/the-qgis-group-stats-plugin/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Multiple download of free satellite images with Python</title>
		<link>https://www.giscourse.com/multiple-download-of-free-satellite-images-with-python/</link>
					<comments>https://www.giscourse.com/multiple-download-of-free-satellite-images-with-python/#respond</comments>
		
		<dc:creator><![CDATA[Rodrigo Arias Braun]]></dc:creator>
		<pubDate>Wed, 04 Jan 2023 09:45:50 +0000</pubDate>
				<category><![CDATA[BLOG]]></category>
		<guid isPermaLink="false">https://www.giscourse.com/?p=18718</guid>

					<description><![CDATA[Nowadays, and thanks to the INSPIRE directive, we have at our disposal a huge amount of resources for downloading satellite images and all kinds of geographic information. This comes through the several services that make available to the public the different entities through Spatial Data Infraestructures (SDI). This data is not only made publicly available  [...]]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">Nowadays, and thanks to the INSPIRE directive, we have at our disposal a huge amount of resources for downloading satellite images<span id="more-18718"></span> and all kinds of geographic information. This comes through the several services that make available to the public the different entities through Spatial Data Infraestructures (SDI). This data is not only made publicly available for free consultation and download, but also efforts are made to ensure the access to this information is standardised. This standardised process makes it easier for us  to automate works and tasks.</p>
<p style="text-align: justify;">Many times, when we need satellite images, we don&#8217;t need only one, or the one we want is of such a size that the servers do not offer us the possibility of accessing such large downloads. In this second case, we proceed to download a mosaic of several images of the same size.</p>
<p><img decoding="async" class="aligncenter wp-image-32563 size-full" src="https://www.giscourse.com/wp-content/uploads/2024/03/des-imag-python-ides.png" alt="" width="289" height="282" /></p>
<p style="text-align: justify;">SDI servers put at our disposal two Http request methods (HttpGet and HttpPost). For an easy automate download of the data, we&#8217;ll use the first one. HttpGet requets allows us to add parameters to the url, shaping what is known as uri. For that, after the url adress, the beginning of the request chain is marked with a question mark (&#8220;?&#8221;) and it shows pairs of data name and value separated by an &#8220;=&#8221;, separating each pair of data name and value from the next by an &#8220;&amp;&#8221;. This allows, for example, a JavaScript script to incorporate as variables the data of the parameters added to the url. For exqmple, if we want to know which layers a WMS service has, we can perform a HttpGet request to the SDI server of the city of Munich, to tell us what services it offers through the GetCapabilities request.</p>
<p style="text-align: justify;">URL:<br />
https://geoportal.muenchen.de/geoserver/gsm/wms?</p>
<p style="text-align: justify;">Request chain:<br />
SERVICE=WMS&amp;REQUEST=GetCapabilities</p>
<p style="text-align: justify;">URI:<br />
https://geoportal.muenchen.de/geoserver/gsm/wms?SERVICE=WMS&amp;REQUEST=GetCapabilities</p>
<p style="text-align: justify;">As a result, it will give us a XML document with information about the service and the data at our disposal. Among these data are the layers and their names, available coordinate systems, layer boundaries and resolutions, etc.</p>
<p><img decoding="async" class="aligncenter wp-image-32564 size-full" src="https://www.giscourse.com/wp-content/uploads/2024/03/des-imag-python-ides1.png" alt="" width="609" height="274" /></p>
<p style="text-align: justify;">We can extract from this XML all the necessary data to perform a GetMap request to the server to give us back a raster with the desired image. We could get a square image of one thousand pixels on each side of the 200&#215;200 metre squares shown in the previous image through the following HttpGet request:</p>
<pre style="text-align: justify;">https://geoportal.muenchen.de/geoserver/gsm/wms?SERVICE=WMS&amp;REQUEST=GetMap&amp;VERSION=1.0.0&amp;srs=EPSG:32632&amp;STYLES=&amp;bbox=685483,5335385,685683,5335585&amp;layers=luftbild&amp;format=image/png&amp;width=1000&amp;height=1000</pre>
<p style="text-align: justify;">This request incorporates the following parameters: service type (SERVICE=WMS), request (REQUEST=GetMap), version (VERSION=1.0.0), reference system (srs=EPSG:32632), boundary coordinates of the image to be downloaded (bbox=685483,5335385,685683,5335585), name of the layer (layers=luftbild), format in which the image is downloaded (format=image/png) and number of pixels in width and height that the downloaded image will have (width=1000&amp;height=1000). This 200&#215;200 square over the terrain and of a thousand pixels on a side, will give us the same pixel size as the original orthophoto (20cm). If the request is well-formulated, the browser will open it for us directly, and if not, it will download a text file containing an error message.</p>
<p><img decoding="async" class="aligncenter wp-image-32563 size-full" src="https://www.giscourse.com/wp-content/uploads/2024/03/des-imag-python-ides2-1.png" width="642" height="361" /></p>
<p style="text-align: justify;">We can see that performing a request to get a single image is relatively simple, but we can realise that if we want to do this by hand to obtain all the images corresponding to the 121 boxes shown before, it would be a titanic task. Let alone if we were to go into larger numbers.</p>
<p style="text-align: justify;">To make this task accessible and that the number should not matter, we will prepare with Python a small script that will download for us all these images to the desired folder and that will distinguish each of them in its file name according to its position in the downloaded grid.</p>
<p style="text-align: justify;">We will use the &#8220;request&#8221; and &#8220;time&#8221; libraries to perform the requests and to manage the time these are made, in order to avoid that, if we make too many requests in a very short space of time, our requests are detected as an attack to the server. We will also choose the destination folder for our orthophotos.</p>
<p><img decoding="async" class="aligncenter wp-image-32566 size-full" src="https://www.giscourse.com/wp-content/uploads/2024/03/des-imag-python-ides3.png" alt="" width="642" height="66" /></p>
<p style="text-align: justify;">Then, we introduce the maximum and minimum coordinates of all the surface area from which we want to download and the size in metres of the side of the square of the &#8220;patches&#8221; we are going to download. With them, we would obtain the boundary coordinates of the first frame to download, adding the side to the minimum x and y coordinates, also starting the counter that will give us the position of each image within the grid, in this case, being the first one, it will have the position 1.1.</p>
<p><img decoding="async" class="aligncenter wp-image-32567 size-full" src="https://www.giscourse.com/wp-content/uploads/2024/03/des-imag-python-ides4.png" alt="" width="642" height="196" /></p>
<p style="text-align: justify;">We will now create a loop that will first iterate through the frames along the X axis until the maximum X of the frames to be downloaded, passing at each X stop through another loop that will iterate through all the contained frames between the minimum and maximum values for the Y coordinates.</p>
<p style="text-align: justify;"><img decoding="async" class="aligncenter wp-image-32568 size-full" src="https://www.giscourse.com/wp-content/uploads/2024/03/des-imag-python-ides5.png" alt="" width="642" height="172" /></p>
<p style="text-align: justify;">While the X loop is dedicated to update the counters and coordinates at the end of every loop over the Y axis, it is the last one that will stop individually on each square from which we will request a download. This is why this second loop will contain, in addition to the update of the coordinates and counters corresponding to each Y coordinate stop, all the code corresponding to complete the request to the server. Here is where the &#8220;magic&#8221; happens.</p>
<p><img decoding="async" class="aligncenter wp-image-32569 size-full" src="https://www.giscourse.com/wp-content/uploads/2024/03/des-imag-python-ides6.png" alt="" width="643" height="160" /></p>
<p style="text-align: justify;">As you can see, this &#8220;magic&#8221; has little magic and it&#8217;s not even very complex. What it does is to locate for each request the maximum and minimum X and Y coordinates for each &#8220;patch&#8221; and create the name of the file using the repetition counter of each &#8220;countx&#8221; and &#8220;county&#8221; loop. Besides that, we included a &#8220;print&#8221; so it shows us the progress of the script execution, and after every download request we wait 5 seconds to request the next one, so we can avoid being banned over too many simultaneous requests. Without this 5-seconds wait, with much lesser number we would still be excluded.</p>
<p><img decoding="async" class="aligncenter wp-image-32570 size-full" src="https://www.giscourse.com/wp-content/uploads/2024/03/des-imag-python-ides7.png" alt="" width="642" height="329" /></p>
<p style="text-align: justify;">Now we could, for example, integrate these images in a supervised training session creating masks on the same place and extracting the analogue coordinate patches. If we want to rebuild a bigger image joining all the downloaded images, we should follow the procedure &#8220;unpatchify&#8221; described in this post:</p>
<p style="text-align: justify;"><a href="https://www.cursosgis.com/division-de-imagenes-en-python-con-patchify/" target="_blank" rel="noopener">División de Imágenes en Python con Patchify</a>.</p>
<p>Original post: </p>
<p style="text-align: justify;"><a href="https://www.cursosgis.com/descarga-multiple-de-imagenes-de-satelite-gratuitas-con-python/" target="_blank" rel="noopener">Descarga multiple de imagenes de satelite gratuitas con Python</a>.</p>
<p style="text-align: right;">Note: There is a rating embedded within this post, please visit this post to rate it.</p><p>The post <a href="https://www.giscourse.com/multiple-download-of-free-satellite-images-with-python/">Multiple download of free satellite images with Python</a> first appeared on <a href="https://www.giscourse.com">GIS Course  |  TYC GIS Training</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.giscourse.com/multiple-download-of-free-satellite-images-with-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
