Descriptions and locations of SML sample scripts

General samples (directory general)

	demogama.sml
		Shows gamma adjustment of a gradient raster.

	gamma.sml
		Shows interactive gamma adjustment

	multirang.sml
		Quantizes raster cell values to user-defined ranges

	scaleras.sml
		Shows interactive range scaling of raster cell values

	stddisp.sml
		Sample of a raster display program

CAD functions (directory cad)

	arc.sml
		Demonstrates writing and reading a CAD arc using CADWriteArc() and CADReadArc().

	arcchord.sml
		Demonstrates writing and reading a CAD arc chord using CADWriteArcChord() and 
		CADReadArcChord().

	arcwedge.sml
		Demonstrates writing and reading a CAD arc wedge using CADWriteArcWedge() and 
		CADReadArcWedge().

	box.sml
		Demonstrates writing and reading a CAD rectangular box using CADWriteBox() and 
		CADReadBox().

	circle.sml
		Demonstrates writing and reading a CAD circle CADWriteCircle() and 
		CADReadCircle().
		
	earc.sml
		Demonstrates writing and reading a CAD elliptical arc CADWriteEllipticalArc() and 
		CADReadEllipticalArc().

	echord.sml
		Demonstrates writing and reading a CAD elliptical arc chord using
		CADWriteEllipticalArcChord() and CADReadEllipticalArcChord().

	elemlist.sml
		Demonstrates reading a list of all elements of a given type out
		of a CAD block using CADGetElementList().

	ellipse.sml
		Demonstrates writing and reading a CAD ellipse using CADWriteEllipse() and 
		CADReadEllipse().

	ewedge.sml
		Demonstrates writing and reading a CAD elliptical arc wedge using 
		CADWriteEllipticalArcWedge() and CADReadEllipticalArcWedge().

	line.sml
		Demonstrates writing and reading a CAD line using CADWriteLine() and 
		CADReadLine().

	point.sml
		Demonstrates writing and reading a CAD point using CADWritePoint() and 
		CADReadPoint().

	poly.sml
		Demonstrates writing and reading a CAD polygon using CADWritePoly() and 
		CADReadPoly().

	readblck.sml
		Demonstrates reading a CAD block using CADNumBlocks() and CADNumElements().

	subblock.sml
		Demonstrates writing CAD subblock using CADCreateBlock() and CADInsertBlock().

	text.sml
		Demonstrates writing and reading CAD text using CADWriteText() and 
		CADReadText().
	
Focal functions (directory focal)
	
	vecfocal.sml
		Calculates focal mean of a raster cells based on vector points

Vector functions (directory vector)

	vecextr.sml
		Demonstrates usage of the VectorExtract() functions.

	vecop.sml
		Demonstrates usage of the VectorAND(), VectorOR(), VectorReplace(),
		VectorSubtract(), and VectorXOR functions.

	adjpoly.sml
		Demonstrate usage of GetVectorPolyAdjacentPoly() to find all polygons 
		that share a line with a given polygon.  

	vmake.sml
		Demonstrates creation of vector using GetOutputVector() with vector toolkit flag.

	vsetflag.sml
		Demonstrates using VectorSetFlags() to set vector toolkit flags.

	vlabel.sml
		Demonstrates creating and deleting labels with VectorAddLabel(),  	
		VectorDeleteLabel(), VectorDeleteLabels().

	vpoint.sml
		Demonstrates creating and deleting points with VectorAddPoint() 	
		VectorDeletePoint(), and VectorDeletePoints().

	vline.sml
		Demonstrates creating and deleting lines with VectorAddLine() 	
		VectorDeleteLine(), and VectorDeleteLines().

	v2ptline.sml
		Demonstrates creating a two point line with VectorAddTwoPointLine(). 	

	vnode.sml
		Demonstrates creating and deleting nodes with VectorAddNode() 	
		VectorDeleteNode(), and VectorDeleteNodes().

	vpoly.sml
		Demonstrates deleting polygons with VectorDeletePoly() and 	
		VectorDeletePolys().

	vchgpt.sml
		Demonstrates changing the location of an existing point using VectorChangePoint().
	
	vchgline.sml
		Demonstrates changing the vertices of an existing line using VectorChangeLine().

Classify functions (directory classify)

	lincombo.sml
		Uses the new RasterLinearCombination() function to calulate a brightness
		Raster from red, green, and blue input Rasters.  The script uses two methods, 
		a simple	average of the rgb values, and a weighted average based on the 
		CIE luminance response (Y) of a standard observer relative to the luminous
		efficiency of given phosphor set.

	princomp.sml
		Demonstrates use of the new PrincipleComponents() function to reduce dimensions
		of r,g,b rasters.

	regress.sml
		Demonstrates use the new MultiRegression() function to compute multilinear 
		regression equations for a set of Rasters.	

	viewshed.sml	( uses VIEWSHED.RVC)
		Uses the new RasterToBinaryViewshed() function to calculate a viewshed
		for all points on all lines of a corresponding Vector object.  This script
		could be used to calculate the viewshed for all points on one or more roads.
		Demonstrates how the new matrix functions may be used to send any number
		of data points to an SML function.  VIEWSHED.RVC contains a Vector object,
		"Vroad", that contains Vector lines which may be used in combination with the 
		CB_TM\ELEVATION Raster as input data to the script.


