Tuesday, March 26, 2013

Data in Meters, but you want Measured Values in Feet



GTViewer has had the ability to display measured result in units different from that of the data since version 8.   This feature is often useful if your data is in Meters but you want to display measured values in Feet; or if your data is in Feet and you want to display measured values in Meters.
Three entries support this feature in the [Additional Properties] section of the .GTM file:

·         MeasureFactor is a value used to divide the measured length (in system units) by to produce the measured value in the desired units.  By default, this value is set to the Coordinate Factor 2 value (which is used to divide the system coordinates values by to get real world units for the data).   So, if this entry is not used, the measured values will appear in the same units as the data.

·         MeasurePrecision can be used to specify the number of digits that appear after the decimal point in the measurement readouts.   If not specified, the default value is 2.

·         MeasureUnitLabel defines the unit label displayed in the measurement readout.  Since this unit is different than the data’s real world units (specified with MajorUnit), it must be specified if using the MeasureFactor entry.

Here are some typical examples of how these entries can be used:

Data in Meters, Measurements in Feet

If your data is in Meters, and you are using 1000 for Coordinate Factor 2 (meaning that you will divide the system coordinate by 1000 to get the real world units of the data), and you want to display your measurements in Feet, the settings would be:

MeasureFactor=3280.84
MeasurePrecsion=2
MeasureUnitLabel=FT

1 Meter = 3.28084 feet, so to determine the Measure Factor value, you need to divide the measured value in system units by 1000 (coordinate factor 2) to get Meters, then multiply by 3.28084 to get Feet.  The Measure Factor is 1000 *3.28084 = 3280.84.  Then the measured value in System Units is divided by the Measure Factor to get Feet.


Data in Feet, Measurements in Meters

If your data is in feet and you are using 1000 for Coordinate Factor 2 (meaning that you have 1000 system units per Foot), and you want to display your measurements in Meters, the settings would be:

MeasureFactor=304.8
MeasurePrecsion=2
MeasureUnitLabel=M

1 Foot = 0.3048 Meters, so to determine the Measure Factor, you need to divide the measured value in system units by 1000 (Coordinate factor 2) to get Feet, then multiply it by 0.3048 to be Meters.  The Measure Factor is 1000 * 0.3048 = 304.8.   Then the measured value in System Units is divided by the Measure Factor to get Meters.

Thursday, March 21, 2013

GTV .NET Control version 9.0.0.31 is Available





The GTViewer .NET Control for Windows version 9.0.0.31 is Available.




------------
09.00.00.31 - 3/21/13
------------

- NEW - #7168 - Support for Encrypted Tabular data.
 

------------
09.00.00.30 - 3/21/13
------------

- FIX - #7165 - The parsing for embedded data read from the session files (.gts) did not account for some of the escaped characters (\xxx) and was dropping the embedded data when the session file was read. Further fix to #7142.

------------
09.00.00.29 - 3/4/13
------------

- NEW - #7143 - GetAttributeInfoForFeatureByKey method has been added.

- NEW - #7144 - GetCategoryName and GetDisplayFilterName methods added.
   
         
------------
09.00.00.28 -
------------ 

- FIX - #7142 - Embedded Data in Session file (.gts) did not get correctly loaded if escaped (\###) character were used in the embedded data.
     
------------
09.00.00.27 - 1/29/13
------------

- FIX - #7141 - Fixed a Setup problem where the duplicate runtime files had been removed, but are necessary.

------------
09.00.00.26 - 1/28/13
------------

- NEW - #7140 - The GetViewAsImage method was added.

------------
09.00.00.25 - 1/24/13
------------

- FIX - #7139 - Version number was not properly updated in Dll.