| Maptitude GISDK Help |
Gets coordinates at the four corners of a given scope.
corners = GetScopeCorners(scope scp)
| Argument | Contents |
|---|---|
| scp | The scope from which to get the corners |
An array of four coordinates, starting at the southwest corner, and going clockwise:
| Element | Type | Contents |
|---|---|---|
| 1 | Coord | Minimum longitude; minimum latitude |
| 2 | Coord | Minimum longitude; maximum latitude |
| 3 | Coord | Maximum longitude; maximum latitude |
| 4 | Coord | Maximum longitude; minimum latitude |
For a full list of scope-related GISDK functions, see Map Scales and Scopes.
// change the scope to be at one of its corners
scp = GetMapScope("my map")
corners = GetScopeCorners(scp)
scp.center = corners[1]
SetMapScope("my map", scp)
| Function | Summary |
|---|---|
| GetScopeRect() | Gets an array of two coordinates that define the rectangle of a scope |
| Scope() | Creates a scope |
| GetMapCorners() | Gets coordinates at the four corners of a map |
| ©2025 Caliper Corporation | www.caliper.com |