GMS:Importing/Exporting GIS Grids

From XMS Wiki
Revision as of 21:25, 22 January 2016 by Jcreer (talk | contribs) (→‎Importing)
Jump to navigationJump to search

GMS includes an option to import and export grid files from/to either the GRASS or ARC/INFO (ArcView) geographic information systems formats.

Importing

Grids are imported using the Open command in the File menu.

With GRASS and ARC/INFO grid files, the grid and the attributes are saved to a single file. When a grid file is imported, GMS constructs the grid, and then reads in the attribute matrix as a dataset.

When a grid in GRASS or ARC/INFO contains multiple attributes (datasets), each attribute is written to a separate grid file. In such cases, it is possible to read in one instance of the grid file to create a grid with a single dataset, and then read in the other grids as extra datasets on the first grid. This can be accomplished as follows:

  1. Select the Open command from the File menu.
  2. Choose either the GRASS or ARC/INFO file filter.
  3. Select the grid file.
  4. Select the OK button.

At this point, the first grid file is imported resulting in a grid with a single dataset. For the additional datasets, steps 1-5 are repeated but now GMS will detect that there is already a 2D grid in memory that matches the grid being imported and will ask whether wanting to replace the existing grid, or add the new grid as a dataset of the existing grid.

Exporting

Grids can be exported from GMS in the GRASS or ARC/INFO format by right-clicking on the grid in the Project Explorer and selecting the Export menu command. Only grids with equal row heights and equal column widths can be exported. When a grid is exported, the grid and the active dataset are written to the GIS file. If multiple datasets are associated with the grid, each dataset should be made the active dataset and the grid should be exported repeatedly so that each dataset is written to a separate grid file.

See also