Table of Contents

ThinkGeo.MapSuite.Core.UnmanagedGeoTiffRasterSource

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

This class allows you to view TIFF image types.

Inheritance Hierarchy

Members Summary

Public Constructors

UnmanagedGeoTiffRasterSource()

This is the constructor the for the class. If you use this constructor then you need to set the required properties manually.

Remarks

None

Parameters

UnmanagedGeoTiffRasterSource(String)

This is the constructor for the class.

Remarks

This is typically the constructor you want to use for this class. It allows you to pass in the TIFF file you wish to work with. Note that the TIFF file is not accessed or opened until you call the open command of the class.

Parameters

UnmanagedGeoTiffRasterSource(String,String)

This is the constructor for the class.

Remarks

This is typically the constructor you want to use for this class. It allows you to pass in the TIFF file you wish to work with and world file belongs to it. Note that the TIFF file is not accessed or opened until you call the open command of the class.

Parameters

UnmanagedGeoTiffRasterSource(String,RectangleShape)

This is the constructor for the class.

Remarks

This is typically the constructor you want to use for this class. It allows you to pass in the TIFF file you wish to work with and image extent belongs to it. Note that the TIFF file is not accessed or opened until you call the open command of the class.

Parameters

Protected Constructors

Public Methods

CloneDeep()

N/A

Remarks

N/A

Return Value
Parameters

GetWorldFileText()

N/A

Remarks

N/A

Return Value
Parameters

GetImageWidth()

N/A

Remarks

N/A

Return Value
Parameters

GetImageHeight()

N/A

Remarks

N/A

Return Value
Parameters

GetHorizontalResolution()

N/A

Remarks

N/A

Return Value
Parameters

GetVerticalResolution()

N/A

Remarks

N/A

Return Value
Parameters

GetBoundingBox()

N/A

Remarks

N/A

Return Value
Parameters

GetProjectionText()

N/A

Remarks

N/A

Return Value
Parameters

Open()

N/A

Remarks

N/A

Return Value
Parameters

Close()

N/A

Remarks

N/A

Return Value
Parameters

GetImage(RectangleShape,Int32,Int32)

N/A

Remarks

N/A

Return Value
Parameters

ToString()

N/A

Remarks

N/A

Return Value
Parameters

Equals(Object)

N/A

Remarks

N/A

Return Value
Parameters

GetHashCode()

N/A

Remarks

N/A

Return Value
Parameters

GetType()

N/A

Remarks

N/A

Return Value
Parameters

Protected Methods

GetImageWidthCore()

This method returns the width of the image in screen coordinates.

Remarks

This virtual method is called from the concreate method GetImageWidth.

Return Value
Parameters

GetImageHeightCore()

This method returns the height of the image in screen coordinates.

Remarks

This virtual method is called from the concreate method GetImageHeight.

Return Value
Parameters

OpenCore()

This method opens the TIFFSource so that it is initialized and ready to use.

Remarks

This protected virtual method is called from the concreate public method Open. The open method play an important role as it is responsible for initializing the RasterSource. Most methods on the RasterSource will throw an exception if the state of the RasterSource is not opened. When the map draws each layer it will open the RasterSource as one of its first steps, then after it is finished drawing with that layer it will close it. In this way we are sure to release all resources used by the RasterSource. When implementing this virtual method consider opening files for file based source, connecting to databases in the database based sources and so on. You will get a chance to close these in the Close method of the ImageSource.

Return Value
Parameters

CloseCore()

This method opens the RasterSource so that it is initialized and ready to use.

Remarks

This protected virtual method is called from the concreate public method Close. The close method plays an important role in the life cycle of the RasterSource. It may be called after drawing to release any memory and other resources that were allocated since the Open method was called. It is recommended that if you override this method that you take the following things into account. This method may be called multiple times so we suggest you write the so that that a call to a closed FeatureSource is ignored and does not generate an error. We also suggest that in the close you free all resources that have been opened. Remember that the object will not be destroyed but will be re-opened possibly in the near future.

Return Value
Parameters

GetImageCore(RectangleShape,Int32,Int32)

This method returns an image based on the worldExtent and image width and height.

Remarks

This method is responsible for returning the image based on the parameters passed in. As the core version of this method is abstract you will need to override it when creating our own RasterSource.

Return Value
Parameters

GetBoundingBoxCore()

This method returns the bounding box of the RasterSource.

Remarks

This method returns the bounding box of the RasterSource.

Return Value
Parameters

OnOpeningRasterSource(OpeningRasterSourceEventArgs)

N/A

Remarks

N/A

Return Value
Parameters

OnOpenedRasterSource(OpenedRasterSourceEventArgs)

N/A

Remarks

N/A

Return Value
Parameters

OnClosingRasterSource(ClosingRasterSourceEventArgs)

N/A

Remarks

N/A

Return Value
Parameters

OnClosedRasterSource(ClosedRasterSourceEventArgs)

N/A

Remarks

N/A

Return Value
Parameters

CloneDeepCore()

N/A

Remarks

N/A

Return Value
Parameters

GetProjectionTextCore()

N/A

Remarks

N/A

Return Value
Parameters

Finalize()

N/A

Remarks

N/A

Return Value
Parameters

MemberwiseClone()

N/A

Remarks

N/A

Return Value
Parameters

Public Properties

PathFilename

This property gets and sets the path and filename of the TIFF file you want to use.

Remarks

None.

Return Value

Projection

N/A

Remarks

N/A

Return Value

Transparency

N/A

Remarks

N/A

Return Value

BlueTranslation

N/A

Remarks

N/A

Return Value

RedTranslation

N/A

Remarks

N/A

Return Value

GreenTranslation

N/A

Remarks

N/A

Return Value

IsNegative

N/A

Remarks

N/A

Return Value

IsGrayscale

N/A

Remarks

N/A

Return Value

IsOpen

N/A

Remarks

N/A

Return Value

HasProjectionText

N/A

Remarks

N/A

Return Value

Protected Properties

HasProjectionTextCore

N/A

Remarks

N/A

Return Value

Public Events

OpeningRasterSource N/A

Remarks

N/A

Event Arguments:OpeningRasterSourceEventArgs

OpenedRasterSource N/A

Remarks

N/A

Event Arguments:OpenedRasterSourceEventArgs

ClosingRasterSource N/A

Remarks

N/A

Event Arguments:ClosingRasterSourceEventArgs

ClosedRasterSource N/A

Remarks

N/A

Event Arguments:ClosedRasterSourceEventArgs