GeoTIFF (.tif, .tiff)

  • Import fully supports the GeoTIFF file formats.

BackgroundBackground

    GIS extension of the TIFF format.
    Used for archiving and exchanging aerial photography or terrain data.
    Binary format.
    Contains rasters or digital elevation models (DEM).
    Digital elevation models are stored as a raster of elevation values.

Import and ExportImport and Export

  • Import["file","GeoTIFF"] imports a GeoTIFF file and returns it as an image.
  • Import["file",{"GeoTIFF","elem"]} imports the specified element from a GeoTIFF file.
  • Import["file",{"GeoTIFF","elem","suba","subb",}] imports a subelement.
  • Import["file",{"GeoTIFF",{"elem1","elem2",}}] imports multiple elements.
  • See the reference pages for full general information on Import.

ElementsElements

  • General Import elements:
  • "Elements"list of elements and options available in this file
    "Rules"full list of rules for each element and option
    "Options"list of rules for options, properties, and settings
  • Data representation elements:
  • "Graphics"image represented as a TemplateBox[{Graphics, paclet:ref/Graphics}, RefLink, BaseStyle -> InlineFormula] object
    "Data"array of color or elevation values
    "Image"image object
  • Import by default uses the element for the GeoTIFF format.
  • Metadata elements:
  • "ColorSpace"color encoding used in the file
    "DataFormat"type used to represent elevation or color values
    "ElevationRange"range of elevation data in meters
    "RasterSize"size of the terrain grid
    "SpatialRange"range of geographic coordinates, given in coordinate system units
    "SpatialResolution"grid spacing in coordinate system units
  • Import["file.dem","ElevationRange"] gives the range of elevation values in units of meters.
  • Import["file.dem","SpatialRange"] gives the bounding coordinates of the geographic region covered by the file as an expression of the form .
  • Elements representing the geodetic datum and reference ellipsoid used in the file:
  • "CoordinateSystem"name of the coordinate system used in the file
    "Datum"geodetic datum
    "SemimajorAxis"semimajor axis of the reference ellipsoid in meters
    "SemiminorAxis"semiminor axis of the reference ellipsoid in meters
    "InverseFlattening"inverse flattening of the ellipsoid
    "LinearUnits"coordinate system units
  • Elements specifying the cartographic projection and its parameters:
  • "Projection"projection name and parameters
    "Centering"latitude and longitude defining the origin of the projection
    "StandardParallels"standard parallels
    "CentralScaleFactor"scale factor at the central meridian or center of projection
    "GridOrigin"grid coordinates of the central parallel and meridian
    "ProjectionName"Wolfram Language standard name of the projection used
    "ReferenceModel"what reference sphere or ellipsoid to use
  • Accessing low-level meta-information from the file:
  • "CoordinateSystemInformation"raw parameters of the coordinate system as stored in the file
  • See the reference page for GeoProjectionData for full information on cartographic projections.

OptionsOptions

  • General rendering options:
  • BackgroundNonebackground color
    DataRangeAutomaticthe range of latitude and longitude values to assume for the data
    ImageSizeAutomaticoverall size of the image
  • DEM rendering options:
  • BoxRatiosAutomaticeffective 3D bounding box ratios
    ColorFunction"Topographic"how to determine the color of surfaces
    DataReversedFalsewhether to reverse the order of rows
    LightingAngleAutomaticthe effective angle from which simulated illumination is taken to come
  • Import options:
  • "DefaultElevation"Automaticelevation setting for areas not covered by the file
    "DownsamplingFactor"1integer factor by which the amount of DEM data in each horizontal dimension is reduced on import

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Import sample GeoTIFF file:

In[1]:=
Click for copyable input
Out[1]=

Get the names of the Import elements available in this file:

In[2]:=
Click for copyable input
Out[2]=

Read information about the cartographic projection used in the file:

In[3]:=
Click for copyable input
Out[3]=
Introduced in 2008
(7.0)
| Updated in 2010
(8.0)