Importing Images

Import images into Manifold using the File - Import - Image dialog. In addition, images stored within databases using spatial DBMS technology can be imported by connecting to the database using Database Console, clicking on the image to highlight it and then clicking the Import button in the Database Console toolbar.

 

When using the File - Import - Image dialog the Files of type choice acts as a filter for what is displayed in the browse pane in the Import dialog. Simple file types are imported directly from the Import dialog by choosing the desired type in the Files of type box. More complex imports from data sources such as databases are imported by choosing Data Sources () in the Files of type box and then using the Data Source dialog.

 

Formats used to save drawings vary widely in their capabilities. Some formats save projection information and some, such as .dxf or many types of .shp files, do not. When a drawing format contains projection information, Manifold will automatically use that projection information.

 

Formats that do not preserve projection information (the majority) will require manual intervention to place and scale the image correctly within a geographic context. Most often the image will be placed in a geographic context through georegistration .

 

Note: USGS DOQ files as provided on CDs are normally not georegistered. Most often these are .jpg format files created from the original DOQ format files and provided on CD without the .jpg extension.

 

See the Projections and Images topic for an introduction to projection issues involving images.

 

Importing Satellite Image Formats

 

Many formats used for satellite images are located under File - Import - Surface because such formats are often used to present non-visual data as raster data sets. See the Importing Surfaces topic.

 

For example, HDF, HDF EOS and HDF SeaWiFS formats are found in the File - Import - Surface dialogs. If you don't see a desired format listed in the image importers, check under surfaces.

 

When importing HDF files, use HDF SeaWiFS for SeaWiFS data in .hdf format and use HDF EOS for Earth Observation Satellite data in .hdf format. While the ordinary HDF converter will also import some data from HDF SeaWiFS files it will ignore multidimensional data chunks (called Scientific Data Sets or SDSs) that are used to contain pixels. Note also there is a CEOS SeaWiFS importer for data in that form.

 

Some file types, such as ENVI, ERDAS and ERS (ECW) files, can contain either surface or image data, depending on how the data is intended to be interpreted. The ENVI, ERDAS and ERS (ECW) importers occur both in the File - Import - Surface and File - Import - Image menus and have a subtype option to allow specification of image or surface upon import.

 

Importing Georegistered Images

 

The preferred format for importing georegistered images is GeoTIFF format. This standard is supported by over 150 companies and provides for reliable import of images with correct georegistration. Some other formats, such as ECW can also save projection information.

 

Use of World Files

 

An obsolete way of providing partial projection information for images is the use of "world" files. World files do not contain the name of the projection used. They simply provide certain local projection values and leave it up to the user to manually specify the actual projection in use. A world file is a small text file that accompanies the image file. For example, an image called Europe.jpg that is an ordinary graphics file in JPG format might be accompanied by a small file called Europe.jpgw, which is the world file. The Europe.jpgw file is an ordinary ASCII text file containing a few lines of text. The extension ".jpgw" is used to let GIS software know that it is a world file.

 

If we opened up the Europe.jpgw world files in Notepad we would see something like the following:

 

4.000000

0.000000

0.000000

-4.000000

574400.000000

4145600.000000

 

The numbers provide information on local offset and local scale for whatever projection is in use. However, the world file does not actually say what projection has been used. When publishing images accompanied by world files the assumption is that the user knows what projection is supposed to be used and is capable of manually specifying it in the GIS software being used.

 

This is a really stupid system, of course, since the moment images are distributed away from their author and other people who know the secret of what projection was used there is nothing in the world file to tell the rest of normal humanity what the author intended. If you are using images accompanied by world files, it is critically important to search carefully through the website from which you downloaded the images to find any information that describes what projection was used. If you cannot find a file or web page that specifies the actual projection that was used the world file alone will not help you georegister the image.

 

Once you know the projection you can georegister images accompanied by world files by adding the local projection parameters they specify to the projection in use. Manifold makes this easier by automatically reading the local projection information from a world file that accompanies an image file. When loading images from TIF, BMP, GIF, JPG, PCX, PNG and TGA formats, Manifold scans the directory to see if there is a similarly named file having one of the two common world file extensions. If so, Manifold opens the world file and loads the local projection information from the world file.

 

