<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.wiki.mohid.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=RuiCorreia</id>
		<title>MohidWiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.wiki.mohid.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=RuiCorreia"/>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Special:Contributions/RuiCorreia"/>
		<updated>2026-04-04T19:48:49Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8700</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8700"/>
				<updated>2023-01-22T15:07:42Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* MOHID plugin installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.5.2&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with 3.22 standalone version, which support Python 3.9. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.5.2.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins &amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
= For Users =&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In this tab, existing bathymetries will be able to be edited and new bathymetries can be generated.&lt;br /&gt;
&lt;br /&gt;
==== Generating new bathymetries ====&lt;br /&gt;
&lt;br /&gt;
In the subtab '''Input Data''', the files that will generate the bathymetry are selected from the loaded files (loaded via the Load tab).&lt;br /&gt;
(add screenshots)&lt;br /&gt;
&lt;br /&gt;
('''WIP''') The subtab '''Run''' will hold options that can be accepted by the DTC and a Generate button, that will begin the process of generating a new bathymetry (.dat).&lt;br /&gt;
&lt;br /&gt;
=== Load tab ===&lt;br /&gt;
&lt;br /&gt;
In this tab, files can be loaded into QGIS. At the moment, these file formats can be loaded:&lt;br /&gt;
&lt;br /&gt;
- Grid files (.grd)&lt;br /&gt;
&lt;br /&gt;
- XYZ files (.xyz)&lt;br /&gt;
&lt;br /&gt;
- Land polygon files (.xy)&lt;br /&gt;
&lt;br /&gt;
- Bathymetry files (.dat)&lt;br /&gt;
&lt;br /&gt;
Pressing the load button [[File:PluginLoadButton.PNG]] will open the file browser and filter for the respective file type. The selected files will be converted to shapefiles and loaded into QGIS. Each loaded file will hold its filepath in memory so that it can be provided to the DTC tool.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
= For Developers =&lt;br /&gt;
&lt;br /&gt;
This section is aimed at contributors.&lt;br /&gt;
&lt;br /&gt;
== Plugin structure ==&lt;br /&gt;
&lt;br /&gt;
For ease of development, the plugin is divided in two main directories, ''core'' and ''plugin'':&lt;br /&gt;
&lt;br /&gt;
 mohid_qgis/&lt;br /&gt;
   core/&lt;br /&gt;
   plugin/&lt;br /&gt;
&lt;br /&gt;
The ''plugin'' directory will hold the plugin itself, with the UI elements and everything related to their interface logic.&lt;br /&gt;
&lt;br /&gt;
The ''core'' directory will hold additional tools such as utilities, algorithms, conversion scripts, etc...&lt;br /&gt;
&lt;br /&gt;
=== User Interface ===&lt;br /&gt;
&lt;br /&gt;
QGIS uses ''.ui'' files to represent an UI and a ''.py'' file to hold the logic of the UI (button actions, etc).&lt;br /&gt;
&lt;br /&gt;
The UI is based on a ''QDockWidget'' with an empty ''QTabWidget''. Individual tabs are added on top. This allows the individual development and isolation of each tab which allows for an organized scaling of the plugin. Each tab will then consist of at least a ''.ui'' and a ''.py'' files. The ''plugin/tab_bathymetry'' directory holds the bathymetry tab code and can be consulted for reference.&lt;br /&gt;
&lt;br /&gt;
== Add new tab ==&lt;br /&gt;
&lt;br /&gt;
To add a new tab, one must first create the respective UI interface. The best way of doing this is to use ''QT Designer'', which should come with the QGIS installation. This will generate a .ui file that is used by QGIS to render the UI. This can also be done manually by writing every UI element and its attributes into a .ui file. However, this approach is not recommended as it takes more time and is prone to errors.&lt;br /&gt;
&lt;br /&gt;
= Report a bug =&lt;br /&gt;
&lt;br /&gt;
If you find a bug, or would like to suggest a new feature, please [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/issues open an issue on GitHub].&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8699</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8699"/>
				<updated>2023-01-18T23:49:02Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* MOHID plugin installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.5.0&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with 3.22 standalone version, which support Python 3.9. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.5.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins &amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
= For Users =&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In this tab, existing bathymetries will be able to be edited and new bathymetries can be generated.&lt;br /&gt;
&lt;br /&gt;
==== Generating new bathymetries ====&lt;br /&gt;
&lt;br /&gt;
In the subtab '''Input Data''', the files that will generate the bathymetry are selected from the loaded files (loaded via the Load tab).&lt;br /&gt;
(add screenshots)&lt;br /&gt;
&lt;br /&gt;
('''WIP''') The subtab '''Run''' will hold options that can be accepted by the DTC and a Generate button, that will begin the process of generating a new bathymetry (.dat).&lt;br /&gt;
&lt;br /&gt;
=== Load tab ===&lt;br /&gt;
&lt;br /&gt;
In this tab, files can be loaded into QGIS. At the moment, these file formats can be loaded:&lt;br /&gt;
&lt;br /&gt;
- Grid files (.grd)&lt;br /&gt;
&lt;br /&gt;
- XYZ files (.xyz)&lt;br /&gt;
&lt;br /&gt;
- Land polygon files (.xy)&lt;br /&gt;
&lt;br /&gt;
- Bathymetry files (.dat)&lt;br /&gt;
&lt;br /&gt;
Pressing the load button [[File:PluginLoadButton.PNG]] will open the file browser and filter for the respective file type. The selected files will be converted to shapefiles and loaded into QGIS. Each loaded file will hold its filepath in memory so that it can be provided to the DTC tool.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
= For Developers =&lt;br /&gt;
&lt;br /&gt;
This section is aimed at contributors.&lt;br /&gt;
&lt;br /&gt;
== Plugin structure ==&lt;br /&gt;
&lt;br /&gt;
For ease of development, the plugin is divided in two main directories, ''core'' and ''plugin'':&lt;br /&gt;
&lt;br /&gt;
 mohid_qgis/&lt;br /&gt;
   core/&lt;br /&gt;
   plugin/&lt;br /&gt;
&lt;br /&gt;
The ''plugin'' directory will hold the plugin itself, with the UI elements and everything related to their interface logic.&lt;br /&gt;
&lt;br /&gt;
The ''core'' directory will hold additional tools such as utilities, algorithms, conversion scripts, etc...&lt;br /&gt;
&lt;br /&gt;
=== User Interface ===&lt;br /&gt;
&lt;br /&gt;
QGIS uses ''.ui'' files to represent an UI and a ''.py'' file to hold the logic of the UI (button actions, etc).&lt;br /&gt;
&lt;br /&gt;
The UI is based on a ''QDockWidget'' with an empty ''QTabWidget''. Individual tabs are added on top. This allows the individual development and isolation of each tab which allows for an organized scaling of the plugin. Each tab will then consist of at least a ''.ui'' and a ''.py'' files. The ''plugin/tab_bathymetry'' directory holds the bathymetry tab code and can be consulted for reference.&lt;br /&gt;
&lt;br /&gt;
== Add new tab ==&lt;br /&gt;
&lt;br /&gt;
To add a new tab, one must first create the respective UI interface. The best way of doing this is to use ''QT Designer'', which should come with the QGIS installation. This will generate a .ui file that is used by QGIS to render the UI. This can also be done manually by writing every UI element and its attributes into a .ui file. However, this approach is not recommended as it takes more time and is prone to errors.&lt;br /&gt;
&lt;br /&gt;
= Report a bug =&lt;br /&gt;
&lt;br /&gt;
If you find a bug, or would like to suggest a new feature, please [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/issues open an issue on GitHub].&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8645</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8645"/>
				<updated>2022-09-24T19:50:13Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* MOHID plugin installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.4.0-alpha.3&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with 3.22 standalone version, which support Python 3.9. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.4.0-alpha.3.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins &amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
