Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

LineTerra

Guides

  • LineTerra

Symbols

  • ImportLAS
  • ImportLAZ
  • LAZtoLAS
  • LineTerra
  • LineTerraNewProject
  • LT3DView
  • LTAddStratum
  • LTAlignmentGraphics
  • LTAllRoadIntersections
  • LTArcGeometry
  • LTBakePolygon
  • LTBakeRoad
  • LTBezierGeometry
  • LTChainages
  • LTCombinedView
  • LTCombinedViewXS
  • LTConvertToGrid
  • LTCoordsToClipboard
  • LTCorridorGeographicPlot
  • LTCorridorLongSection
  • LTCorridorMultiSection
  • LTCorridorPanel
  • LTCorridorSection
  • LTCorridorView
  • LTCorridorWarpedBasemap
  • LTDesignZCurved
  • LTDesignZ
  • LTEPSGToZone
  • LTExpandAlignment
  • LTExportAlignment
  • LTExportCoords
  • LTExportEarthwork
  • LTExportPlanDXF
  • LTExportPlan
  • LTExportProfile
  • LTExportSectionsDXF
  • LTExportSectionsNB
  • LTExportSections
  • LTFindRoadIntersection
  • LTGeoElevContours
  • LTGeoGraphicsOverlay
  • LTGeoMapWithContours
  • LTGrade
  • LTGreatCircle
  • LTGridToLatLon
  • LTGroundZ
  • LTHelmertShiftLL
  • LTLatLonToGrid
  • LTLatLonToOSGB36
  • LTLatLonToUTM
  • LTLatLonToXY
  • LTLoadCorridor
  • LTLoadGeoElevationLL
  • LTLoadGeoElevation
  • LTLoadGeoTIFFMosaic
  • LTLoadGeoTIFF
  • LTLoadLAZMosaic
  • LTLoadLAZTerrain
  • LTLoadProject
  • LTLoadStratum
  • LTLoadXYZ
  • LTMarkAllIntersections
  • LTMetresToAngDeg
  • LTOSGB36ToLatLon
  • LTOSGB36ToWGS84Datum
  • LTOtherRoadsGraphics
  • LTOverlayPhotoInteractive
  • LTOverlayPhoto
  • LTPlanContours
  • LTPointAtChainage
  • LTPolygonQuantities
  • LTRefineTerrain
  • LTSampleGroundProfile
  • LTSampleStratumProfile
  • LTSaveProject
  • LTTerrainContourPreview
  • LTTerrainSourcePanel
  • LTUTMToLatLon
  • LTUTMZone
  • LTWaypointsToXY
  • LTWGS84ToOSGB36Datum
  • LTXSEarthwork
  • LTXSTemplates
  • LTXSView
  • LTXSWithWorks
  • LTXYToLatLon
  • LTXYZPointOverlay
  • $LTEarthRadius
  • $LTState
MalcolmWoodruff`LineTerra`
LTLoadGeoTIFF
​
LTLoadGeoTIFF[tifFile,tfwFile]
loads a GeoTIFF elevation raster together with its .tfw world file and gives a terrain Association with keys "Matrix", "Surface", "Bounds", "ZMin", "ZMax" and the pixel size. If tfwFile is "" or does not exist, the GeoTIFF's own embedded ModelPixelScaleTag/ModelTiepointTag are read instead. The option SubsetSize -> {cols, rows} reads only the top-left corner of a large raster. Gives a descriptive failure string if the file cannot be read as a single-band elevation grid.
​
Details and Options
▪
If no .tfw world file is given, or the one named does not exist, the GeoTIFF's own ModelPixelScaleTag and ModelTiepointTag are read instead, so a file carrying embedded georeferencing needs no sidecar at all.
▪
Some GeoTIFFs -- commonly ones with resolution overviews built in by GDAL -- store several pages of different sizes. The full-resolution page, the largest, is picked out automatically.
▪
NoData pixels are filled from their nearest measured neighbour rather than a single global mean, so a lake or other unmeasured water body does not create an artificial elevation cliff. The whole-raster mean is used only as a last resort.
▪
Raster rows are reversed on load, because GeoTIFF rows run north to south while the interpolation expects the first row to be the south edge.
▪
The result is an Association with keys "Type", "File", "PixelSizeX", "PixelSizeY", "FullCols", "FullRows", "SubCols", "SubRows", "Matrix", "Surface", "Bounds", "ZMin", "ZMax" and "Strata".
▪
A descriptive failure string is returned, rather than $Failed, when the file cannot be read as a single-band elevation grid.
▪
Both arguments are ordinary file paths, resolved against the current directory when they are not absolute.
▪
Note that a .tfw path that does not exist is not reported as a missing file: the loader falls back to reading the GeoTIFF's own embedded tags, and reports failure in those terms instead. If a load fails with a message about embedded georeferencing tags, check the paths first.
▪
A large raster is expensive to read in full. A 5000 x 5000 grid takes a few minutes and builds an interpolating surface of roughly a gigabyte, of which the import itself is only a few seconds -- the rest is filling NoData and building the surface. Pass SubsetSize while exploring.
​
Examples  
(1)
Basic Examples  
(1)
Load a survey raster together with its world file:
In[1]:=
terrain=
LTLoadGeoTIFF
["terrain.tif","terrain.tfw"]
Read only the top-left 500 x 500 cells, which loads in seconds rather than minutes:
In[2]:=
terrain=
LTLoadGeoTIFF
["terrain.tif","terrain.tfw",SubsetSize{500,500}]
The extent and elevation range that were loaded:
In[3]:=
{terrain["Bounds"],terrain["ZMin"],terrain["ZMax"]}
Omitting the world file reads the GeoTIFF's own embedded georeferencing tags instead:
In[4]:=
terrain=
LTLoadGeoTIFF
["terrain.tif",""]
SeeAlso
LTLoadGeoTIFFMosaic
 
▪
LTLoadXYZ
 
▪
LTLoadLAZTerrain
 
▪
LTGroundZ
""

© 2026 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com