TUFLOW Message 0305: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 27:
QGIS or ArcMap - The .prj file associated with each shapefile might start similarly as below:<br>
<tt>PROJCS["GDA94_MGA_zone_54",GEOGCS["GCS_GDA_1994",DATUM["D_GDA_1994",SPHEROID["GRS_1980",6378137,298.257222101]</tt><br>
<br>
MapInfo - The fourth line of a .mif file contains the projection information. For example it may look like this:<br>
<tt>CoordSys Earth Projection 8, 104, "m", 177, 0, 0.9996, 500000, 10000000 Bounds (-7745844.29597, 2035.05676326) (8745844.29597, 19997964.9432)</tt><br>
<br>
 
The shapefile projection string can be written slightly differently when switching between GIS packages (e.g. QGIS, ArcMap) or using different tools for shapefile exporting even though it still the same projection. If this occurs, TUFLOW will report a "Message 0305".<br>
Occasionally the last few numbers which are the bounds of the projection, can change even when the projection is the same. If this occurs, TUFLOW will report a "Message 0305". This is a common occurrence when the same projection is written differently. There are two examples below that are the same projection however written differently:<br>
 
Example 1:<br>
Line 40 ⟶ 41:
PROJCS["GDA94_MGA_zone_54",GEOGCS["GCS_GDA_1994",DATUM["D_GDA_1994",SPHEROID["GRS_1980","<font color="red">6378137.0</font>,298.257222101]</tt><br><br>
 
In the above case there is a slight difference in the number due to the decimals. BuildSince 2020-01-AB release, TUFLOW parses the parameter data into number values and compares each of these numbers to check they are consistent. This should provide a more robust check less prone to falsely flagging the projections as different with "Message 0305" for Example 2. A new '''.tcf''' command has been added to allow setting to the previous “Simple” string compare:<br>
<font color="green"><tt>SHP Projection Check Method == SIMPLE </tt></font><br>