For TIF, BMP, GIF, JPG, PCX, PNG and TGA formats the world file extensions are usually in the form .tifw, .bmpw, .gifw, .jpgw, .pcxw, .pngw and .tgaw respectively; however, some world files may have extensions in the form .tfw, .bpw, .gfw, .jgw, .pxw, .pgw and .taw respectively. Manifold will automatically read world files having either the ".tifw" or ".tfw" style of filename extension.

 

Once the image has been imported, it must be opened and the Edit - Assign Projection dialog must be used to specify the correct projection. See the Download and Mosaic Terraserver Images topic for an example of this process using world files and images.

 

Typical Image Formats

 

Manifold can import from many different image formats. Some are highly specialized formats that provide much data organized in a complex way. Precise description of certain specialty formats is beyond the scope of this document. In such cases, please refer to the originating agency or company for detailed documentation on their format.

 

Interested in support for a new format not listed below? See the Contacting manifold.net topic for information on suggesting a new format.

 

Searching Internet with a good search engine will find numerous references to format documentation as well. For example, searching for "PNG" and "Portable Network Graphics format" on Google turns up the PNG home page as the first hit.

 

ADRG

NIMA Arc Digitized Raster Graphics.

BMP

Microsoft .bmp graphics format. Imported as a partially georegistered image if accompanied with a .bpw or .bmpw "world" file. Manifold can import .bmp images that are RLE compressed.

CADRG / CIB

NIMA Compressed Arc Digitized Raster Graphics (CADRG) and Controlled Image Base (CIB) images. Get free downloads of Operational Navigation Charts (ONC), Tactical Pilotage Charts (TPC) and Joint Operations Graphic - Air (JOG-A). The importer can import individual tiles as well as a composite image defined by an a.toc file. Since composite images can be huge, importing individual tiles is a great space and time saver when the entire image is not required.

DNG

An Adobe variation of TIFF used in digital photography.

DOQ

USGS Digital Ortho Quad images. True "DOQ" files occur with a .doq or .coq extension. "DOQ" files are often provided in the form of .jpg compressed jpeg format images. Use the .jpg image importer for those

ECW / JPEG2000

Compressed images in either ECW or JPEG2000 compressed format. Any size ECW or JPEG2000 image may be imported.

EMF

Microsoft Windows Extended Meta File (.emf) and Windows Meta File (.wmf) format. Images imported from will have their dimensions adjusted to not exceed 4096 pixels in X or Y dimension. This limitation avoids possible problems in the Microsoft GDI driver. Images imported will use white background color.

ENVI IMG

Image/surface format from ENVI, "The Environment for Visualizing Images". Import uncompressed ENVI .img files. (Manifold does not support compressed ENVI image import.) In addition to the usual image types, the importer will import 12 bit images from .img files.

ERDAS GIS

ERDAS files in .gis or .lan formats. Imported using the File - Import - Surface dialog.

ERDAS IMG

ERDAS files in .img format. Works for IMAGINE format .img files.

ERS

Earth Resources Mapping (ERMapper) images or surfaces in .ers files. .ers files saved with projection information will be correctly georegistered on import if the projection used is one supported by Manifold. Since this format can be used for either images or surfaces, when importing choose the subtype (either surface or image) desired once the importer launches.

GIF

Common .gif graphics files. Imported as a partially georegistered image if accompanied with a .gfw or .gifw "world" file.

HDF

A graphics format often used in remote sensing.

JPEG

Standard .jpg and .jpeg format, all types. Imported as a partially georegistered image if accompanied with a .jgw or .jpgw "world" file. Imports EXIF tags as well.

NITF

National Imagery Transmission Format - a format used mostly by military users in the US and UK for images. Also used for some satellite images generated by high-resolution commercial satellites. Often has .ntf extension. Any extended data (such as text) in an NITF file will be imported into a comments component.

PCX

