Maptitude GISDK Help |
Determines whether a coordinate is inside an area.
answer = CoordInArea(coordinate c, array area)
Argument |
Contents |
||
c |
The coordinate to check |
||
area |
A three-element array that describes an area: |
||
|
1 |
integer |
Number of polygons that describe the area |
|
2 |
array |
The number of points in each polygon |
|
3 |
array |
The complete array of coordinates that define the area |
The string "True" if the coordinate is inside the area; the string "False" if it is not.
GetArea() returns the area array used by CoordInArea().
// Before running the example, create a map by opening nesouth.cdf
// in the Tutorial folder.
area = GetArea(8494)
c= Coord(-71900000, 42360000)
answer = CoordInArea(c, area)
if answer = "True" then
ShowMessage("Coordinate is inside the area.")
Error Type |
Meaning |
Error |
The area is invalid |
Function |
Summary |
Checks to see if a coordinate is in a given scope |
©2025 Caliper Corporation | www.caliper.com |