Determines the Manhattan distance between a point and another point.
Syntax
05 GDL-MANHATTAN-DISTANCE.
10 GDL-MD-HANDLE PIC S9(09) BINARY.
10 GDL-MD-POINT1 PIC S9(09) BINARY.
10 GDL-MD-POINT2 PIC S9(09) BINARY.
10 GDL-MD-DISTANCE PIC S9(09) BINARY.
*
CALL "GDLMD"
USING GDL-MANHATTAN-DISTANCE, GLD-RETURN-CODE.
Arguments
GDL-MD-HANDLE
The gdlHandle initialized by GDLINIT (GDL-INIT- HANDLE). Input.
GDL-MD-POINT1
Pointer to a gdlShape that contains the geocode coordinates representing the first point. Input.
GDL-MD-POINT2
Pointer to a gdlShape that contains the geocode coordinates representing the second point. Input.
GDL-MD-DISTANCE
The distance in feet. Output.
Return Values
GDL-OK | Success |
GDL-ERROR | An internal error occurred |
GDL-WRONG-TYPE | GDL-MD-POINTX are not points |
Prerequisites
GDLINIT
Alternates
GDLDIST - Used to determine the straight line distance instead of the Manhattan distance.
GDLND - Used to determine the nearest distance between an error surface and any other feature.
GDLFD - Used to determine the farthest distance between an error surface and any other feature.
Notes
The following diagram illustrates the Manhattan distance between two points: