Table of Contents

ThinkGeo.MapSuite.Core.RasterSource

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.

The abstract class from which all raster sources inherit. Raster sources represent raster data that can be integrated into Map Suite.

Inheritance Hierarchy

Members Summary

Public Constructors

Protected Constructors

RasterSource()

Remarks
Parameters

Public Methods

CloneDeep()

Remarks
Return Value
Parameters

GetWorldFileText()

Remarks
Return Value
Parameters

GetImageWidth()

Remarks
Return Value
Parameters

GetImageHeight()

Remarks
Return Value
Parameters

GetHorizontalResolution()

Remarks
Return Value
Parameters

GetVerticalResolution()

Remarks
Return Value
Parameters

GetBoundingBox()

Remarks
Return Value
Parameters

GetProjectionText()

Remarks
Return Value
Parameters

Open()

Remarks
Return Value
Parameters

Close()

Remarks
Return Value
Parameters

GetImage(RectangleShape,Int32,Int32)

Remarks
Return Value
Parameters

ToString()

Remarks
Return Value
Parameters

Equals(Object)

Remarks
Return Value
Parameters

GetHashCode()

Remarks
Return Value
Parameters

GetType()

Remarks
Return Value
Parameters

GenerateWorldFileText(RectangleShape,Int32,Int32)

Remarks
Return Value
Parameters

Protected Methods

OnOpeningRasterSource(OpeningRasterSourceEventArgs)

Remarks
Return Value
Parameters

OnOpenedRasterSource(OpenedRasterSourceEventArgs)

Remarks
Return Value
Parameters

OnClosingRasterSource(ClosingRasterSourceEventArgs)

Remarks
Return Value
Parameters

OnClosedRasterSource(ClosedRasterSourceEventArgs)

Remarks
Return Value
Parameters

CloneDeepCore()

Remarks
Return Value
Parameters

GetImageWidthCore()

Remarks
Return Value
Parameters

GetImageHeightCore()

Remarks
Return Value
Parameters

GetBoundingBoxCore()

Remarks
Return Value
Parameters

GetProjectionTextCore()

Remarks
Return Value
Parameters

OpenCore()

Remarks
Return Value
Parameters

CloseCore()

Remarks
Return Value
Parameters

GetWrappingImageLeft(RectangleShape,Double,Double,RectangleShape)

Remarks
Return Value
Parameters

GetWrappingImageRight(RectangleShape,Double,Double,RectangleShape)

Remarks
Return Value
Parameters

GetImageCore(RectangleShape,Int32,Int32)

Remarks
Return Value
Parameters

Finalize()

Remarks
Return Value
Parameters

MemberwiseClone()

Remarks
Return Value
Parameters

Public Properties

Projection

N/A

Remarks

N/A

Return Value

Transparency

This property gets and sets the amount of transparency to apply to the image.

Remarks

None

Return Value

BlueTranslation

This property gets and sets the amount of blue to apply to the image.

Remarks

None

Return Value

RedTranslation

This property gets and sets the amount of red to apply to the image.

Remarks

None

Return Value

GreenTranslation

This property gets and sets the amount of green to apply to the image.

Remarks

None

Return Value

IsNegative

This property gets and sets whether the image should be converted to negative (inverse colors).

Remarks

None

Return Value

IsGrayscale

This property gets and sets if the image should be converted to grayscale.

Remarks

None

Return Value

IsOpen

This property returns true if the RasterSource is open and false if it is not.

Remarks

Various methods on the RasterSource require that it be in an open state. If one of those methods is called when the state is not open, the method will throw an exception. To enter the open state, you must call the RasterSource's Open method. The method will raise an exception if the current RasterSource is already open.

Return Value

HasProjectionText

This property returns true if the RasterSource has projection text, false if not.

Remarks

Before you call GetProjectionText method, you should check this property to ensure that your RasterSource has projection information. It will throw an exception if there is no projection information in the RasterSource.

Return Value

Protected Properties

HasProjectionTextCore

This property returns true if the RasterSource has projection text, false if not.

Remarks

This protected virtual method is called from the concrete public property HasProjectionText. The default implementation for this method returns false. So if you inherit RasterSource, please ensure that you override this virtual property to return the correct projection status of your RasterSource.We will check the HasProjectionText status before you call the GetProjectionText method. It will throw an exception if the HasProjectionText property returns false.

Return Value

Public Events

OpeningRasterSource This event is called before the opening of the RasterSource.

Remarks

This event is called before the opening of the RasterSource. Technically, this event is called after the calling of the Open method on the RasterSource, but before the protected OpenCore method. It is typical that the RasterSource may be opened and closed may times during the life cycle of your application. The type of control the MapEngine is embedded in will dictate how often this happens. For example, in the case of the Web Edition, each time a RasterSource is in the Ajax or Post Back part of the page cycle, it will close the RasterSource before returning back to the client. This is to conserve resources, as the web is a connection-less environment. In the case of the Desktop Edition, we can keep the RasterSource open, knowing that we can maintain a persistent connection.

Event Arguments:OpeningRasterSourceEventArgs

OpenedRasterSource This event is called after the opening of the RasterSource.

Remarks

This event is called after the opening of the RasterSource. Technically, this event is called after the calling of the Open method on the RasterSource and after the protected OpenCore method is called. It is typical that the RasterSource may be opened and closed may times during the life cycle of your application. The type of control the MapEngine is embedded in will dictate how often this happens. For example, in the case of the Web Edition, each time a RasterSource is in the Ajax or Post Back part of the page cycle, it will close the RasterSource before returning back to the client. This is to conserve resources, as the web is a connection-less environment. In the case of the Desktop Edition, we can keep the RasterSource open, knowing that we can maintain a persistent connection.

Event Arguments:OpenedRasterSourceEventArgs

ClosingRasterSource This event is called before the closing of the RasterSource.

Remarks

This event is called before the closing of the RasterSource. Technically, this event is called after the calling of the Close method on the RasterSource, but before the protected CloseCore method. It is typical that the RasterSource may be opened and closed may times during the life cycle of your application. The type of control the MapEngine is embedded in will dictate how often this happens. For example, in the case of the Web Edition, each time a RasterSource is in the Ajax or Post Back part of the page cycle, it will close the RasterSource before returning back to the client. This is to conserve resources, as the web is a connection-less environment. In the case of the Desktop Edition, we can keep the RasterSource open, knowing that we can maintain a persistent connection.

Event Arguments:ClosingRasterSourceEventArgs

ClosedRasterSource This event is called after the closing of the RasterSource.

Remarks

This event is called after the closing of the RasterSource. Technically, this event is called after the calling of the Close method on the RasterSource and after the protected CloseCore method. It is typical that the RasterSource may be opened and closed may times during the life cycle of your application. The type of control the MapEngine is embedded in will dictate how often this happens. For example, in the case of the Web Edition, each time a RasterSource is in the Ajax or Post Back part of the page cycle, it will close the RasterSource before returning back to the client. This is to conserve resources, as the web is a connection-less environment. In the case of the Desktop Edition, we can keep the RasterSource open, knowing that we can maintain a persistent connection.

Event Arguments:ClosedRasterSourceEventArgs