GDLMD - geographicdeterminationlibrary - 2024.00

Geographic Determination Library Reference for Windows and z/OS

Product type
Software
Portfolio
Locate
Product family
GeoStan Geocoding Suite
Product
GeoStan Geocoding Suite > Geographic Determination Library
Version
2024.00
Language
English
Product name
GeoStan Geocoding Suite
Title
Geographic Determination Library Reference for Windows and z/OS
Topic type
Reference
Copyright
2024
First publish date
1994
ft:lastEdition
2024-05-09
ft:lastPublication
2024-05-09T00:55:21.277227

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: