Table of Contents

Class GeoImageLayer

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll

This layer simply wraps a GeoImage. The internal private geoImage is created in Open() using in the ImagePathFilename

public class GeoImageLayer : Layer
Inheritance
GeoImageLayer
Inherited Members

Constructors

GeoImageLayer()

This is a constructor for the class. If you use this constructor, you should set the properties you need manually.

public GeoImageLayer()

Remarks

If you use this constructor, you should set the properties you need manually.

GeoImageLayer(string)

public GeoImageLayer(string imagePathFilename)

Parameters

imagePathFilename string

Properties

CenterPoint

The center point in World Coordinate of the image

public PointShape CenterPoint { get; set; }

Property Value

PointShape

ImagePathFilename

public string ImagePathFilename { get; set; }

Property Value

string

LowerThreshold

This property gets and sets the lower threshold in the scale at which to display the image.

public double LowerThreshold { get; set; }

Property Value

double

This property gets the lower threshold in the scale at which to display the image.

Remarks

Below the lower threshold in scale, the image will not be displayed. This, in conjunction with the UpperThreshold property, allows you to create a band in which it is suitable to display the image source. By default, the upper threshold is double.max and lower threshold is double.min. This means the image should always display.

Scale

The native scale of the image

public double Scale { get; set; }

Property Value

double

UpperThreshold

This property gets and sets the upper threshold in the scale at which to display the image.

public double UpperThreshold { get; set; }

Property Value

double

This property gets the upper threshold in the scale at which to display the image.

Remarks

Above the upper threshold in scale, the image will not be displayed. This, in conjunction with the LowerThreshold property, allows you to create a band in which it is suitable to display the image source. By default, the upper threshold is double.max and lower threshold is double.min. This means the image should always display.

Methods

CloseCore()

This method close the internal GeoImage

protected override void CloseCore()

DrawCore(GeoCanvas, Collection<SimpleCandidate>)

This method will draw the internal GeoImage on the canvas if the current MapScale is within the UpperThreshold/LowerThreshold provided.

protected override void DrawCore(GeoCanvas canvas, Collection<SimpleCandidate> labelsInAllLayers)

Parameters

canvas GeoCanvas

This parameter is the GeoCanvas used to Draw the RasterLayer.

labelsInAllLayers Collection<SimpleCandidate>

This parameter is not used for ImageLayers.

GetBoundingBoxCore()

This method is not implemented in this class

protected override RectangleShape GetBoundingBoxCore()

Returns

RectangleShape

Exceptions

NotImplementedException

IsDrawingNeededCore(double)

protected override bool IsDrawingNeededCore(double currentScale)

Parameters

currentScale double

Returns

bool

OpenCore()

This method initializes the internal GeoImage using the ImagePathFilename.

protected override void OpenCore()