PC Paintbrush format by ZSoft. Imported as a partially georegistered image if accompanied with a .pxw or .pcxw "world" file.

PNG

Portable Network Graphics (PNG) format, pronounced "ping." Imported as a partially georegistered image if accompanied with a .pgw or .pngw "world" file. Billed on the current PNG home page as "A Turbo-Studly Image Format with Lossless Compression." The original acronym is said to mean "PNG's Not GIF". This is a superb format that can be used to replace GIF everywhere (even on web pages) with better compression and higher quality images.

PPM

Portable PixMap (PPM) format. Intended as a "lowest common denominator" color image file format. Used in UNIX systems.

SGI

Silicon Graphics workstation graphics format.

SID

"MrSID" images using LizardTech proprietary format. Requires prior installation of the free LizardTech MrSidDecode.exe utility. See the Import Image - SID, MrSID help topic for details.

SPOT

SPOT satellite images, often provided in 10-meter resolution.

SRTM

NASA Shuttle Radar Topography Mission data using files in one or more of the following file formats:

.hgt - Height. Files import as Int16 surfaces.

.err - Error data. Files import as Int16 surfaces named "…Error".

.inc - Incidence angle data. Files import as Int16 surfaces named "…Incidence".

.mag - Image. Files import as grayscale images named "…Image".

.pol - Polarization angle. Files import as palette images named "…Polarization".

SUN

Sun workstation graphics format.

TGA

AT&T Truevision Targa format. Imported as a partially georegistered image if accompanied with a .taw or .tgaw "world" file.

TIFF

Tagged image file format, using .tif and .tiff extensions. Manifold's .tif importer reads all types of .tif files including GeoTIFF georegistered images and .tif images partially georegistered using a .tfw or .tifw "world" file.

(Various DBMS formats)

Manifold can import images from information stored in tables or created by queries. Imported using the Data Source dialog. See the discussion below.

DB2 Data Sources

Connect to IBM DB2 equipped with the DB2 Spatial Extender using IBM's native spatial connection technology. A spatial DBMS connection accessed through the Data Source dialog. This option requires Enterprise Edition or above.

Oracle Data Sources

Connect to an Oracle data sources using the Oracle Call Interface (OCI), the native Oracle interface for exchanging data. Exchanging images with Oracle data sources via OCI automatically maps images into Oracle GeoRaster form (if GeoRasters are supported by the Oracle product in use). A spatial DBMS connection accessed through the Data Source dialog. This option requires Enterprise Edition or above.

PostgreSQL Data Sources

Connect to PostgreSQL equipped with the PostGIS spatial extender using native PostgreSQL connection technology. Connections made using this data source will have any password required masked so that later usage will not inadvertently expose the password. A spatial DBMS connection accessed through the Data Source dialog. This option requires Enterprise Edition or above.

SQL Server Data Sources

Connect to Microsoft SQL Server 2008 spatial DBMS facilities using native SQL Server 2008 spatial connection technology. A spatial DBMS connection accessed through the Data Source dialog. This option requires Enterprise Edition or above.

Important:

Using a vendor's native spatial DBMS connection technology (like those above) provides better performance and allows using features, such as built-in spatial DBMS facilities, not exposed through generic database interfaces such as ODBC, OLE DB and ADO .NET. At the present writing, only Oracle Spatial provides a built-in GeoRaster type. Other spatial DBMS products are supported using Manifold-managed image and surface storage.

Note: because the Database Console provides a more convenient user interface for browsing databases, we will almost always use the Database Console to import or link components from a database instead of using the File - Import or File - Link menu commands.

 

XML Files Created upon Export and Used on Import

 

Not all formats to which Manifold can export have the ability to correctly save projection information. As a safety measure to ensure that projection information is never lost, Manifold always writes an accompanying .xml file when exporting drawings, images, labels, maps or surface components to a file. The accompanying .xml file contains coordinate system information and some other metadata. The XML file is created for all formats, even those that correctly save coordinate system information.

 

When Manifold imports drawings, images, labels or surfaces, the system will check for an accompanying .xml file that might have been written by Manifold. If such an .xml file exists, Manifold will read it and use the information it contains to load a correct coordinate system.

 

