Main window |
File menu | |
Import |
||
Import Map |
Import General Raster |
Import Table Wizard |
Import a map in the format of another software package into ILWIS 3 by using ILWIS Map Import. If an attribute table is included in the file to be imported, then the attribute table will be imported as well.
When you convert files, it is assumed that you already understand some of the main ILWIS concepts. It is recommended that you have read at least the following topics: Basic concepts : before creating ILWIS maps and tables and Basic concepts : working with domains.
The Import dialog box can be used for various types of import:
The type of import that will be used depends on the menu command you selected and on the Import Format you select in the Import dialog box. You can read Help according to the type of Import by clicking the links in the header of this topic.
Below, the formats are described that are supported by ILWIS Map Import and sometimes an explanation of the import behaviour is given.
Note:
ILWIS Map Import also supports the ASTER level 1A and level 1B EOS-HDF format. Importing ASTER images is however described in a separate topic. See Import ASTER for more information.
Tips:
Import dialog box options:
Select a file: |
Select the file that you wish to import. |
Directories: |
If necessary, change the current directory. |
Drives: |
If necessary, change the current drive. |
Import format: |
Select the format of the file which you wish to import. When an import format is selected, the input files that have the correct extension in the current directory will be shown. Tip:
|
Output file name: |
Type a name for the output ILWIS object(s). Do not specify an extension for the ILWIS object(s); ILWIS will add its own extensions. |
Height offset: |
Only for GARtrip import (see below). |
Import raster maps of a number of different formats (indicated by the name of the option) to the ILWIS raster format. For each map, an .MPR and an .MP# file are created. Furthermore, a domain, a representation, a georeference, a coordinate system and an attribute table may be created.
Raster import formats:
Arc/Info ASCII: |
Imports an Arc/Info non-compressed ASCII file; the input file is expected to have extension .ASC or .NAS. |
Arc/Info .E00: |
Imports an Arc/Info .E00 file. For more information, refer to the Vector import below. Tip: To import Arc/Info Grid files, export the Arc/Info files to .E00 or to non-compressed ASCII. |
Compuserve-GIF: |
|
Imports a GIF image. First, it is checked whether the file contains the GIF signature. Then, it is checked whether a color lookup table is available. When a color lookup table is found, the raster map will use domain Picture, otherwise, the map will use domain Image. After that the (LZW compressed) raster data is retrieved. Tip: When the colors in a GIF file represent classes, and when you obtained a raster map with a Picture domain from import, you can easily change the Picture domain to a Class domain in the properties of the raster map. After that you can edit the class names in the Domain Class/ID editor. For more information, see How to change the domain of a map (section on From a Picture domain to a Class domain). |
|
Erdas-GIS: |
Imports an Erdas .GIS file (thematic map). You can import any maps stored as 4, 8 or 16 bits per pixel. Coordinate information is retrieved from the Erdas .GIS file. Note: Information on class names and representation colors is retrieved from the trailer file (.TRL), if available. Both pre-version 7.4 and Erdas version 7.4 files can be imported. |
Erdas-LAN: |
Imports an Erdas .LAN file (Remote Sensing Images). You can import any map stored as 4, 8 or 16 bits per pixel. Coordinate information is retrieved from the Erdas .LAN file. Both pre-version 7.4 and Erdas version 7.4 files can be imported. |
IDA image: |
Imports an IDA (Image Display and Analysis) image (.IMG). |
Idrisi map: |
Imports an Idrisi raster image. Select the .DOC file which accompanies the .IMG file. All required information will be extracted from the .DOC file. When a color file (.PAL) is found, this will be used to create a representation. You can import Idrisi byte maps, integer maps and real maps. When the Idrisi file contains classes, ILWIS will create a class map; otherwise an Image (for Idrisi byte maps) or a Value map (for Idrisi integer and real maps) will be created. |
ILWIS ASCII raster: |
|
Imports an ILWIS 1.x ASCII raster file (.ASC). |
|
Paintbrush-PCX: |
|
Imports a Paintbrush file (.PCX); the resulting map will not have coordinates. |
|
TIFF: |
Imports a Tag Image File Format file (.TIF). ILWIS can import:
Tip: When the colors in a TIFF file represent classes, and when you obtained a raster map with a Picture domain from import, you can easily change the Picture domain to a Class domain in the properties dialog box of the raster map. After that you can edit the class names in the Domain Class/ID editor. For more information, see How to change the domain of a map (section on From a Picture domain to a Class domain). ILWIS can import raster data from the TIFF file that is uncompressed, LZW-compressed (for 8 bits per pixel or more), or Packbits compressed (run-length encoded). Furthermore, ILWIS can import GeoTiff information to create a georeference corners (1 or 2 tiepoints) or a georeference tiepoints (3 or more tiepoints). An empty coordinate system is created which contains textual information in its description: you have to edit the coordinate system yourself and specify projection parameters and datum, etc. as found in the description. After it is checked whether the input file is a TIFF file, the TIFF file is scanned to find:
Finally, the raster data is imported and decompressed if necessary. |
Windows bitmap: |
|
Imports a Microsoft Windows bitmap (.BMP). You can import any bitmap stored as 1, 4, 8, 16 or 24 bits per pixel. The resulting raster map will not have coordinates. |
Note:
ILWIS Map Import also supports the ASTER level 1A and level 1B HDF format. Importing ASTER images is however described in a separate topic. See Import ASTER for more information.
Tips:
Vector Import imports vector maps in several formats to vector maps in ILWIS format.
When the input is a polygon map, the following files are created:
.MPA: |
the object definition file for the polygon map; contains all properties. This file will be visible in the Catalog. |
.MPAP# |
contains coordinates of the bounding box around each polygon, polygon areas, length of polygon boundaries, polygon codes and references to the topology of the polygons. |
.MPAT# |
contains coordinates of polygon boundaries, coordinates of nodes, and topology information of the polygon map. |
When importing a segment map, the following files are created:
.MPS: |
the object definition file for the segment map; contains all properties. This file will be visible in the Catalog. |
.MPS# |
contains coordinates of intermediate points, coordinates of nodes and segment codes. |
When the input is a point map, the following files are created:
.MPP: |
the object definition file for the point map; contains all properties. This file will be visible in the Catalog. |
.PT# |
contains all point coordinates and the codes of the points. |
Furthermore, a domain, a representation, a coordinate system and an attribute table may be created.
Import vector formats:
Arc/Info .E00: |
Imports an Arc/Info file in interchange format (.E00) into an ILWIS raster, a polygon map, a segment map and/or a point map. When attributes are available, also one or more ILWIS tables will be created. When the .E00 file contains a table only, this table is imported with domain None. The E00 import can handle compressed, partially compressed, and uncompressed files. The conversion first scans the .E00 file to gather information, such as:
Next, the E00 file is imported, taking into account a number of E00 tags. When the Arc/Info export split the data into several consecutive .E00 files (same file name, extensions .E00, E01, E02, etc.), ILWIS reads all data until the EOF tag is encountered. Output: When the .E00 file contains:
The output map(s) usually obtain the same name as the input .E00 file. The same is also true for any class or ID domain; however when a domain with that name already exists, the domain name is slightly adjusted to be unique. Limitations:
|
Arc/Info .LIN, .PTS ASCII: |
|
Imports files that were created with the Arc/Info ungenerate command (extension .LIN/.PTS). A .LIN file will be converted to a segment map; a .PTS file to a point map. The extension .GEN (generate) is also used by some systems. LIN file: .LIN files are considered to contain segments (arcs in Arc/Info terminology); the output map will be a segment map. The segment map will obtain an ID domain and an attribute table will be linked to the map. The attribute table has a single column which contains the original segment codes. The column which contains the Arc/Info IDs is usually called mapname_ID. To obtain a segment map with these original codes, you will have to use the Attribute map of segment map operation after import. The ILWIS map usually has the same name as the input file. The same is also true for its domain, unless there already is a domain carrying the envisioned name, in which case the domain name is slightly adjusted to be unique. The attribute table will get a name based on the map name, making sure the table name is unique. The name of the attribute column will be mapname_ID. PTS file: .PTS files are considered to contain points; the output map will be a point map. The output point map will obtain an ID domain and an attribute table will be linked to the map. The attribute table has a single column which contains the original point codes. The column which contains the Arc/Info IDs is usually called mapname_ID. To obtain a point map with these original codes, you will have to use the Attribute map of point map operation after import. The ILWIS map usually has the same name as the input file. The same is also true for its domain, unless there already is a domain carrying the envisioned name, in which case the domain name is slightly adjusted to be unique. The attribute table will get a name based on the map name, making sure the table name is unique. The name of the attribute column will be PtsValue. Tip: To reconstruct a polygon map, see the remarks under the E00 import. |
|
Arc/View Shape files .SHP: |
|
Imports Arc/View Shape files to an ILWIS polygon and/or segment and/or point map. Furthermore, also possible attribute data will be imported into attribute tables. ILWIS expects to find three files to perform the conversion: filename.SHP, filename.SHX and filename.DBF files, such as for instance landuse.shp, landuse.shx and landuse.dbf. Newly created ILWIS attribute tables will be automatically linked to the maps to which they refer. New Shape types like Measure types (M-types) and Elevation types (Z-types) are recognized but the extra information in these file types is skipped. |
|
Atlas .BNA: |
Imports a file in Atlas/Map Edit format (.BNA). Depending on the contents of the BNA file, you can obtain a polygon map and/or a segment map and/or a point map. The output ILWIS map(s) and attribute table(s) will use an internally defined UniqueID domain; all columns in the attribute table will use the system String domain.
|
AutoCAD .DXF: |
Imports vector files in AutoCAD Drawing eXchange Files (.DXF). Depending on the contents of the DXF file, you can obtain a polygon map and/or a segment map and/or a point map. First, the DXF file is scanned to find for instance information on:
Then, the domain is determined:
Next, the DXF file is imported. The following DXF elements are recognized and imported:
The codes of these DXF elements are used for the class names, values, etc. of the imported segments and points. In case of LWPOLYLINE and POLYLINE: the class name, value, etc. is taken to be the code of the LWPOLYLINE or POLYLINE, not of any VERTEX within. When several LINE items follow each other, Import will check whether they are connecting. If this is the case, the lines will be combined into one single segment. Other elements (such as BLOCKS sections, INSERT entities and others) are ignored and skipped. Tip: To import BLOCK sections, first Explode all the blocks to layer 0 in AutoCad. |
GARtrip Text .TXT: |
|
Imports a GARtrip file (.TXT) with GPS data. It is expected that the input file is created by using the Export option in GARtrip. GARtrip (http://www.gartrip.de) is PC shareware software for Garmin and Magellan GPS receivers.
The output ILWIS point map and its attribute table will use an internally defined UniqueID domain; columns in the attribute table will either use system domain String or system domain Value. An output ILWIS segment map will use a new ID domain. |
|
ILWIS ASCII segments .SMT: |
|
Imports an ILWIS 1.x ASCII file (.SMT) into an ILWIS segment map. If the first line is not 'Segments', an error message will be displayed. |
|
SMT file structure: |
|
1st line: Segments |
|
Defines a segment map. |
|
2nd line: min X min Y |
|
Defines the minimum coordinate boundaries of the map. |
|
3rd line: max X max Y |
|
Defines the maximum coordinate boundaries of the map. |
|
4th line: the class name, ID, or value of the first segment. |
|
5th line and following: |
|
Each line will contain an XY-coordinate of the segment until all coordinates of the segment are listed. |
|
The next line states the class name, ID, or value of the second segment. And again, from the next line onward, all coordinates of the second segment will be listed. Example of an .SMT segment file. To import an .SMT file which contains polygons, use Convert1.4 to import the file into ILWIS 1.4, then use Import to import the results into ILWIS 3. |
|
Infocam Sequential .SEQ: |
|
Imports an Infocam sequential file (.SEQ) to a point map and/or a segment map and/or a polygon map. The different types of vector maps that may be present in the .SEQ file are imported as different ILWIS maps. For each map, an attribute table is created in which information on the points, segments and polygons is stored. An Infocam object may have different attributes per element, thus the attribute table may be sparsely filled. The ILWIS maps will always obtain an ID domain; the IDs in the domain will be according to code information. Limitations: Double polygon boundaries are not removed thus topology may not be correct. Furthermore, Spline or Arc information in a .SEQ file is not translated. |
Tips:
Note: Polygon data are not checked when read. If polygons partly or entirely overlap, problems may occur. Therefore, check your data carefully before conversion!
See also:
Basic concepts : working with domains
How to change the domain of a map
Appendices : ILWIS script language (syntax), section Import expressions
Appendices ILWIS script language (syntax), section ILWIS Map Import