= For Users =&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In this tab, existing bathymetries will be able to be edited and new bathymetries can be generated.&lt;br /&gt;
&lt;br /&gt;
==== Generating new bathymetries ====&lt;br /&gt;
&lt;br /&gt;
In the subtab '''Input Data''', the files that will generate the bathymetry are selected from the loaded files (loaded via the Load tab).&lt;br /&gt;
(add screenshots)&lt;br /&gt;
&lt;br /&gt;
('''WIP''') The subtab '''Run''' will hold options that can be accepted by the DTC and a Generate button, that will begin the process of generating a new bathymetry (.dat).&lt;br /&gt;
&lt;br /&gt;
=== Load tab ===&lt;br /&gt;
&lt;br /&gt;
In this tab, files can be loaded into QGIS. At the moment, these file formats can be loaded:&lt;br /&gt;
&lt;br /&gt;
- Grid files (.grd)&lt;br /&gt;
&lt;br /&gt;
- XYZ files (.xyz)&lt;br /&gt;
&lt;br /&gt;
- Land polygon files (.xy)&lt;br /&gt;
&lt;br /&gt;
- Bathymetry files (.dat)&lt;br /&gt;
&lt;br /&gt;
Pressing the load button [[File:PluginLoadButton.PNG]] will open the file browser and filter for the respective file type. The selected files will be converted to shapefiles and loaded into QGIS. Each loaded file will hold its filepath in memory so that it can be provided to the DTC tool.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
= For Developers =&lt;br /&gt;
&lt;br /&gt;
This section is aimed at contributors.&lt;br /&gt;
&lt;br /&gt;
== Plugin structure ==&lt;br /&gt;
&lt;br /&gt;
For ease of development, the plugin is divided in two main directories, ''core'' and ''plugin'':&lt;br /&gt;
&lt;br /&gt;
 mohid_qgis/&lt;br /&gt;
   core/&lt;br /&gt;
   plugin/&lt;br /&gt;
&lt;br /&gt;
The ''plugin'' directory will hold the plugin itself, with the UI elements and everything related to their interface logic.&lt;br /&gt;
&lt;br /&gt;
The ''core'' directory will hold additional tools such as utilities, algorithms, conversion scripts, etc...&lt;br /&gt;
&lt;br /&gt;
=== User Interface ===&lt;br /&gt;
&lt;br /&gt;
QGIS uses ''.ui'' files to represent an UI and a ''.py'' file to hold the logic of the UI (button actions, etc).&lt;br /&gt;
&lt;br /&gt;
The UI is based on a ''QDockWidget'' with an empty ''QTabWidget''. Individual tabs are added on top. This allows the individual development and isolation of each tab which allows for an organized scaling of the plugin. Each tab will then consist of at least a ''.ui'' and a ''.py'' files. The ''plugin/tab_bathymetry'' directory holds the bathymetry tab code and can be consulted for reference.&lt;br /&gt;
&lt;br /&gt;
== Add new tab ==&lt;br /&gt;
&lt;br /&gt;
To add a new tab, one must first create the respective UI interface. The best way of doing this is to use ''QT Designer'', which should come with the QGIS installation. This will generate a .ui file that is used by QGIS to render the UI. This can also be done manually by writing every UI element and its attributes into a .ui file. However, this approach is not recommended as it takes more time and is prone to errors.&lt;br /&gt;
&lt;br /&gt;
= Report a bug =&lt;br /&gt;
&lt;br /&gt;
If you find a bug, or would like to suggest a new feature, please [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/issues open an issue on GitHub].&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8644</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8644"/>
				<updated>2022-09-16T15:40:54Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* Load tab */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.4.0-alpha.2&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.4.0-alpha.2.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins &amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
= For Users =&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In this tab, existing bathymetries will be able to be edited and new bathymetries can be generated.&lt;br /&gt;
&lt;br /&gt;
==== Generating new bathymetries ====&lt;br /&gt;
&lt;br /&gt;
In the subtab '''Input Data''', the files that will generate the bathymetry are selected from the loaded files (loaded via the Load tab).&lt;br /&gt;
(add screenshots)&lt;br /&gt;
&lt;br /&gt;
('''WIP''') The subtab '''Run''' will hold options that can be accepted by the DTC and a Generate button, that will begin the process of generating a new bathymetry (.dat).&lt;br /&gt;
&lt;br /&gt;
=== Load tab ===&lt;br /&gt;
&lt;br /&gt;
In this tab, files can be loaded into QGIS. At the moment, these file formats can be loaded:&lt;br /&gt;
&lt;br /&gt;
- Grid files (.grd)&lt;br /&gt;
&lt;br /&gt;
- XYZ files (.xyz)&lt;br /&gt;
&lt;br /&gt;
- Land polygon files (.xy)&lt;br /&gt;
&lt;br /&gt;
- Bathymetry files (.dat)&lt;br /&gt;
&lt;br /&gt;
Pressing the load button [[File:PluginLoadButton.PNG]] will open the file browser and filter for the respective file type. The selected files will be converted to shapefiles and loaded into QGIS. Each loaded file will hold its filepath in memory so that it can be provided to the DTC tool.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
= For Developers =&lt;br /&gt;
&lt;br /&gt;
This section is aimed at contributors.&lt;br /&gt;
&lt;br /&gt;
== Plugin structure ==&lt;br /&gt;
&lt;br /&gt;
For ease of development, the plugin is divided in two main directories, ''core'' and ''plugin'':&lt;br /&gt;
&lt;br /&gt;
 mohid_qgis/&lt;br /&gt;
   core/&lt;br /&gt;
   plugin/&lt;br /&gt;
&lt;br /&gt;
The ''plugin'' directory will hold the plugin itself, with the UI elements and everything related to their interface logic.&lt;br /&gt;
&lt;br /&gt;
The ''core'' directory will hold additional tools such as utilities, algorithms, conversion scripts, etc...&lt;br /&gt;
&lt;br /&gt;
=== User Interface ===&lt;br /&gt;
&lt;br /&gt;
QGIS uses ''.ui'' files to represent an UI and a ''.py'' file to hold the logic of the UI (button actions, etc).&lt;br /&gt;
&lt;br /&gt;
The UI is based on a ''QDockWidget'' with an empty ''QTabWidget''. Individual tabs are added on top. This allows the individual development and isolation of each tab which allows for an organized scaling of the plugin. Each tab will then consist of at least a ''.ui'' and a ''.py'' files. The ''plugin/tab_bathymetry'' directory holds the bathymetry tab code and can be consulted for reference.&lt;br /&gt;
&lt;br /&gt;
== Add new tab ==&lt;br /&gt;
&lt;br /&gt;
To add a new tab, one must first create the respective UI interface. The best way of doing this is to use ''QT Designer'', which should come with the QGIS installation. This will generate a .ui file that is used by QGIS to render the UI. This can also be done manually by writing every UI element and its attributes into a .ui file. However, this approach is not recommended as it takes more time and is prone to errors.&lt;br /&gt;
&lt;br /&gt;
= Report a bug =&lt;br /&gt;
&lt;br /&gt;
If you find a bug, or would like to suggest a new feature, please [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/issues open an issue on GitHub].&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8643</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8643"/>
				<updated>2022-09-16T15:39:53Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* For Users */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.4.0-alpha.2&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.4.0-alpha.2.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins &amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
