GetLayerScope()

Summary

Gets the scope of a layer.

Syntax

layer_scope = GetLayerScope(string layer_name)

Argument Contents
layer_name The name of the specified layer

Returns

The scope of the layer.

Notes

  • Layer_scope can be passed to any GISDK function that requires a scope as argument.

  • All layer types have a scope, including image layers.

  • For a full list of scope-related GISDK functions, see Map Scales and Scopes.

Example

scp = GetLayerScope("U.S. States")
SetMapScope(, scp)

Error Codes

Error Type Meaning
NotFound The specified layer does not exist
Error Image database file is corrupted, or an internal error has occurred

See Also

Function Summary
GetSetScope() Gets the scope of the features in a selection set.
GetMapScope() Gets the scope of a map
Scope() Creates a scope