Conversion functions	(directory convert)

	rtotin.sml
		Demonstrates use of RasterToTINIterative() to convert an elevation
		Raster object into a TIN object.

	rtovec.sml
		Demonstrates use of RasterToVectorContour() to convert an elevation
		Raster object into a Vector contour object.

	tintor.sml
		Demonstrates use of TINToRaster() to convert a TIN object into a
		Raster object.

	tintov.sml
		Demonstrates use of TINToVectorContour() to convert a TIN object into 
		a Vector contour object.

	rgbhis.sml
		Demonstrates converting red, green, blue (RGB) values to and from 
		hue, intensity, saturation (HIS), using ConvertHIStoRGB() and
		ConvertRGBtoHIS().  

Database functions (directory database)

	create.sml
		Shows how to create a database table and relate it to another table

Object functions (directory object)

	objname.sml
		Demonstrates how to get a fully path qualified RVC file name from a
		Raster, Vector, or TIN object number using GetObjectFilename().

	objnum.sml
		Demostrates getting an object number from a Raster, Vector, of TIN 
		SML object variable using GetObjectNumber().  The object number is 
		required in various SML functions so this allows simple programming
		access to this number.

TIN functions (directory tin)

	addnode.sml
		Demonstrates usage of TINAddNode() to add a node to an existing
		TIN object.  

	delnode.sml
		Demonstrates usage of TINDeleteNode() to remove a node from an 
		existing	TIN object.  TINDeleteNode() does not create a hole in
		the TIN object.  

	edgeext.sml
		Demonstrates usage of TINGetEdgeExtents() to read the x and y
		extents of an edge in a TIN object. 

	edgehole.sml
		Demonstrates usage of TINDeleteEdgeAndMakeHole() to remove an 
		edge from an existing TIN object.  This function creates a hole 
		in the TIN object.

	edgelist.sml
		Demonstrates usage of TINGetConnectedEdgeList() to get a list of
		all edges connected to a given node in a TIN object.

	gettin.sml
		Demonstrates usage of GetInputTIN() and GetOutputTIN() functions.

	getz.sml
		Demonstrates usage of TINGetNodeZvalue() to read the z value of
		a node in a TIN object.

	maketin.sml
		Demonstrates usage of TINCreateFromNode() to create a TIN object
		from a list of node coordinates.

	nodeedge.sml
		Demonstrates usage of TINGetTriangleNodesAndEdges() to read the nodes
		and edges of a triangle in a TIN object.

	nodeext.sml
		Demonstrates usage of TINGetNodeExtents() to read the x and y
		coordinates of a node in a TIN object.

	nodehole.sml
		Demonstrates usage of TINDeleteNodeAndMakeHole() to remove a node 
		from an existing	TIN object.  Unlike TINDeleteNode(), this function
		does create a hole in the TIN object.

	nodelist.sml
		Demonstrates usage of TINGetConnectedNodeList() to get a list of
		all nodes connected to a given node in a TIN object.

	nodetri.sml
		Demonstrates usage of TINGetEdgeNodesAndTriangles() to read the nodes
		and left and right triangles of an edge in a TIN object.

	outtin.sml
		Demonstrates usage of GetOutputTIN() to open a TIN object for use 
		with TIN toolkit functions. 

	setz.sml
		Demonstrates usage of TINSetNodeZvalue() to change the z value of
		a node in a TIN object.

	tininfo.sml
		Demonstrates usage of TINNumberHulls(), TINNumberEdges(), 
		TINNumberNodes(), and TINNumberTriangles() to read the number of
		hulls, edges, nodes, and triangles in a TIN object.

	triext.sml
		Demonstrates usage of TINGetTriangleExtents() to read the x and y
		extents of a triangle in a TIN object.

	trihole.sml
		Demonstrates usage of TINDeleteTriangleAndMakeHole() to remove a 
		triangle from an existing TIN object.  This function creates a hole
		in the TIN object.

Matrix functions (directory matrix)

	addmat.sml
		Demonstrates addition of matrices using AddMatrix().

	addmatsc.sml
		Demonstrates adding a scaler value to a matrix using AddMatrixScaler().

	creatmat.sml
		Demonstrates process of creating a matrix using CreateMatrix().

	getmatit.sml
		Demonstrates how to retrieve a given row, column value from a matrix
		using GetMatrixItem().
	invmat.sml
		Demonstrates calculating the inverse of a matrix using InvertMatrix().

	killmat.sml
		Demonstrates desstroying a previously created matrix using DestroyMatrix().

	matcolsz.sml
		Demonstrates how to determine the number of columns in an existing matrix.
		This script uses GetMatrixColSize()in a procedure for printing a formated 
		listing of the values in a matrix to the console.
	
	matrowsz.sml
		Demonstrates how to determine the number of rows in an existing matrix.
		This script uses GetMatrixRowSize()in a procedure for printing a formated 
		listing of the values in a matrix to the console.

	multmat.sml
		Demonstrates multiplication of matrices using MultiplyMatrix().

	multscal.sml
		Demonstrates multiplicaton of a matrix by a scaler using MultiplyMatrixScaler().

	setmatit.sml
		Demonstrates how to set a given row, column value of a matrix using
		SetMatrixItem().

	submat.sml
		Demonstrates subtraction of matrices using SubMatrix().

	transmat.sml
		Demonstrates computing the transpose of an existing matrix using TransposeMatrix().

Georeference functions (directory georef)

	smlgeo.sml
		Demonstrates creation of georeference object using CreateControlPointGeoref().

	


