Difference between revisions of "MapInfo Tips"

From Tuflow
Jump to navigation Jump to search
 
(23 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
=Introduction=
 
=Introduction=
This page contains a
+
This page contains a brief introduction to the MapInfo software.  A number of MapInfo tasks which are repeatedly used in creating a TUFLOW model are described below, each of these has a separate page. If you have any suggestions to be included in these pages, please add them to the discussion page. [[Talk:MapInfo_Tips | Please add MapInfo Suggestions Here!]].
 
== MapInfo File Formats==
 
== MapInfo File Formats==
There are a number of files that make up a MapInfo TableThe minimum files for a GIS map object with data are:
+
A number of files with the same name but different extensions make up a MapInfo tableA brief description of the MapInfo file formats, in particular the MapInfo Interchange (.MIF and .MID) are provided here: [[MapInfo_File_Formats | MapInfo File Formats]].<br>
*.DAT
 
*.ID
 
*.MAP
 
*.TAB
 
  
There are a number of additional files types that may be present, these include: .IND, .TDA, .TIN and .TMA. <br>
 
 
TUFLOW utilises the MapInfo Interchange Format files for MapInfo GIS inputs.  The MapInfo interchange format consists of a pair of files with the extensions .MIF and .MID. Both of these files are text files (and can be viewed in a text editor).  Whilst knowledge of the file formats is not necessary for TUFLOW modelling, advanced users can take advantage of the nature of the file formats to manipulate these datasets.<br>
 
A brief description is given below, for the full specification of the MIF/MID file formats please see [http://www.gissky.com/Download/Download/DataFormat/Mapinfo_Mif.pdf here.]<br>
 
<u>'''MIF File'''</u><br>
 
The .MIF file contains information on the projection, data attributes and types as well as the geographic information contained in the table. An example .MIF file is given below.  Lines 1 to 3 are header information, line 4 defines the projection of the table. Line 5 specifies the number of associated data attributes. A separate line follows for each attribute column (in this case 1), this defines the type and length of this field (in this case we have an attribute named "Comment" which is a character field of length 250. The 7th line ("Data") signals the start of the GIS data.
 
 
Following this are any number of "Point", "Line", "Polyline" and "Region" objects (there are other types of objects such as "Ellipses") but these four are the most common. In the example below the only object is a Polyline ("PLine") with two vertices, the coordinates of these are listed on lines 10 and 11. An object style is associated with each object "Pen (1,2,0)".
 
<br>
 
'''Example .MIF file:'''<br>
 
<pre>
 
Version  600
 
Charset "WindowsLatin1"
 
Delimiter ","
 
CoordSys Earth Projection 8, 116, "m", 147, 0, 0.9996, 500000, 10000000 Bounds (-7745844.29605, 2035.05684549) (8745844.29605, 19997964.9432)
 
Columns 1
 
  Comment Char(250)
 
Data
 
 
Pline 2
 
333788.63 5815865.7
 
338831.12 5815865.7
 
    Pen (1,2,0)
 
</pre>
 
 
<u>'''MID File'''</u><br>
 
The .MID file contains the attribute data associated with the GIS objects. These are stored in a comma separated variable (csv) format with no columns titles (as this is stored in the .MIF file).<br>
 
In the example above, the .MID file contains only one line (as there was only one object in the .MIF file).  The data attributed with this is a "Comment" with a length of up to 250 characters.  The .MID file below is associated with the .MIF file example above.<br>
 
'''Example .MID file:'''<br>
 
<pre>
 
"This line defines the X-axis of the TUFLOW model"
 
</pre>
 
 
A more complex .MID file is presented below, this is from a 2d_zpt layer, where the fields are "N", "M" "Type" and elevation.  This example contains five GIS objects.<br>
 
 
<pre>
 
15,943,"H",115.491
 
15,944,"H",115.379
 
15,944,"V",115.412
 
15,945,"H",115.357
 
15,945,"V",115.341
 
</pre>
 
 
=Basics=
 
=Basics=
 
In this section are some basic MapInfo functions that are regularly used in creating TUFLOW models in MapInfo.
 
In this section are some basic MapInfo functions that are regularly used in creating TUFLOW models in MapInfo.
 
# [[MI_Import_Mif | Import a .MIF/.MID]]
 
# [[MI_Import_Mif | Import a .MIF/.MID]]
 
# [[MI_Export_Mif | Export a .MIF/.MID]]
 
# [[MI_Export_Mif | Export a .MIF/.MID]]
 +
# [[MI_Layer_Control | Layer Control]]
 
# [[MI_Table_Editing | Editing a Table]]
 
# [[MI_Table_Editing | Editing a Table]]
 +
# [[MI_Increment_Table | Incrementing a Table]]
 +
# [[MI_Change_Table_Structure | Change Data Attributes]]
 +
 
=Tips and Tricks=
 
=Tips and Tricks=
 
# [[MI_Pack_Table | Pack Table]]
 
# [[MI_Pack_Table | Pack Table]]
 +
# [[MI_Move_Snapped_Nodes | Move Snapped Nodes]]
 +
# [[MI_Display_Vertices_on_Objects | Display Vertices (Nodes) on Polygons and Lines]]
 +
# [[MI_Setting_Default_Style | Setting Default Style from an Existing Layer]]
 +
# [[MI_Digitising_Common_Boundary | Digitising Along Common Boundary or Object]]
 +
# [[MI_Hotlinking | Hotlinking (Open Data in external program)]]
 +
# [[MI_Setting_Number_of_Undo_Objects | Setting the Number of Undo Objects]]
 +
# [[MI_Label_Format_Number | Labelling Numbers using Fixed Number of Decimal Places]]
 +
# [[MI_Selecting_Subsets | Selecting Subsets]]
 +
# [[MI_Concatenating_Labels | Concatenating Labels]]
 +
# [[MI_Using_String Functions | Using MapInfo String Functions]]
 +
# [[MI_Joining_Tables | Joining Tables (Updating a table with data from a second table)]]
 +
# [[MI_Find_Info_Window | MapInfo Find Information Window]]
 +
# [[MI_Projection_Shortlist | Create a Projection Shortlist for commonly used projections]]
 +
# [[MapInfo_Style_Check_Files | Thematic mapping (Symbology)]]
 +
# [[MI_1D_Result_Viewer| 1D Result Viewer]]
 +
# [[MI_Creating_Google_Earth_KMZ| Creating a Google Earth KMZ file]]
 +
# [[MI_Change_Attribute_Type| Change Attribute Data Type]]
  
=Conclusion=
+
=MapInfo Add-ons=
 +
#[[Encom_Discover_Tips | Encom Discover]]
 +
#[[miTools_Tips | miTools]]
 +
#[[Vertical_Mapper_Tips | Vertical Mapper]]
 +
<br>
 +
{{Tips Navigation
 +
|uplink=[[Main_Page| Back to Main Page]]
 +
}}

Latest revision as of 11:01, 23 January 2023

Introduction

This page contains a brief introduction to the MapInfo software. A number of MapInfo tasks which are repeatedly used in creating a TUFLOW model are described below, each of these has a separate page. If you have any suggestions to be included in these pages, please add them to the discussion page. Please add MapInfo Suggestions Here!.

MapInfo File Formats

A number of files with the same name but different extensions make up a MapInfo table. A brief description of the MapInfo file formats, in particular the MapInfo Interchange (.MIF and .MID) are provided here: MapInfo File Formats.

Basics

In this section are some basic MapInfo functions that are regularly used in creating TUFLOW models in MapInfo.

  1. Import a .MIF/.MID
  2. Export a .MIF/.MID
  3. Layer Control
  4. Editing a Table
  5. Incrementing a Table
  6. Change Data Attributes

Tips and Tricks

  1. Pack Table
  2. Move Snapped Nodes
  3. Display Vertices (Nodes) on Polygons and Lines
  4. Setting Default Style from an Existing Layer
  5. Digitising Along Common Boundary or Object
  6. Hotlinking (Open Data in external program)
  7. Setting the Number of Undo Objects
  8. Labelling Numbers using Fixed Number of Decimal Places
  9. Selecting Subsets
  10. Concatenating Labels
  11. Using MapInfo String Functions
  12. Joining Tables (Updating a table with data from a second table)
  13. MapInfo Find Information Window
  14. Create a Projection Shortlist for commonly used projections
  15. Thematic mapping (Symbology)
  16. 1D Result Viewer
  17. Creating a Google Earth KMZ file
  18. Change Attribute Data Type

MapInfo Add-ons

  1. Encom Discover
  2. miTools
  3. Vertical Mapper


Up
Go-up.png Back to Main Page