Knowledge Base Article
KB10246 - What is TGIS_Units and how can I use it?
TGIS_Units is a unit conversion component relating to projections. It will allow you, for example, to determine whether your output is in meters or miles. You can use this class to convert between unit types. Conversion from meters to nautical miles, for example, is achieved as follows:
units := TGIS_Units.Create(gisUnitsTypeMileNautical);
miles := meters * units.Value;
But this function is generally for internal purposes because, if the proper ll.Units are assigned, the projection will automatically be done with the proper units.
Created: 2005-09-14, Modified: 2007-07-05
|