Scripting in TNTmips

  Create Custom Features and Enhancements

TNTgis' geospatial scripting language (SML) supports a wide variety of customization. SML is used in complete stand-alone scripts, element selection queries, and numerous types of custom processes, tools, and applications. Scripts are written for a specific context depending on the desired action or output.

The TNT_2016_SampleData.zip file includes a scripts folder with a set of custom scripts to help you get started with SML. It contains samples scripts used in the scripting tutorials as well as the scripts available here.

Queries & Expressions

Expressions and queries are usually very simple scripts with only one or two lines of code and often reference database records that are associated with geometric elements (points, lines, and polygons). Expressions return numeric or text values while queries return 'true' or 'false' for a given element or other input. With these scripts you can: mark elements, specify what elements to show, create a string or numeric field in a table, or label elements. See also: Building and Using Queries tutorial.

Mark & Show Elements

selectionQuery

Highlight geometric elements or specify what elements you want to show in the View.

Computed Fields

stringExpression

Create Numeric or Text Fields in database tables.

Dynamic Labels

labelByScript

Specify text for labeling geometric elements.

Display Scripts: Styling, Macros & Tools, Enhanced DataTips, and Interactive Windows

These scripts are used in the Display process or other processes with a View window. Use them to style a layer or object, run a macro in the View window, make enhanced DataTips, or create an interactive window. See also: Using CartoScripts tutorial.

Style Geometric Data

styleByScript

Style geometric points, lines, and polygons with a simple script or complex CartoScript.

Macros & GraphicTools

Macro and Tool Scripts

Add tools and macros to the toolbar in any View window.

Enhanced DataTips

Display Control

Display control scripts to make DataTips and GraphTips in the View.

Interactive Windows

Display Control

Display control scripts that create interactive windows to use with the View.

Layer Scripts

These scripts render an on-the fly layer in the View window.

* GeoFormulas can be used either in the GeoFormula process (to create a new raster object in an RVC file) or added as a layer in the Display process (to render on-the-fly GeoFormula layers). See also: Using Geospatial Formulas tutorial.

GeoFormulas

layers

GeoFormulas: Combine rasters and/or vector polygons to create a new raster object.

PinMaps

layers

Select records, assign symbols, specify labels, and format coordinates.

Script Layers

layers

Add a border, tic marks, north arrow, logo, title, or layer labels to your map.

TNTscript

TNTscript lets you automate geospatial processing using local or cloud computing resources. This type of SML script is run from a command line or a control script so no user interace is necessary.

Geospatial Process Scripts

Stand-alone scripts are run on their own without any other TNTmips process. SML scripts can accomplish a wide variety of goals — such as automating your work flow, developing your own algorithms, or creating custom interactive applications.

SML Fundamentals

simple SML scripts

Simple examples.

Import & Export

ImportExport

Import and export geodata.

Georeference

Georeference

Add control points ...

Raster Processing

Raster Processing

Raster processing and analysis.

Lidar Processing

Lidar Processing

Lidar processing.

Geometric Data

Geometric Data

Vector, CAD, shape, TIN ...

Database

Database

Create and edit geo-databases.

Convert

Convert

Convert geodata to another type.

Windows & Dialogs

building dialogs

SML Dialogs Using XML.

Map Layouts

building Layout

Create and print map layouts.

Job Processing

job processing

Set up specialized batch jobs.

Advanced Examples

Custom Processing Scripts

More complex stand-alone scripts for specialized processing.