GeoPackage Tips: Difference between revisions

Content deleted Content added
Line 17:
To reference a GPKG Database:
<ol>
<li>To specifySpecify a GPKG Database for the entire model, addby adding the following command to the beginning of the .tcf. This database will then be the default for all inputs in all control files. There is no need to reference the database again in the other control files. <br>
<font color="blue"><tt>Spatial Database </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt> <path_to_database> </tt>
<li>To specifySpecify a different GPKG Database for subsequent inputs, useusing the following command. A new database can be specified multiple times throughout control files, TUFLOW will change which database it looks to based oninto the last timedatabase thereferenced above commandthe has been referencedfeature. ThisThe command can be used in the .tcf, .ecf, .tbc, .tgc, .qcf, .tef. For example:<br>
<font color="blue"><tt>Spatial Database </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_zsh.gpkg </tt> <font color="green"><tt> ! Sets GPKG Database</tt></font> <br>
<font color="black"><font color="blue"><tt>Read GIS Z Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_zsh_existing_L </tt></font> <font color="green"><tt> ! References the 2d_zsh_L layer from 2d_zsh.gpkg</tt></font> <br>
Line 28:
 
</ol>Note: The commands are localised to their relevant control file with the exception of the .tcf which acts as a global command (local spatial database will take precedence). If no database is referenced in the other control files, the database referenced in the .tcf will be used.<br>
 
==Referencing a GeoPackage Layer==