| Maptitude GISDK Help |
Gets the scope of a view.
view_scope = GetViewScope(string view_name)
| Argument | Contents |
|---|---|
| view_name | Name of a view, mappable to the current layer; if null, the current view is used |
A scope that encloses all the records in the view.
For a full list of scope-related GISDK functions, see Map Scales and Scopes.
scp = GetViewScope("Customers")
SetMapScope(curr_map, scp)
| Error Type | Meaning |
|---|---|
| Error | There is no current layer; the input view is not mappable to the current layer; the current layer is not geographic (e.g., an image layer); or the current layer is a compact geographic layer and the input view contains no records |
| NotFound | The input view does not exist, or input view_name is null and there is no current view |
| Function | Summary |
|---|---|
| GetLayerScope() | Gets the scope of a layer |
| GetSetScope() | Gets the scope of the features in a selection set |
| GetRecordScope() | Gets the scope of a given record on the current layer |
| ©2025 Caliper Corporation | www.caliper.com |