Knowledge Base Article
KB10522 - What units are expected by TGIS_ProjectionXXX.Setup() method?
The content of this KB is obsolete and can contain inaccurate information
I want to convert GPS points to fit to a map which is in a coordinate system defined as follows:
Hotine Oblique Mercator Azimuth Center
Central Meridian: 7.43958333333333
Origin Latitude: 46.952405555555
False Easting: 600000
False Nothing: 200000
Scale Factor: 1
So I enter the information in the DK as follows:
Prj := ProjectionList.findEx('HOT');
Prj.Setup(7.43958333333333, 46.952405555555, 600000, 200000, 0,0,0, 1, 0,0,0,0,0,0,0);
But this results in the error: "0220 Origin Latitude out of scope"?
The problem is that you have provided the Central Meridian and Origin Latitude information as degrees. These values must be provided in radians.
You can use the Delphi DegToRad function to perform the conversion.
Created: 2004-04-09, Modified: 2010-04-16
|