Checks whether the given file format supports TIFF GeoKey tags
public static bool GeoKeysSupported(
Leadtools.RasterImageFormat format
)
Public Shared Function GeoKeysSupported( _
ByVal format As Leadtools.RasterImageFormat _
) As Boolean
public static bool GeoKeysSupported(
Leadtools.RasterImageFormat format
)
+ (BOOL)geoKeysSupported:(LTRasterImageFormat)format
public static boolean geoKeysSupported(RasterImageFormat format)
function Leadtools.Codecs.RasterCodecs.GeoKeysSupported(
format
)
public:
static bool GeoKeysSupported(
Leadtools.RasterImageFormat format
)
format
The RasterImageFormat to check
true if the format supports TIFF GeoKey tags; otherwise it is false.
This is a helper method that can be used to detect if a certain raster file format supports TIFF GeoKey tags. For example, ReadGeoKey, ReadGeoKeys and EnumGeoKeys 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 GeoKey tags stored.
However, if the format does not support GeoKey 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.
For an example, refer to ReadTags.
ReadGeoKey(String,Int32,Int32) Method
ReadGeoKeys(String,Int32) Method
EnumGeoKeys(String,Int32) Method
Implementing TIFF Comments and Tags
Products |
Support |
Feedback: GeoKeysSupported Method - Leadtools.Codecs |
Introduction |
Help Version 19.0.2017.6.16
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.