TUFLOW Message 0307

From Tuflow
Revision as of 22:06, 14 January 2016 by Steph.dufour (talk | contribs)
Jump to navigation Jump to search

TUFLOW Message
WARNING 0307 - No MI Projection or mif header file ",a," found. Non-Earth Coordinates will be used.

Alternate Message
NA

Message Type
WARNING

Description
The geographic projection for GIS input and output data in MID/MIF format has not been defined using the command MI Projection == . When this command is omitted, TUFLOW searches for a file 'Header.mif' in each folder it opens a MID/MIF GIS file and extracts the projection from this file. If no 'Header.mif' file is found, non-earth coordinates are assumed.

Suggestions
Create a projection file by following the instructions outlined on this Wiki page.The created layer then needs to be referenced using the following .tcf command:

MI Projection == ..\model\mi\Model_Projection.mif

Alternatively, a projection line may be extracted from a MIF file by following these steps:

  • In a GIS, create or open a layer in the Cartesian projection to be used for the model.
  • Export the layer in MIF/MID format.
  • Open the .mif file in a text editor, copy the whole line starting with “CoordSys” (usually the 4th or 5th line).
  • Paste the text after the command paste after MI Projection == in the .tcf file.
  • MI Projection == CoordSys Earth Projection 8, 13, "m", 153, 0, 0.9996, 500000, 10000000 Bounds (-7745874.38492, 1999.40969607) (8745874.38492, 19998000.5903)

    If a model has a mixture of .mif and .shp files as input, then both the tcf commands MI Projection == and SHP Projection == should be specified.

    Up
    Go-up.png 0xxx Messages