LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
GeoKeys Property
See Also 
Leadtools.Codecs Namespace > CodecsLoadOptions Class : GeoKeys Property



Gets or sets a value that indicates whether any TIFF Geo key tags found in the file should be automatically loaded.

Syntax

Visual Basic (Declaration) 
Public Property GeoKeys As Boolean
Visual Basic (Usage)Copy Code
Dim instance As CodecsLoadOptions
Dim value As Boolean
 
instance.GeoKeys = value
 
value = instance.GeoKeys
C# 
public bool GeoKeys {get; set;}
C++/CLI 
public:
property bool GeoKeys {
   bool get();
   void set (    bool value);
}

Property Value

true to automatically load any TIFF Geo key tags found in the file, otherwise; false.

Example

For an example, refer to Tags.

Remarks

When the value of the GeoKeys property is set to true, any subsequent load operation performed by this RasterCodecs object will automatically try to load all the TIFF Geo key tags found in the file and store them in the RasterImage.GeoKeys collection of the result image.

Internally, the RasterCodecs object will call RasterCodecs.GeoKeysSupported on the image and only tries to load the geo keys if the value returned was true.

When loading more than one page from a multi-page file, only the geo keys found in the first page will be automatically loaded when the value of this property is set to true. To manually load all the geo keys in any page, use RasterCodecs.ReadGeoKeys.

You must set the value of the Markers property to false to enable automatically loading the geo keys. If the value of both Markers and GeoKeys is set to true, then the markers will take take precedence and no geo keys will be loaded.

Note that any load method that uses tiles, offset or resizing will not load any file metadata automatically regardless of the value of this property.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also