TNTmips

HOME

FREE PRODUCTS
  TNTmips Free
  TNTatlas
  TNTsdk

DOWNLOADS
  Release Version
  Development Version
  FTP
  Language Kits
  Sample Geodata
  Reseller Resources

DOCUMENTATION
  Tutorials
  Technical Guides
  Quick Guides

SITE MAP


Custom Processing Scripts

Extend the Capabilities of the TNT products


If want to develop your skills in writing SML scripts, you will find some helpful examples here. Start with a working model and then modify it for your project. 

Go to 1-page index of over 200 scripts ...
Download all sample scripts: TNT_74_SampleScripts.zip  (9.1 Mb)
Read the tutorial Writing Scripts in SML.  

Read the tutorial Building Dialogs in SML
Configure your text editor for SML

Download SML Custom Scripts:

TiffToJP2getJobParms.sml
TiffToJP2fromJob.sml
related color plate

Script Example Using Job Processing. You can combine geospatial scripting and TNTmips Job Processing to perform specialized batch processing. A pair of scripts is required for such a task: an Input/Output script to collect user inputs and create one or more job files, and a Process script to obtain the processing parameters from each job file and perform the actual custom processing. This custom job processing example performs batch conversion of a set of four-band TIFF files to compressed JP2 files. The Input/Output script TiffToJP2getJobParms provides a dialog for selecting input TIFF files, an output directory, and JPEG2000 compression settings. It makes a job file for each input that includes these parameters and that calls the processing script TiffToJP2fromJob to perform the conversion.

MapUnitAreas.sml
related color plate

Tabulate Map Unit Areas for Watershed Catchments. Designed to relate the results of the Sample Catchments script to a geologic, soil, or other vector object containing map unit polygons. For each catchment the script tabulates the area and percent area of each intersecting map unit. These values are written to tables attached to copies of the original catchment polygon vector and sample point vector object. This generalized version of the GeolUnitArea script automatically compiles a list of unique map units from the selected vector object and tabulates areas for all units or optionally for a single target unit.

GeotagDbase.sml
related color plate

Add Geotags to Database Records. Standalone script automatically adds geotag information to a database table containing records of point observations. The script requires that the source table include fields with the date and time of observation for each record and requires a concurrent GPS track log. The source table is copied, fields with Latitude, Longitude, and Elevation are added for each record, and the new result table is placed in the same database object as the source.

GPSphoto2.sml.
related color plate

Add Geotags to Digital Photos. Customizable standalone script determines locations for any number of digital photo files in JPEG format and creates a point vector object with an attached database table with the photo and geotag information. Geotagging can be done automatically using the date and time recorded in each photo's EXIF header and one or more GPS track logs, or coordinates can be obtained visually by indicating photo locations on a georeferenced image.

MorphContour.sml
related color plate
Contours to DEM via Morphological Interpolation. Standalone script to demonstrate the results of a surface-fitting process from contour lines using morphological functions as described in the paper "An Image Space Algorithm for Morphological Contour Interpolation" by Barrett, Mortensen and Taylor.
RasterIntervals.sml
related color plate
Theme Mapping a Raster. Standalone script to categorize a grayscale raster into a specified number of grayscale-value intervals. The number of intervals and the distribution type (equal count or equal interval) can be specified. Separate dialogs are provided to set input parameters, view and edit the range values, and to preview the result. Script makes a categorical raster with a single value for each interval and a color palette. 
SampleCatchments.sml
related color plate
Mapping Catchment Areas for Sample Points.  Automates the delineation of upstream watershed catchments for many sample locations provided as points in a vector object. Point attributes (chemical analyses of stream sediment or water, for example) are transferred to the derived catchment polygons.
GeolUnitArea.sml
related color plate
Catchment Analysis for Locating Ore Deposits  Used to relate results of the SampleCatchments script to a geologic map vector object. Copies the catchment polygons vector object and adds a table that records the summed areas and percentages of each geologic map unit for each catchment.
SRTMfill.sml
related color plate
STRM Hole-Filling.  Fills the no-data cells in the DEMs produced from the Radar data acquired by the Shuttle Radar Topography Mission (SRTM).
surfcurv.sml
related color plate
Terrain Curvature.  Creates profile and plan curvature rasters from an input DEM using local best-fit mathematical surfaces.
LandsatCalibrationPilot.sml
related color plate
Calibrate Multitemporal Landsat Scenes via SML.  Automates the complex sequence of processing steps required to adjust a time-series of Landsat scenes to a common quantitative scale for use in monitoring change in surface conditions.
ParcelToolModal.sml
ParcelToolModeless.sml
related color plate
VBDEMO.zip
ActiveX Callbacks to SML.  
also
Communicate with Visual Basic Programs using SML(2-pages)
SML scripts use Microsoft Windows AcitveX technology to launch and communicate with Visual Basic, C++, or Java.
printsep.sml
related color plate
The Print Separation macro produces color  separations (TIFF files) for printing image layers.  The image layers in the layout must be grayscale; overlays are restricted to specified colors.
pansharpcomp.sml
related color plate
Panchromatic Sharpening.  The script computes a pan-sharpened color-composite image from three bands of a multispectral image and a higher-resolution panchromatic image.
deveg68.sml
related color plate
Suppressing Vegetation.  Suppress the expression of vegetation in multispectral images for geological and soil mapping applications.
radiogroup.sml
related color plate
Radio Group .  A small "stub" script that illustrates how you can build SML dialogs using XML.
doqq7.sml DOQQ Assembly.  Automated assembly of Digital Ortho photos.
fixseam.sml Fill Gaps implement gap filling rules for raster mosaic seams
nearnegh.sml Nearest Neighbor Polygons Update nearest neighbor databases for polygons in a vector object.
query_nn.sml Query Nearest Neighbor Polygon: Query nearest neighbor databases for polygons in a vector object.
inputmat.sml Parse Input String: find a numeric text position inside a string
values.txt Sample Input String: sample text input file for inputmat.sml
avirisl.sml Wavelength Description: automatically modify Project File descriptions for AVIRIS imagery to include a phrase in the form "wavelength xxxx"
focalmean.sml Vector Point to Raster Focal Mean: write result of focal mean operation for a raster cell chosen from a vector point
polybl.sml Polygon Boundary Length: read description
votdist.sml Voter Districts: read description
compar.sml Color Map: Toolscript to compare colors and manipulate color map in 8-bit raster object
tiger.sml TIGER Cities: extract TIGER city polygons

25 March 2009  

page update: 30 Jun 09


Back Home ©MicroImages, Inc. 2009 Published in the United States of America
11th Floor - Sharp Tower, 206 South 13th Street, Lincoln NE 68508-2010   USA
Business & Sales: (402)477-9554  Support: (402)477-9562  Fax: (402)477-9559
Business info@microimages.com  Support support@microimages.com  Web webmaster@microimages.com