See the XML Accessory File Format topic for details on the internal organization of this file.

 

Imported or Linked Images from Tables or Queries

 

Manifold can import images or link images from information stored in tables or provided by queries by using the Data Source dialog. The tables and queries used to create linked images may be inside the Manifold project or they may be in external databases.

 

Linked images may also be created in a two step process, where the virtual table for an existing image is used in a query to manipulate that image or to fetch part of the image based upon desired criteria. A linked image can then be created from that query. This technique is often used within Manifold projects that will be used in an IMS website.

 

Linked images may also be created from tables or queries stored in external databases. For example, we could use a query to select all columns for all pixels in an image's virtual table and then export that query as a table into an .mdb file or to some other database storage.

 

When an image is linked from a table or query, each record in the table or query produces a pixel. The coordinates of the pixel are taken from the X and Y columns (cast to integer) specified in the Link dialog. The color of the pixel is taken from either the Color column or the channel columns.

 

If you have Manifold System Enterprise Edition or greater you can also import images or link images from Oracle data sources that use Oracle's Spatial or Locator technologies. Importing images from Oracle data sources is virtually identical to linking them from Oracle data sources. See the Linked Images from Oracle Servers topic.

 

Importing or linking images from databases is normally accomplished using the Database Console to connect to the DBMS, and then the Import or Link Database Console toolbar button is used to import or link the desired image from the database.

 

Importing Images from Image Servers

 

In addition to the straight File - Import - Image importers within Manifold we can also import images by first creating a linked image that is dynamically fetched from an image server and then unlinking or downloading that linked image to create a local image. This allows us to import images covering a desired area from image servers. See the Linked Images topic to learn more about linked images and image servers.

 

Important Note when Using 64-bit Manifold Editions

 

Due to a lack of required Microsoft facilities in 64-bit Windows systems, Manifold in 64-bit mode cannot export, import, export or link to DB, HTML, MDB, XLS or WKx format files. This includes no access to the MDB parts of Manifold MFD and MapInfo TAB imports. The workaround for importing or exporting such files is to launch Manifold in 32-bit mode by using the Manifold System (32-bit) shortcut, perform the export from or import into a .map project file and then re-launch Manifold in 64-bit mode using the Manifold System (64-bit) shortcut. Linking is more complex: the data must be in some format usable in 64-bit mode within 64-bit Windows systems, such as a SQL Server database. Alternatively, the data can be kept within a Manifold .map project file and linked using the Manifold ODBC driver.

 

See Also

 

Projections and Images

Images and subsequent topics.

Georegistration and subsequent topics.

 

Historical Notes

 

Some graphics formats popular with the graphics communities arise from formerly elite machines used before PCs redefined the meaning of "elite." In case the companies involved are gone or forgotten by the time this is read, a few notes for younger readers:

 

SGI was an elite graphics company in Mountain View that ended up as a sort-of UNIX workstation vendor famous for three things: 1) Inventing OpenGL, 2) Having a very cool building across the street from the Century 16 cineplex in Mountain View that now, appropriately enough, serves as a museum of computer technology, and 3) Last, but not least, failing to keep up with the price/performance competition of Wintel clones running cool new graphics engines from companies like NVIDIA.

 

SUN once was an elite UNIX workstation company in Palo Alto before clones banished it to a netherworld existence as a server appliance company. Sun was yet another company that started with a plug-in graphics card, a Multibus card for the "Stanford University Network" (SUN) machines then in use at Stanford. They went on to bigger and better things, including a respectable workstation and server business. Unfortunately, they were run over by the steamroller of high power / low cost clones running ever more applications-rich Windows operating systems, and "workstation" became just another synonym for "PC."

 

AT&T at one point was the fearsome owner of all telecommunications mojo in the US. They also (we're not making this up) built a "high performance" graphics card called the Targa that plugged into PCs. The AT&T brand lives on as a new identity for one of the "baby Bells" that ended up consuming the parent and is now busy gobbling up cell phone companies.