Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Determine the attribute values of grid cells
Determine the attribute values of grid cells
Mapinfo functions: how to create new tables, map editing, attribute database management, attribute query, file format conversion, map decoration, etc. Advanced applications of MAPINFO include SQL query, map compression and map cutting. The basic functions of MapInfo are:

MapInfo is a powerful and simple desktop map information system, which has basic operations such as graphic input and editing, graphic query and display, database operation, spatial analysis and graphic output. The system adopts menu-driven graphical user interface, and provides users with five toolbars (main toolbar, drawing toolbar, common toolbar, ODBC toolbar and MapBasic toolbar). Users enter the dialogue state through commands on the menu bar or ammonium buttons on the toolbar. The view table windows provided by the system include: map window, browsing window, statistics window and layout window, which help to output the design, and the output results can be easily output to a printer or plotter.

I. Graphic input and editing

The input of graphics is to digitize or convert all kinds of map information data to get the basic graphic data organization table of MapInfo. With different data sources, you can input them through handheld digitizers, scanners or other standard data formats. Such as AutoCAD (. DXF and. DWG)、Intergraph(。 DGN), ArcView shape data of ESRI, etc.

Using the drawing toolbar provided by MapInfo, the key points of digital input and map editing are as follows:

1. Set the coordinate system, projection, map direction and unit correctly.

MapInfo supports a variety of map projection methods. When users digitize a map, they must first set the coordinate system and projection used by the map. Because most maps indicate these two items in the legend, users can choose the coordinate system provided by MapInfo (stored in the text file MapInfo). PRJ) and modify MAPINFOW. PRJ gets a new coordinate system. To display raster map in MapInfo, you must register the image and set the projection for it. Because the process of projecting the map is usually not completely reversible, the copy should be backed up; Secondly, according to the selected coordinate system, set the map units used, for example, the map coordinates will be displayed in degrees in the latitude and longitude projection.

2. Set control point coordinates

In order to correctly explain the position of the digitizer moving head when tracking the map, it is necessary to set the coordinate parameters of the control points on the map. Select at least 4 control points. The more control points, the more accurate the coordinate transformation from digitizer to map. The selected control points have good discreteness, such as not being in a straight line. You can add, modify and delete control points in the system and save them in the workspace.

3. Drawing and editing tools

MapInfo has a complete set of drawing and editing tools, as shown in Figure 8-2. When editing a layer, you should first choose the command Layer Control from the map menu or use the tool button Layer Control to make the layer editable.

4. Edit the map by shaping geographical elements.

The map editing method can reshape areas, polylines, lines, arcs and points on the map layer. You can do this by moving, adding and deleting nodes that define line segments, or by copying and pasting selected nodes to create new points, lines and polylines. In the editing process, you can also use the function of converting area and polyline to view the nodes of area objects, or use auxiliary editing functions such as merging, dividing, erasing and overlapping nodes.

5. Use the automatic map tracking function.

Using the function of automatic tracking objects, the repeated boundaries can be automatically tracked to avoid repeated digitization. Turn on alignment (with the S key) to activate automatic tracking. Automatic tracking is not suitable for tracking rectangles, arcs, ellipses and other graphics made by drawing tools.

Second, MapInfo data table management

In MapInfo, a database is called a table, which can be used to create, store, query and display attribute data. One kind is data table, which can be divided into data table containing graphic (map) objects and data table without graphic objects, such as spreadsheet or external data table; The other table is a raster table, which is an image that can only be displayed in the map window, and there is no table structure such as records, fields and indexes of the data table. Here we only discuss the operation of data table.

1. Transmission of external data

MapInfo can call dBASE database, MS Excel spreadsheet, MS Access database, Lotus 1-2-3 and ASCll files. Select the file type in the Open Table window of File-> Open on the menu. The external table that enters the system must be saved as a MapInfo table with the Save As command under the File menu before editing.

2. Data table maintenance

In MapInfo, you can directly change the structure of the data table, such as adding or deleting fields; Change the order, name, type, width or index of fields. Set or determine the projection of the table from the dialog box; You can also delete tables, rename tables, and compact table structures to reduce disk space.

3. Operation of data table

MapInfo's table operation commands (except query) are all concentrated in the menu item "Table", mainly including:

(1) Create a new table, and add, modify, display and delete data records;

(2) Update column command is used to update the table quickly and intuitively. Select an object first, and then select table-> update column on the menu to fill in the update column dialog box.

(MapInfo provides many powerful aggregation functions for deriving new information. Aggregation functions include:

Average calculates the average value;

Count calculates the number of records in a group;

Minimum finds the minimum value of all records in the group;

Maximum Find the maximum value of all records in a group;

Sum calculates the sum of all record values in a group;

Weighted Av