Maptitude GISDK Help

AddImageLayer()

Summary

Adds an image layer to a map.

Syntax

actual_lyr_name = AddImageLayer(string map_name, string layer_name, string file_name)

Argument Contents
map_name The name of the map to which the image is added
layer_name The desired name for the image layer
file_name The full path and file name of the image file

Returns

A string indicating the actual name of the layer; identical to layer_name unless the layer name is already in use.

Notes

Example

lyr = AddImageLayer("Map of New York", "Topo Map", "j:\\nycity.tif")

Error Codes

Error Type Meaning
Error The image file is corrupt or in an unsupported format
NotFound The map or the specified image file does not exist

See Also

Function Summary
AddExistingLayer() Adds an existing layer in the workspace to a map
AddLayer() Adds a layer from a standard geographic file to a map
AddLayerToWorkspace() Adds a layer to a workspace without it appearing in a map or dataview
AddCDFLayer() Adds a layer from a compact format geographic file to a map
GetMapLayers() Gets a list of the layers in a map
GetImageLayerOptions() Gets the display and interpolation specifications of an image layer
DropLayer() Removes a layer from a map
SetImageLayerOptions() Sets the display and interpolation specifications of an image layer.
GetLayers() Gets information on layers in the system and the current layer

 

 

©2025 Caliper Corporation www.caliper.com