= For Users =&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In this tab, existing bathymetries will be able to be edited and new bathymetries can be generated.&lt;br /&gt;
&lt;br /&gt;
==== Generating new bathymetries ====&lt;br /&gt;
&lt;br /&gt;
In the subtab '''Input Data''', the files that will generate the bathymetry are selected from the loaded files (loaded via the Load tab).&lt;br /&gt;
(add screenshots)&lt;br /&gt;
&lt;br /&gt;
('''WIP''') The subtab '''Run''' will hold options that can be accepted by the DTC and a Generate button, that will begin the process of generating a new bathymetry (.dat).&lt;br /&gt;
&lt;br /&gt;
=== Load tab ===&lt;br /&gt;
&lt;br /&gt;
In this tab, files can be loaded into QGIS. At the moment, these file formats can be loaded:&lt;br /&gt;
&lt;br /&gt;
- Grid files (.grd)&lt;br /&gt;
&lt;br /&gt;
- XYZ files (.xyz)&lt;br /&gt;
&lt;br /&gt;
- Land polygon files (.xy)&lt;br /&gt;
&lt;br /&gt;
- Bathymetry files (.dat)&lt;br /&gt;
&lt;br /&gt;
Pressing the load button [[File:PluginLoadButton.PNG]] will open the file browser. The selected files will be converted to shapefiles and loaded into QGIS. Each loaded file will hold its filepath in memory so that it can be provided to the DTC tool.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
= For Developers =&lt;br /&gt;
&lt;br /&gt;
This section is aimed at contributors.&lt;br /&gt;
&lt;br /&gt;
== Plugin structure ==&lt;br /&gt;
&lt;br /&gt;
For ease of development, the plugin is divided in two main directories, ''core'' and ''plugin'':&lt;br /&gt;
&lt;br /&gt;
 mohid_qgis/&lt;br /&gt;
   core/&lt;br /&gt;
   plugin/&lt;br /&gt;
&lt;br /&gt;
The ''plugin'' directory will hold the plugin itself, with the UI elements and everything related to their interface logic.&lt;br /&gt;
&lt;br /&gt;
The ''core'' directory will hold additional tools such as utilities, algorithms, conversion scripts, etc...&lt;br /&gt;
&lt;br /&gt;
=== User Interface ===&lt;br /&gt;
&lt;br /&gt;
QGIS uses ''.ui'' files to represent an UI and a ''.py'' file to hold the logic of the UI (button actions, etc).&lt;br /&gt;
&lt;br /&gt;
The UI is based on a ''QDockWidget'' with an empty ''QTabWidget''. Individual tabs are added on top. This allows the individual development and isolation of each tab which allows for an organized scaling of the plugin. Each tab will then consist of at least a ''.ui'' and a ''.py'' files. The ''plugin/tab_bathymetry'' directory holds the bathymetry tab code and can be consulted for reference.&lt;br /&gt;
&lt;br /&gt;
== Add new tab ==&lt;br /&gt;
&lt;br /&gt;
To add a new tab, one must first create the respective UI interface. The best way of doing this is to use ''QT Designer'', which should come with the QGIS installation. This will generate a .ui file that is used by QGIS to render the UI. This can also be done manually by writing every UI element and its attributes into a .ui file. However, this approach is not recommended as it takes more time and is prone to errors.&lt;br /&gt;
&lt;br /&gt;
= Report a bug =&lt;br /&gt;
&lt;br /&gt;
If you find a bug, or would like to suggest a new feature, please [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/issues open an issue on GitHub].&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8642</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8642"/>
				<updated>2022-09-16T15:32:32Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* Bathymetry tab */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.4.0-alpha.2&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.4.0-alpha.2.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins &amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
= For Users =&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In this tab, existing bathymetries will be able to be edited and new bathymetries can already be generated, based on any loaded files (via the load tab).&lt;br /&gt;
&lt;br /&gt;
==== Generating new bathymetries ====&lt;br /&gt;
&lt;br /&gt;
In the subtab '''Input Data''', the files that will generate the bathymetry are selected.&lt;br /&gt;
(add screenshots)&lt;br /&gt;
&lt;br /&gt;
In the first part of this tab, three types of MOHID files can be handled, that are used to generate Createbathymetry (.dat) files:&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
Pressing the buttons [[File:PluginFsButton.PNG]] opens the file browser to look for the respective filepaths. &lt;br /&gt;
&lt;br /&gt;
In the second part of this tab is it possible to load and edit the final MOHID bathymetry files (.dat).&lt;br /&gt;
&lt;br /&gt;
Loading the bathymetry follows the same logic as the other file types above.&lt;br /&gt;
&lt;br /&gt;
=== Load tab ===&lt;br /&gt;
&lt;br /&gt;
In this tab, files can be loaded into QGIS. At the moment, these file formats can be loaded:&lt;br /&gt;
&lt;br /&gt;
- Grid files (.grd)&lt;br /&gt;
&lt;br /&gt;
- XYZ files (.xyz)&lt;br /&gt;
&lt;br /&gt;
- Land polygon files (.xy)&lt;br /&gt;
&lt;br /&gt;
- Bathymetry files (.dat)&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
= For Developers =&lt;br /&gt;
&lt;br /&gt;
This section is aimed at contributors.&lt;br /&gt;
&lt;br /&gt;
== Plugin structure ==&lt;br /&gt;
&lt;br /&gt;
For ease of development, the plugin is divided in two main directories, ''core'' and ''plugin'':&lt;br /&gt;
&lt;br /&gt;
 mohid_qgis/&lt;br /&gt;
   core/&lt;br /&gt;
   plugin/&lt;br /&gt;
&lt;br /&gt;
The ''plugin'' directory will hold the plugin itself, with the UI elements and everything related to their interface logic.&lt;br /&gt;
&lt;br /&gt;
The ''core'' directory will hold additional tools such as utilities, algorithms, conversion scripts, etc...&lt;br /&gt;
&lt;br /&gt;
=== User Interface ===&lt;br /&gt;
&lt;br /&gt;
QGIS uses ''.ui'' files to represent an UI and a ''.py'' file to hold the logic of the UI (button actions, etc).&lt;br /&gt;
&lt;br /&gt;
The UI is based on a ''QDockWidget'' with an empty ''QTabWidget''. Individual tabs are added on top. This allows the individual development and isolation of each tab which allows for an organized scaling of the plugin. Each tab will then consist of at least a ''.ui'' and a ''.py'' files. The ''plugin/tab_bathymetry'' directory holds the bathymetry tab code and can be consulted for reference.&lt;br /&gt;
&lt;br /&gt;
== Add new tab ==&lt;br /&gt;
&lt;br /&gt;
To add a new tab, one must first create the respective UI interface. The best way of doing this is to use ''QT Designer'', which should come with the QGIS installation. This will generate a .ui file that is used by QGIS to render the UI. This can also be done manually by writing every UI element and its attributes into a .ui file. However, this approach is not recommended as it takes more time and is prone to errors.&lt;br /&gt;
&lt;br /&gt;
= Report a bug =&lt;br /&gt;
&lt;br /&gt;
If you find a bug, or would like to suggest a new feature, please [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/issues open an issue on GitHub].&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8641</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8641"/>
				<updated>2022-09-16T15:23:26Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* Load tab */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.4.0-alpha.2&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.4.0-alpha.2.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins &amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
