QGIS to update MapInfo model: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 8:
* Drag a mif file from the existing model folder into the Map Window of QGIS. This will open it for viewing. Editing the read only file in QGIS will not possible.
* Right click the MapInfo File in the QGIS Layer Panel and select ''Properties''.
[[File:MapInfo_to_QGIS_000MapInfo_to_QGIS_006.JPGPNG|450px]]<br>
* Select ''Information'' in the left title block and review the listed CRS details.
[[File:MapInfo_to_QGIS_001MapInfo_to_QGIS_007.JPGPNG|450px]]<br>
<li> Initialise your QGIS session using the TUFLOW Plugin:
* Select '''Plugins >> TUFLOW >> Editing > Create/Configure TUFLOW Project'''.
Line 21:
* Tick Create Template Files. This will create the QGIS empty template files for any future additions to the model.
* Select ''OK''.
[[File:MapInfo_to_QGIS_002MapInfo_to_QGIS_008.JPGPNG|450px]]<br>
<li> Open the following two TCF Files:
*'''TUFLOW/runs/Create_Empties.tcf'''. this file was created when you completed the ''Create/Configure TUFLOW Project'' steps; and
Line 29:
<li> Also in the existing TUFLOW model TCF, replace the command <font color="blue"><tt>GIS Format</tt></font> <font color="red"><tt> == </tt></font> <tt>MIF</tt> with, <font color="blue"><tt>GIS Format</tt></font> <font color="red"><tt> == </tt></font> <tt>SHP</tt>
</ol>
[[File:MapInfo_to_QGIS_003MapInfo_to_QGIS_009.JPGPNG|450px]]<br>
You will now be able to add compatible QGIS SHP format files to your model. The QGIS TUFLOW Plugin "Import empty file" tool is recommended. <br>
[[File:MapInfo_to_QGIS_004MapInfo_to_QGIS_010.JPGPNG|450px]]<br>
 
When updating a model it is best practice to leave the MapInfo file references as is, and use TUFLOW's data layering functionality to add new GIS entries below existing MapInfo entries. For example.<br>
[[File:MapInfo_to_QGIS_005MapInfo_to_QGIS_011.JPGPNG|450px]]<br>
However, if you need to make changes to existing MIF files, follow these steps to convert the to SHP file format:
<ol>
Line 41:
<li> Copy the features from the MapInfo layers to the relevant new QGIS SHP files. Note, double check the attribute values have been correctly transferred to the new file. In some rare instances when the field attribute type is incompatible this does not occur.
<li> Update the commands within your updated TUFLOW model to reference to the new QGIS SHP files. For future traceability it is best to comment out the prior MapInfo input commands using <font color="green"><tt>!</tt></font>, instead of deleting them.
[[File:MapInfo_to_QGIS_012.PNG|450px]]<br>
</ol>