Maptitude GISDK Help

CoordInArea()

Summary

Determines whether a coordinate is inside an area.

 

Syntax

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

 

Returns

The string "True" if the coordinate is inside the area; the string "False" if it is not.

 

Notes

Example

// 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 Codes

Error Type

Meaning

Error

The area is invalid

 

See Also

Function

Summary

CoordInScope()

Checks to see if a coordinate is in a given scope

 

 

©2025 Caliper Corporation www.caliper.com