Table of Contents

Class GeoTiffRasterLayer

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll

This class represents a TIFF image to be drawn on the map.

public class GeoTiffRasterLayer : RasterLayer
Inheritance
GeoTiffRasterLayer
Inherited Members

Remarks

The TiffRasterLayer represents a TIFF file for drawing on the map. Simply provide the path and filename for the TIFF file, add the layer to the MapEngine class and start drawing. You can also draw the layer manually outside of the MapEngine.

Constructors

GeoTiffRasterLayer()

This is a constructor for the class.

public GeoTiffRasterLayer()

Remarks

If you use this constructor then, you need to set the PathFilename property manually before using the layer.

GeoTiffRasterLayer(string)

This is a constructor for the class.

public GeoTiffRasterLayer(string imagePathFilename)

Parameters

imagePathFilename string

This parameter is the path and filename of the TIFF file you want to use.

Remarks

This constructor gets the layer ready to use.

GeoTiffRasterLayer(string, string)

This is a constructor for the class.

public GeoTiffRasterLayer(string imagePathFilename, string worldfilePathFilename)

Parameters

imagePathFilename string

This parameter is the path and filename of the TIFF file you want to use.

worldfilePathFilename string

This parameter is the world file path and filename for the TIFF file you want to use.

Remarks

This constructor gets the layer ready to use.

GeoTiffRasterLayer(string, RectangleShape)

This is a constructor for the class.

public GeoTiffRasterLayer(string imagePathFilename, RectangleShape imageWorldExtent)

Parameters

imagePathFilename string

This parameter is the path and filename of the TIFF file you want to use.

imageWorldExtent RectangleShape

This parameter is the image extent of the TIFF file you want to use.

Remarks

This constructor gets the layer ready to use.

Properties

DrawingQuality

Gets or sets the drawing quality.

public DrawingQuality DrawingQuality { get; set; }

Property Value

DrawingQuality

The drawing quality.

HasBoundingBox

This property checks to see if a Layer has a BoundingBox or not. If it has no BoundingBox, it will throw an exception when you call the GetBoundingBox() and GetFullExtent() APIs. In GeoTiffRasterLayer, we override this API and mark it as true.

public override bool HasBoundingBox { get; }

Property Value

bool

Remarks

The default implementation in the base class returns false.

ImagePathFilename

Gets or sets the image path filename.

public string ImagePathFilename { get; set; }

Property Value

string

The image path filename.

Methods

DrawCore(GeoCanvas, Collection<SimpleCandidate>)

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

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

Parameters

canvas GeoCanvas
labelsInAllLayers Collection<SimpleCandidate>

Remarks

This should be the complete path and filename for a TIFF file.