Leadtools.Codecs Namespace > RasterCodecs Class : GeoKeysSupported Method |
public static bool GeoKeysSupported( RasterImageFormat format )
'Declaration Public Shared Function GeoKeysSupported( _ ByVal format As RasterImageFormat _ ) As Boolean
'Usage Dim format As RasterImageFormat Dim value As Boolean value = RasterCodecs.GeoKeysSupported(format)
public static bool GeoKeysSupported( RasterImageFormat format )
+(BOOL)geoKeysSupported:(LTRasterImageFormat)format;
public static boolean geoKeysSupported(RasterImageFormat format)
function Leadtools.Codecs.RasterCodecs.GeoKeysSupported( format )
public: static bool GeoKeysSupported( RasterImageFormat format )
This is a helper method that can be used to detect if a certain raster file format supports TIFF Geo key tags. For example, ReadGeoKey(String,Int32,Int32), ReadGeoKeys(String,Int32) and EnumGeoKeys(String,Int32) can be used to read the GeoKeys stored in a file. If the file format supports GeoKeys, such as TIFF, then these methods will successfully return the geo key tags stored.
However, if the format does not support geo key tags, such as BMP, an exception will be thrown by the RasterCodecs objects. You can use GeoKeysSupported to determine whether the file supports GeoKeys and only call the read methods if the return value is true.
Note that the RasterCodecs option uses this method internally to determine whether the file supports GeoKeys when the CodecsLoadOptions.GeoKeys is set to true and only read the file GeoKeys if the file format supports them.
RasterCodecs Class
RasterCodecs Members
ReadGeoKey(String,Int32,Int32) Method
ReadGeoKeys(String,Int32) Method
EnumGeoKeys(String,Int32) Method
CommentsSupported Method
TagsSupported Method
Tags Property
RasterImage.GeoKeys
Working with Markers
Implementing TIFF Comments and Tags
TIFF File Comments
Implementing GeoKeys (GeoTIFF tags)
Leadtools.RasterCommentMetadataType