= For Users =&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In the first part of this tab, three types of MOHID files can be handled, that are used to generate Createbathymetry (.dat) files:&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
Pressing the buttons [[File:PluginFsButton.PNG]] opens the file browser to look for the respective filepaths. These file types can also be loaded for visualization by additionally pressing the load button [[File:PluginLoadButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
In the second part of this tab is it possible to load and edit the final MOHID bathymetry files (.dat).&lt;br /&gt;
&lt;br /&gt;
Loading the bathymetry follows the same logic as the other file types above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load tab ===&lt;br /&gt;
&lt;br /&gt;
In this tab, files can be loaded into QGIS. At the moment, these file formats can be loaded:&lt;br /&gt;
&lt;br /&gt;
- Grid files (.grd)&lt;br /&gt;
&lt;br /&gt;
- XYZ files (.xyz)&lt;br /&gt;
&lt;br /&gt;
- Land polygon files (.xy)&lt;br /&gt;
&lt;br /&gt;
- Bathymetry files (.dat)&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
= For Developers =&lt;br /&gt;
&lt;br /&gt;
This section is aimed at contributors.&lt;br /&gt;
&lt;br /&gt;
== Plugin structure ==&lt;br /&gt;
&lt;br /&gt;
For ease of development, the plugin is divided in two main directories, ''core'' and ''plugin'':&lt;br /&gt;
&lt;br /&gt;
 mohid_qgis/&lt;br /&gt;
   core/&lt;br /&gt;
   plugin/&lt;br /&gt;
&lt;br /&gt;
The ''plugin'' directory will hold the plugin itself, with the UI elements and everything related to their interface logic.&lt;br /&gt;
&lt;br /&gt;
The ''core'' directory will hold additional tools such as utilities, algorithms, conversion scripts, etc...&lt;br /&gt;
&lt;br /&gt;
=== User Interface ===&lt;br /&gt;
&lt;br /&gt;
QGIS uses ''.ui'' files to represent an UI and a ''.py'' file to hold the logic of the UI (button actions, etc).&lt;br /&gt;
&lt;br /&gt;
The UI is based on a ''QDockWidget'' with an empty ''QTabWidget''. Individual tabs are added on top. This allows the individual development and isolation of each tab which allows for an organized scaling of the plugin. Each tab will then consist of at least a ''.ui'' and a ''.py'' files. The ''plugin/tab_bathymetry'' directory holds the bathymetry tab code and can be consulted for reference.&lt;br /&gt;
&lt;br /&gt;
== Add new tab ==&lt;br /&gt;
&lt;br /&gt;
To add a new tab, one must first create the respective UI interface. The best way of doing this is to use ''QT Designer'', which should come with the QGIS installation. This will generate a .ui file that is used by QGIS to render the UI. This can also be done manually by writing every UI element and its attributes into a .ui file. However, this approach is not recommended as it takes more time and is prone to errors.&lt;br /&gt;
&lt;br /&gt;
= Report a bug =&lt;br /&gt;
&lt;br /&gt;
If you find a bug, or would like to suggest a new feature, please [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/issues open an issue on GitHub].&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8640</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8640"/>
				<updated>2022-09-16T14:09:48Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.4.0-alpha.2&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.4.0-alpha.2.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins &amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
= For Users =&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In the first part of this tab, three types of MOHID files can be handled, that are used to generate Createbathymetry (.dat) files:&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
Pressing the buttons [[File:PluginFsButton.PNG]] opens the file browser to look for the respective filepaths. These file types can also be loaded for visualization by additionally pressing the load button [[File:PluginLoadButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
In the second part of this tab is it possible to load and edit the final MOHID bathymetry files (.dat).&lt;br /&gt;
&lt;br /&gt;
Loading the bathymetry follows the same logic as the other file types above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load tab ===&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
= For Developers =&lt;br /&gt;
&lt;br /&gt;
This section is aimed at contributors.&lt;br /&gt;
&lt;br /&gt;
== Plugin structure ==&lt;br /&gt;
&lt;br /&gt;
For ease of development, the plugin is divided in two main directories, ''core'' and ''plugin'':&lt;br /&gt;
&lt;br /&gt;
 mohid_qgis/&lt;br /&gt;
   core/&lt;br /&gt;
   plugin/&lt;br /&gt;
&lt;br /&gt;
The ''plugin'' directory will hold the plugin itself, with the UI elements and everything related to their interface logic.&lt;br /&gt;
&lt;br /&gt;
The ''core'' directory will hold additional tools such as utilities, algorithms, conversion scripts, etc...&lt;br /&gt;
&lt;br /&gt;
=== User Interface ===&lt;br /&gt;
&lt;br /&gt;
QGIS uses ''.ui'' files to represent an UI and a ''.py'' file to hold the logic of the UI (button actions, etc).&lt;br /&gt;
&lt;br /&gt;
The UI is based on a ''QDockWidget'' with an empty ''QTabWidget''. Individual tabs are added on top. This allows the individual development and isolation of each tab which allows for an organized scaling of the plugin. Each tab will then consist of at least a ''.ui'' and a ''.py'' files. The ''plugin/tab_bathymetry'' directory holds the bathymetry tab code and can be consulted for reference.&lt;br /&gt;
&lt;br /&gt;
== Add new tab ==&lt;br /&gt;
&lt;br /&gt;
To add a new tab, one must first create the respective UI interface. The best way of doing this is to use ''QT Designer'', which should come with the QGIS installation. This will generate a .ui file that is used by QGIS to render the UI. This can also be done manually by writing every UI element and its attributes into a .ui file. However, this approach is not recommended as it takes more time and is prone to errors.&lt;br /&gt;
&lt;br /&gt;
= Report a bug =&lt;br /&gt;
&lt;br /&gt;
If you find a bug, or would like to suggest a new feature, please [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/issues open an issue on GitHub].&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8639</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8639"/>
				<updated>2022-09-16T13:58:30Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* Windows 10 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.4.0-alpha.2&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.4.0-alpha.2.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins &amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
= For Users =&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In the first part of this tab, three types of MOHID files can be handled, that are used to generate Createbathymetry (.dat) files:&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
Pressing the buttons [[File:PluginFsButton.PNG]] opens the file browser to look for the respective filepaths. These file types can also be loaded for visualization by additionally pressing the load button [[File:PluginLoadButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
In the second part of this tab is it possible to load and edit the final MOHID bathymetry files (.dat).&lt;br /&gt;
&lt;br /&gt;
Loading the bathymetry follows the same logic as the other file types above.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
= For Developers =&lt;br /&gt;
&lt;br /&gt;
This section is aimed at contributors.&lt;br /&gt;
&lt;br /&gt;
== Plugin structure ==&lt;br /&gt;
&lt;br /&gt;
For ease of development, the plugin is divided in two main directories, ''core'' and ''plugin'':&lt;br /&gt;
&lt;br /&gt;
 mohid_qgis/&lt;br /&gt;
   core/&lt;br /&gt;
   plugin/&lt;br /&gt;
&lt;br /&gt;
The ''plugin'' directory will hold the plugin itself, with the UI elements and everything related to their interface logic.&lt;br /&gt;
&lt;br /&gt;
The ''core'' directory will hold additional tools such as utilities, algorithms, conversion scripts, etc...&lt;br /&gt;
&lt;br /&gt;
=== User Interface ===&lt;br /&gt;
&lt;br /&gt;
QGIS uses ''.ui'' files to represent an UI and a ''.py'' file to hold the logic of the UI (button actions, etc).&lt;br /&gt;
&lt;br /&gt;
The UI is based on a ''QDockWidget'' with an empty ''QTabWidget''. Individual tabs are added on top. This allows the individual development and isolation of each tab which allows for an organized scaling of the plugin. Each tab will then consist of at least a ''.ui'' and a ''.py'' files. The ''plugin/tab_bathymetry'' directory holds the bathymetry tab code and can be consulted for reference.&lt;br /&gt;
&lt;br /&gt;
== Add new tab ==&lt;br /&gt;
&lt;br /&gt;
To add a new tab, one must first create the respective UI interface. The best way of doing this is to use ''QT Designer'', which should come with the QGIS installation. This will generate a .ui file that is used by QGIS to render the UI. This can also be done manually by writing every UI element and its attributes into a .ui file. However, this approach is not recommended as it takes more time and is prone to errors.&lt;br /&gt;
&lt;br /&gt;
= Report a bug =&lt;br /&gt;
&lt;br /&gt;
If you find a bug, or would like to suggest a new feature, please [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/issues open an issue on GitHub].&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8638</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8638"/>
				<updated>2022-09-16T13:40:37Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* MOHID plugin installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.4.0-alpha.2&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.4.0-alpha.2.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
= For Users =&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In the first part of this tab, three types of MOHID files can be handled, that are used to generate Createbathymetry (.dat) files:&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
Pressing the buttons [[File:PluginFsButton.PNG]] opens the file browser to look for the respective filepaths. These file types can also be loaded for visualization by additionally pressing the load button [[File:PluginLoadButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
In the second part of this tab is it possible to load and edit the final MOHID bathymetry files (.dat).&lt;br /&gt;
&lt;br /&gt;
Loading the bathymetry follows the same logic as the other file types above.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
= For Developers =&lt;br /&gt;
&lt;br /&gt;
This section is aimed at contributors.&lt;br /&gt;
&lt;br /&gt;
== Plugin structure ==&lt;br /&gt;
&lt;br /&gt;
For ease of development, the plugin is divided in two main directories, ''core'' and ''plugin'':&lt;br /&gt;
&lt;br /&gt;
 mohid_qgis/&lt;br /&gt;
   core/&lt;br /&gt;
   plugin/&lt;br /&gt;
&lt;br /&gt;
The ''plugin'' directory will hold the plugin itself, with the UI elements and everything related to their interface logic.&lt;br /&gt;
&lt;br /&gt;
The ''core'' directory will hold additional tools such as utilities, algorithms, conversion scripts, etc...&lt;br /&gt;
&lt;br /&gt;
=== User Interface ===&lt;br /&gt;
&lt;br /&gt;
QGIS uses ''.ui'' files to represent an UI and a ''.py'' file to hold the logic of the UI (button actions, etc).&lt;br /&gt;
&lt;br /&gt;
The UI is based on a ''QDockWidget'' with an empty ''QTabWidget''. Individual tabs are added on top. This allows the individual development and isolation of each tab which allows for an organized scaling of the plugin. Each tab will then consist of at least a ''.ui'' and a ''.py'' files. The ''plugin/tab_bathymetry'' directory holds the bathymetry tab code and can be consulted for reference.&lt;br /&gt;
&lt;br /&gt;
== Add new tab ==&lt;br /&gt;
&lt;br /&gt;
To add a new tab, one must first create the respective UI interface. The best way of doing this is to use ''QT Designer'', which should come with the QGIS installation. This will generate a .ui file that is used by QGIS to render the UI. This can also be done manually by writing every UI element and its attributes into a .ui file. However, this approach is not recommended as it takes more time and is prone to errors.&lt;br /&gt;
&lt;br /&gt;
= Report a bug =&lt;br /&gt;
&lt;br /&gt;
If you find a bug, or would like to suggest a new feature, please [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/issues open an issue on GitHub].&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8626</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8626"/>
				<updated>2022-07-15T13:07:50Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* MOHID plugin installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.3.0-alpha.1&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.3.0-alpha.1.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
= For Users =&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In the first part of this tab, three types of MOHID files can be handled, that are used to generate Createbathymetry (.dat) files:&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
Pressing the buttons [[File:PluginFsButton.PNG]] opens the file browser to look for the respective filepaths. These file types can also be loaded for visualization by additionally pressing the load button [[File:PluginLoadButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
In the second part of this tab is it possible to load and edit the final MOHID bathymetry files (.dat).&lt;br /&gt;
&lt;br /&gt;
Loading the bathymetry follows the same logic as the other file types above.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
= For Developers =&lt;br /&gt;
&lt;br /&gt;
This section is aimed at contributors.&lt;br /&gt;
&lt;br /&gt;
== Plugin structure ==&lt;br /&gt;
&lt;br /&gt;
For ease of development, the plugin is divided in two main directories, ''core'' and ''plugin'':&lt;br /&gt;
&lt;br /&gt;
 mohid_qgis/&lt;br /&gt;
   core/&lt;br /&gt;
   plugin/&lt;br /&gt;
&lt;br /&gt;
The ''plugin'' directory will hold the plugin itself, with the UI elements and everything related to their interface logic.&lt;br /&gt;
&lt;br /&gt;
The ''core'' directory will hold additional tools such as utilities, algorithms, conversion scripts, etc...&lt;br /&gt;
&lt;br /&gt;
=== User Interface ===&lt;br /&gt;
&lt;br /&gt;
QGIS uses ''.ui'' files to represent an UI and a ''.py'' file to hold the logic of the UI (button actions, etc).&lt;br /&gt;
&lt;br /&gt;
The UI is based on a ''QDockWidget'' with an empty ''QTabWidget''. Individual tabs are added on top. This allows the individual development and isolation of each tab which allows for an organized scaling of the plugin. Each tab will then consist of at least a ''.ui'' and a ''.py'' files. The ''plugin/tab_bathymetry'' directory holds the bathymetry tab code and can be consulted for reference.&lt;br /&gt;
&lt;br /&gt;
== Add new tab ==&lt;br /&gt;
&lt;br /&gt;
To add a new tab, one must first create the respective UI interface. The best way of doing this is to use ''QT Designer'', which should come with the QGIS installation. This will generate a .ui file that is used by QGIS to render the UI. This can also be done manually by writing every UI element and its attributes into a .ui file. However, this approach is not recommended as it takes more time and is prone to errors.&lt;br /&gt;
&lt;br /&gt;
= Report a bug =&lt;br /&gt;
&lt;br /&gt;
If you find a bug, or would like to suggest a new feature, please [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/issues open an issue on GitHub].&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8623</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8623"/>
				<updated>2022-07-15T11:26:56Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* For Developers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.3.0-alpha.0&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.3.0-alpha.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
= For Users =&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In the first part of this tab, three types of MOHID files can be handled, that are used to generate Createbathymetry (.dat) files:&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
Pressing the buttons [[File:PluginFsButton.PNG]] opens the file browser to look for the respective filepaths. These file types can also be loaded for visualization by additionally pressing the load button [[File:PluginLoadButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
In the second part of this tab is it possible to load and edit the final MOHID bathymetry files (.dat).&lt;br /&gt;
&lt;br /&gt;
Loading the bathymetry follows the same logic as the other file types above.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
= For Developers =&lt;br /&gt;
&lt;br /&gt;
This section is aimed at contributors.&lt;br /&gt;
&lt;br /&gt;
== Plugin structure ==&lt;br /&gt;
&lt;br /&gt;
For ease of development, the plugin is divided in two main directories, ''core'' and ''plugin'':&lt;br /&gt;
&lt;br /&gt;
 mohid_qgis/&lt;br /&gt;
   core/&lt;br /&gt;
   plugin/&lt;br /&gt;
&lt;br /&gt;
The ''plugin'' directory will hold the plugin itself, with the UI elements and everything related to their interface logic.&lt;br /&gt;
&lt;br /&gt;
The ''core'' directory will hold additional tools such as utilities, algorithms, conversion scripts, etc...&lt;br /&gt;
&lt;br /&gt;
=== User Interface ===&lt;br /&gt;
&lt;br /&gt;
QGIS uses ''.ui'' files to represent an UI and a ''.py'' file to hold the logic of the UI (button actions, etc).&lt;br /&gt;
&lt;br /&gt;
The UI is based on a ''QDockWidget'' with an empty ''QTabWidget''. Individual tabs are added on top. This allows the individual development and isolation of each tab which allows for an organized scaling of the plugin. Each tab will then consist of at least a ''.ui'' and a ''.py'' files. The ''plugin/tab_bathymetry'' directory holds the bathymetry tab code and can be consulted for reference.&lt;br /&gt;
&lt;br /&gt;
== Add new tab ==&lt;br /&gt;
&lt;br /&gt;
To add a new tab, one must first create the respective UI interface. The best way of doing this is to use ''QT Designer'', which should come with the QGIS installation. This will generate a .ui file that is used by QGIS to render the UI. This can also be done manually by writing every UI element and its attributes into a .ui file. However, this approach is not recommended as it takes more time and is prone to errors.&lt;br /&gt;
&lt;br /&gt;
= Report a bug =&lt;br /&gt;
&lt;br /&gt;
If you find a bug, or would like to suggest a new feature, please [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/issues open an issue on GitHub].&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8622</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8622"/>
				<updated>2022-07-15T11:00:07Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.3.0-alpha.0&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.3.0-alpha.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
= For Users =&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In the first part of this tab, three types of MOHID files can be handled, that are used to generate Createbathymetry (.dat) files:&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
Pressing the buttons [[File:PluginFsButton.PNG]] opens the file browser to look for the respective filepaths. These file types can also be loaded for visualization by additionally pressing the load button [[File:PluginLoadButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
In the second part of this tab is it possible to load and edit the final MOHID bathymetry files (.dat).&lt;br /&gt;
&lt;br /&gt;
Loading the bathymetry follows the same logic as the other file types above.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
= For Developers =&lt;br /&gt;
&lt;br /&gt;
This section is aimed at contributors.&lt;br /&gt;
&lt;br /&gt;
=== Plugin structure ===&lt;br /&gt;
&lt;br /&gt;
For ease of development, the plugin is divided in two main directories, ''core'' and ''plugin'':&lt;br /&gt;
&lt;br /&gt;
 mohid_qgis/&lt;br /&gt;
   core/&lt;br /&gt;
   plugin/&lt;br /&gt;
&lt;br /&gt;
The ''plugin'' directory will hold the plugin itself, with the UI elements and everything related to their interface logic.&lt;br /&gt;
&lt;br /&gt;
The ''core'' directory will hold additional tools such as utilities, algorithms, conversion scripts, etc...&lt;br /&gt;
&lt;br /&gt;
= Report a bug =&lt;br /&gt;
&lt;br /&gt;
If you find a bug, or would like to suggest a new feature, please [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/issues open an issue on GitHub].&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8621</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8621"/>
				<updated>2022-07-15T10:57:59Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* For Developers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.3.0-alpha.0&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.3.0-alpha.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
== For Users ==&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In the first part of this tab, three types of MOHID files can be handled, that are used to generate Createbathymetry (.dat) files:&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
Pressing the buttons [[File:PluginFsButton.PNG]] opens the file browser to look for the respective filepaths. These file types can also be loaded for visualization by additionally pressing the load button [[File:PluginLoadButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
In the second part of this tab is it possible to load and edit the final MOHID bathymetry files (.dat).&lt;br /&gt;
&lt;br /&gt;
Loading the bathymetry follows the same logic as the other file types above.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== For Developers ==&lt;br /&gt;
&lt;br /&gt;
This section is aimed at contributors.&lt;br /&gt;
&lt;br /&gt;
=== PLugin structure ===&lt;br /&gt;
&lt;br /&gt;
For ease of development, the plugin is divided in two main directories, ''core'' and ''plugin'':&lt;br /&gt;
&lt;br /&gt;
 mohid_qgis/&lt;br /&gt;
   core/&lt;br /&gt;
   plugin/&lt;br /&gt;
&lt;br /&gt;
The ''plugin'' directory will hold the plugin itself, with the UI elements and everything related to their interface logic.&lt;br /&gt;
&lt;br /&gt;
The ''core'' directory will hold additional tools such as utilities, algorithms, conversion scripts, etc...&lt;br /&gt;
&lt;br /&gt;
== Report a bug ==&lt;br /&gt;
&lt;br /&gt;
If you find a bug, or would like to suggest a new feature, please [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/issues open an issue on GitHub].&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8620</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8620"/>
				<updated>2022-07-15T10:46:46Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* Report a bug */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.3.0-alpha.0&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.3.0-alpha.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
== For Users ==&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In the first part of this tab, three types of MOHID files can be handled, that are used to generate Createbathymetry (.dat) files:&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
Pressing the buttons [[File:PluginFsButton.PNG]] opens the file browser to look for the respective filepaths. These file types can also be loaded for visualization by additionally pressing the load button [[File:PluginLoadButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
In the second part of this tab is it possible to load and edit the final MOHID bathymetry files (.dat).&lt;br /&gt;
&lt;br /&gt;
Loading the bathymetry follows the same logic as the other file types above.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== For Developers ==&lt;br /&gt;
&lt;br /&gt;
This section is aimed at contributors.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Report a bug ==&lt;br /&gt;
&lt;br /&gt;
If you find a bug, or would like to suggest a new feature, please [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/issues open an issue on GitHub].&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8619</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8619"/>
				<updated>2022-07-15T10:44:59Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* For Developers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.3.0-alpha.0&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.3.0-alpha.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
== For Users ==&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In the first part of this tab, three types of MOHID files can be handled, that are used to generate Createbathymetry (.dat) files:&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
Pressing the buttons [[File:PluginFsButton.PNG]] opens the file browser to look for the respective filepaths. These file types can also be loaded for visualization by additionally pressing the load button [[File:PluginLoadButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
In the second part of this tab is it possible to load and edit the final MOHID bathymetry files (.dat).&lt;br /&gt;
&lt;br /&gt;
Loading the bathymetry follows the same logic as the other file types above.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== For Developers ==&lt;br /&gt;
&lt;br /&gt;
This section is aimed at contributors.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Report a bug ==&lt;br /&gt;
&lt;br /&gt;
If you find a bug, or would like to suggest a new feature, please do let us know by opening an issue on GitHub.&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8618</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8618"/>
				<updated>2022-07-15T10:29:34Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.3.0-alpha.0&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.3.0-alpha.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
== For Users ==&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In the first part of this tab, three types of MOHID files can be handled, that are used to generate Createbathymetry (.dat) files:&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
Pressing the buttons [[File:PluginFsButton.PNG]] opens the file browser to look for the respective filepaths. These file types can also be loaded for visualization by additionally pressing the load button [[File:PluginLoadButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
In the second part of this tab is it possible to load and edit the final MOHID bathymetry files (.dat).&lt;br /&gt;
&lt;br /&gt;
Loading the bathymetry follows the same logic as the other file types above.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== For Developers ==&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8617</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8617"/>
				<updated>2022-07-15T10:24:09Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* Plugin Features */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.3.0-alpha.0&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.3.0-alpha.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
== For Users ==&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In the first part of this tab, three types of MOHID files can be handled, that are used to generate Createbathymetry (.dat) files:&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
Pressing the buttons [[File:PluginFsButton.PNG]] opens the file browser to look for the respective filepaths. These file types can also be loaded for visualization by additionally pressing the load button [[File:PluginLoadButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
In the second part of this tab is it possible to load and edit the final MOHID bathymetry files (.dat).&lt;br /&gt;
&lt;br /&gt;
Loading the bathymetry follows the same logic as the other file types above.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8616</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8616"/>
				<updated>2022-07-15T10:23:07Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* Windows 10 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.3.0-alpha.0&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.3.0-alpha.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder ''mohid_qgis'' must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder must be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
== Plugin Features ==&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In the first part of this tab, three types of MOHID files can be handled, that are used to generate Createbathymetry (.dat) files:&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
Pressing the buttons [[File:PluginFsButton.PNG]] opens the file browser to look for the respective filepaths. These file types can also be loaded for visualization by additionally pressing the load button [[File:PluginLoadButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
In the second part of this tab is it possible to load and edit the final MOHID bathymetry files (.dat).&lt;br /&gt;
&lt;br /&gt;
Loading the bathymetry follows the same logic as the other file types above.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8609</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8609"/>
				<updated>2022-07-06T17:09:26Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* MOHID plugin installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.3.0-alpha.0&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.3.0-alpha.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder should be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
== Plugin Features ==&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In the first part of this tab, three types of MOHID files can be handled, that are used to generate Createbathymetry (.dat) files:&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
Pressing the buttons [[File:PluginFsButton.PNG]] opens the file browser to look for the respective filepaths. These file types can also be loaded for visualization by additionally pressing the load button [[File:PluginLoadButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
In the second part of this tab is it possible to load and edit the final MOHID bathymetry files (.dat).&lt;br /&gt;
&lt;br /&gt;
Loading the bathymetry follows the same logic as the other file types above.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Bathymetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8605</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8605"/>
				<updated>2022-06-14T22:57:54Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* MOHID plugin installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.2.0-alpha.2&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.2.0-alpha.2.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder should be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
== Plugin Features ==&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In the first part of this tab, three types of MOHID files can be handled, that are used to generate Createbathymetry (.dat) files:&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
Pressing the buttons [[File:PluginFsButton.PNG]] opens the file browser to look for the respective filepaths. These file types can also be loaded for visualization by additionally pressing the load button [[File:PluginLoadButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
In the second part of this tab is it possible to load and edit the final MOHID bathymetry files (.dat).&lt;br /&gt;
&lt;br /&gt;
Loading the bathymetry follows the same logic as the other file types above.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Barimetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8604</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8604"/>
				<updated>2022-06-14T19:17:39Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* MOHID plugin installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
 Current version: v0.2.0-alpha.1&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 and 3.22 standalone versions, which support Python 3.7.0+. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.2.0-alpha.1.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder should be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
== Plugin Features ==&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In the first part of this tab, three types of MOHID files can be handled, that are used to generate Createbathymetry (.dat) files:&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
Pressing the buttons [[File:PluginFsButton.PNG]] opens the file browser to look for the respective filepaths. These file types can also be loaded for visualization by additionally pressing the load button [[File:PluginLoadButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
In the second part of this tab is it possible to load and edit the final MOHID bathymetry files (.dat).&lt;br /&gt;
&lt;br /&gt;
Loading the bathymetry follows the same logic as the other file types above.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Barimetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8603</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8603"/>
				<updated>2022-06-14T16:52:26Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* Plugin Features */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 standalone version, which supports Python 3.7.0. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.2.0-alpha.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder should be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
== Plugin Features ==&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:PluginCaptureButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
In the first part of this tab, three types of MOHID files can be handled, that are used to generate Createbathymetry (.dat) files:&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
Pressing the buttons [[File:PluginFsButton.PNG]] opens the file browser to look for the respective filepaths. These file types can also be loaded for visualization by additionally pressing the load button [[File:PluginLoadButton.PNG]].&lt;br /&gt;
&lt;br /&gt;
In the second part of this tab is it possible to load and edit the final MOHID bathymetry files (.dat).&lt;br /&gt;
&lt;br /&gt;
Loading the bathymetry follows the same logic as the other file types above.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Barimetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=File:PluginCaptureButton.PNG&amp;diff=8602</id>
		<title>File:PluginCaptureButton.PNG</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=File:PluginCaptureButton.PNG&amp;diff=8602"/>
				<updated>2022-06-14T16:24:44Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=File:PluginFsButton.PNG&amp;diff=8601</id>
		<title>File:PluginFsButton.PNG</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=File:PluginFsButton.PNG&amp;diff=8601"/>
				<updated>2022-06-14T16:16:51Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=File:PluginLoadButton.PNG&amp;diff=8600</id>
		<title>File:PluginLoadButton.PNG</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=File:PluginLoadButton.PNG&amp;diff=8600"/>
				<updated>2022-06-14T16:16:24Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8599</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8599"/>
				<updated>2022-06-14T16:14:57Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* Plugin Features */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 standalone version, which supports Python 3.7.0. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.2.0-alpha.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder should be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
== Plugin Features ==&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can capture the origin with the mouse pointer directly on the map by pressing the button [[File:Example.jpg]]&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
=== Bathymetry tab ===&lt;br /&gt;
&lt;br /&gt;
To generate Createbathymetry (.dat) files, three types of MOHID files can be handled in the first part of this tab.&lt;br /&gt;
&lt;br /&gt;
Grid (.grd), xyz points (.xyz) and land polygons file(.xy).&lt;br /&gt;
&lt;br /&gt;
These file types can be loaded for visualization by pressing the button [[File:Example.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Barimetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8598</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8598"/>
				<updated>2022-06-14T16:00:58Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* Grids */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 standalone version, which supports Python 3.7.0. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.2.0-alpha.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder should be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
== Plugin Features ==&lt;br /&gt;
&lt;br /&gt;
=== Grid tab ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can use the button to capture the origin with the mouse pointer directly on the map.&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Barimetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8597</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8597"/>
				<updated>2022-06-14T16:00:41Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* Grids */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 standalone version, which supports Python 3.7.0. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.2.0-alpha.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder should be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
== Plugin Features ==&lt;br /&gt;
&lt;br /&gt;
=== Grids ===&lt;br /&gt;
&lt;br /&gt;
At the moment, only regular grids are fully operational, meaning MOHID grids (.grd) can be created and saved, and existing grids can be loaded and edited.&lt;br /&gt;
&lt;br /&gt;
Filling the form should be self-explanatory. In principle, the grid can only be created when all fields are properly filled.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that you can use the button to capture the origin with the mouse pointer directly on the map.&lt;br /&gt;
&lt;br /&gt;
'''Preview''' button creates a temporary layer to visualize the grid.&lt;br /&gt;
&lt;br /&gt;
'''Save''' button saves the grid to a .grd file&lt;br /&gt;
&lt;br /&gt;
'''Load''' loads an existing .grd grid into QGIS (only for visualizing for now).&lt;br /&gt;
&lt;br /&gt;
 Note: Either comma (,) or dot (.) should work as decimal separators.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Barimetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8596</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8596"/>
				<updated>2022-06-14T15:48:43Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 standalone version, which supports Python 3.7.0. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.2.0-alpha.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder should be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
== Plugin Features ==&lt;br /&gt;
&lt;br /&gt;
=== Grids ===&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Barimetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8595</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8595"/>
				<updated>2022-06-14T15:46:05Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* MOHID plugin */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin installation ==&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 standalone version, which supports Python 3.7.0. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.2.0-alpha.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder should be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Barimetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8594</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8594"/>
				<updated>2022-06-14T15:44:34Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* Installation Windows 10 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin ==&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 standalone version, which supports Python 3.7.0. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.2.0-alpha.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Installation Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder should be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under '''Installed''' and check its box.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Barimetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8593</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8593"/>
				<updated>2022-06-14T15:43:50Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* Installation Windows 10 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin ==&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 standalone version, which supports Python 3.7.0. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.2.0-alpha.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Installation Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder should be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigation bar, it can be activated through the '''Plugins''' menu, '''Plugins&amp;gt; Manage and Install Plugins...'''. Find the '''MOHID''' plugin under Installed and check the box.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Barimetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8592</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8592"/>
				<updated>2022-06-14T15:40:08Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* MOHID plugin */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin ==&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 standalone version, which supports Python 3.7.0. An alpha version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.2.0-alpha.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Installation Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder should be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
To install python packages follow the following steps:&lt;br /&gt;
&lt;br /&gt;
Find the &amp;quot;OSGeo4W Shell&amp;quot; that should be in the desktop shortcuts, installed during QGIS setup, and execute it. Then run the following instructions on the shell:&lt;br /&gt;
 cd ''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mohid_qgis''&lt;br /&gt;
where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
 python -m pip install --upgrade pip&lt;br /&gt;
 python -m pip install -r requirements.txt&lt;br /&gt;
&lt;br /&gt;
QGIS should now be running with the MOHID plugin.&lt;br /&gt;
&lt;br /&gt;
If the plugin is not visible in the navigatino bar&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Barimetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8591</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8591"/>
				<updated>2022-06-14T15:16:43Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* Quick Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.22 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin ==&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 standalone version, which supports Python 3.7.0. A first working version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.1.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Installation Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder should be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
 QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
 it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Barimetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8559</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8559"/>
				<updated>2022-02-24T11:09:32Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* Installation Windows 10 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.16 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin ==&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 standalone version, which supports Python 3.7.0. A first working version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.1.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Installation Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
Note: If the ''plugins'' folder under ''python'' does not exist, it can be created manually.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
The plugin folder should be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
 QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
 it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Barimetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8558</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8558"/>
				<updated>2022-02-24T11:07:28Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* Installation Windows 10 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.16 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin ==&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 standalone version, which supports Python 3.7.0. A first working version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.1.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Installation Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
The plugin folder should be named ''mohid_qgis''.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
 QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
 it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Barimetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8557</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8557"/>
				<updated>2022-02-24T11:00:38Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* MOHID plugin */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.16 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin ==&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 standalone version, which supports Python 3.7.0. A first working version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.1.0.zip here]. Note that this repository is private, hence login and access to the repository are likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Installation Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
The plugin folder should be named ''qgis_plugin''.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
 QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
 it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Barimetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8556</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8556"/>
				<updated>2022-02-24T11:00:18Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: /* MOHID plugin */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.16 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin ==&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 standalone version, which supports Python 3.7.0. A first working version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.1.0.zip here]. Note that this repository is private, hence login and access to the repository is likely required.&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Installation Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
The plugin folder should be named ''qgis_plugin''.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
 QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
 it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
&lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Barimetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8555</id>
		<title>MOHID QGIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=MOHID_QGIS&amp;diff=8555"/>
				<updated>2022-02-24T10:57:03Z</updated>
		
		<summary type="html">&lt;p&gt;RuiCorreia: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== !!!Under Construction!!! ===&lt;br /&gt;
&lt;br /&gt;
== Quick Introduction ==&lt;br /&gt;
&lt;br /&gt;
This User Manual focuses on helping professionals replicate any tasks previously done in the MOHID Graphical User Interface using the QGIS platform.&lt;br /&gt;
&lt;br /&gt;
[https://qgis.org/en/site/index.html QGIS] is a widely used open source Geographic Information System. If you are not familiar with QGIS, you can find the most recent version for your desired work environment on its official [https://qgis.org/en/site/forusers/download.html download section], you can also find more details about the platform by consulting its [https://qgis.org/en/docs/index.html documentation]. The instructions written in this manual will be using the 3.16 LTR version, so keep in mind that some interface elements may be outdated by the time you’re consulting this manual.&lt;br /&gt;
&lt;br /&gt;
== MOHID plugin ==&lt;br /&gt;
&lt;br /&gt;
This plugin is currently under development. It has been tested with QGIS 3.16 standalone version, which supports Python 3.7.0. A first working version can be downloaded from the git repository [https://github.com/Mohid-Water-Modelling-System/mohid_qgis/archive/refs/tags/v0.1.0.zip here].&lt;br /&gt;
&lt;br /&gt;
In the future, the plugin might be available in QGIS plugin repositories. For the time being, it has to be manually installed.&lt;br /&gt;
&lt;br /&gt;
=== Installation Windows 10 ===&lt;br /&gt;
&lt;br /&gt;
The downloaded zip must be unzipped and the plugin folder must be copied over to the QGIS plugin directory:&lt;br /&gt;
''C:\Users\{USER}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'', where ''{USER}'' corresponds to the current Windows user account.&lt;br /&gt;
&lt;br /&gt;
The plugin folder should be named ''qgis_plugin''.&lt;br /&gt;
&lt;br /&gt;
Note: ''AppData'' is usually a hidden folder.&lt;br /&gt;
&lt;br /&gt;
 QGIS for Windows ships with its own python installation, this means if a third-party python module is required &lt;br /&gt;
 it has to be installed in the QGIS python environment and not on the system's.&lt;br /&gt;
    &lt;br /&gt;
== Creating a QGIS Project ==&lt;br /&gt;
&lt;br /&gt;
In order to do whichever task you need in the QGIS environment you’ll need to create a new project or open an already existing one.&lt;br /&gt;
&lt;br /&gt;
You can create a project by opening the '''Project &amp;gt; New'''  Menu. Alternatively, to open an already existing project, simply open '''Project &amp;gt; Open''' Menu and choose the one you wish to open.&lt;br /&gt;
&lt;br /&gt;
With a project open, you can now add whichever elements you desire. You can start by opening a simple world map by expanding the ''XYZ Tiles'' group and selecting ''OpenStreetMap'' in the Browser:&lt;br /&gt;
&lt;br /&gt;
[[File:qgis_browser.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
== MOHID Barimetry ==&lt;br /&gt;
&lt;br /&gt;
=== Visualizing points in MOHID’s .xyz format: ===&lt;br /&gt;
&lt;br /&gt;
QGIS can easily display point data represented in the MOHID .xyz format, although it is unable to process the header’s option details.&lt;br /&gt;
To visualize points represented in this format you’ll need to add a new “Delimited Text Layer”. You can do this by opening the '''Layer &amp;gt; Add Layer &amp;gt; Delimited Text Layer''' Menu, which will lead you to the following window:&lt;br /&gt;
&lt;br /&gt;
[[File:data_src_mgr_delim_txt.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
You’ll need to select the ''Custom delimiters'' option in the '''File Format''' section and check the ''Space'' option. &lt;br /&gt;
&lt;br /&gt;
In the '''Record and Fields Options''' section, select the ''number of header lines to discard'' according to the size of the .xyz file’s option header. Make sure to check the ''Detect field types'' option and uncheck the First record has field names and ''Decimal separator is comma options'', since the latter are not present in the MOHID .xyz format. &lt;br /&gt;
&lt;br /&gt;
Finally, you’ll need to check the ''Point coordinates'' option in the '''Geometry Definition''' section and select ''field_1'', ''field_2'' and ''field_3'' as the x, y and z fields, respectively. Don’t forget to select the Geometry CRS that matches the one specified in the file’s option header.&lt;br /&gt;
&lt;br /&gt;
You’ll now be able to check the table generated by the given data in the '''Sample Data''' section and add additional settings in the '''Layer Settings''' section.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing polygon in MOHID’s .xy format: ===&lt;br /&gt;
&lt;br /&gt;
The first step to visualize a MOHID’s .xy format polygon in QGIS is to convert the polygon file to Shapefile format.&lt;br /&gt;
A script for converting MOHID's .xy format to shapefile and to WKT is available in the following repository:&lt;br /&gt;
[https://github.com/Flatlightning/mohid-conversions https://github.com/Flatlightning/mohid-conversions]&lt;br /&gt;
&lt;br /&gt;
After downloading the polygonConverter.py script, convert your polygon.xy file to Shapefile format using the folowing command:&lt;br /&gt;
&amp;lt;code&amp;gt;python polygonConverter.py -f shp -i polygon.xy&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script will generate three files: polygon.dbf, polygon.shp and polygon.shx.&lt;br /&gt;
&lt;br /&gt;
The next step is to add the polygon layer over the ''OpenStreetMap'' layer in QGIS.&lt;br /&gt;
To add the polygon layer, select the '''Layer &amp;gt; Add Layer &amp;gt; Vector Layer''' menu, which opens following window:&lt;br /&gt;
&lt;br /&gt;
[[File:vector_layer.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
In the '''Vector Dataset(s)''' field enter the path to your polygon.dbf file and click '''Add'''.&lt;br /&gt;
Then, double click on the newly created polygon layer in the Layers panel to open the '''Layer Properties''' Menu and select&lt;br /&gt;
the '''Source''' tab:&lt;br /&gt;
&lt;br /&gt;
[[File:layer_properties.png|center|x400px]]&lt;br /&gt;
&lt;br /&gt;
Finally, select the '''EPSG:4326 - WGS 84''' option on the '''Assigned Coordinate Reference System (CRS)''' field and click on&lt;br /&gt;
the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
You should now visualize the polygon over the map, e.g.:&lt;br /&gt;
&lt;br /&gt;
[[File:polygon.png|center|x400px]]&lt;/div&gt;</summary>
		<author><name>RuiCorreia</name></author>	</entry>

	</feed>