ConvertFromLatLng (open)

Convert a latitude/longitude coordinate to another coordinates system

Syntax

LOADLIB "wh::util/geo.whlib";

RECORD FUNCTION ConvertFromLatLng(RECORD latlng, STRING type)

Parameters

RECORD latlng

A [FLOAT lat, FLOAT lng ] record

STRING type

The coordinate system name to convert to

Return value

RECORD

A coordinates record in for requested coordinates system, or a default record if an invalid input record was given or an unsupported coordinates system was specified

Description

Currently only the "RD" (Dutch Rijksdriehoeksmeting) type is supported, returning a [ INTEGER x, INTEGER y ] coordinates record.