C# Class SharpMap.Map

Inheritance: IDisposable
Afficher le fichier Open project: jumpinjackie/fdotoolbox Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes the map object

FindLayer ( string layername ) : IEnumerable

Returns an enumerable for all layers containing the search parameter in the LayerName property

GetExtents ( ) : SharpMap.Geometries.BoundingBox

Gets the extents of the map based on the extents of all the layers in the layers collection

GetLayerByName ( string name ) : SharpMap.Layers.ILayer

Returns a layer by its name

GetMap ( ) : System.Drawing.Image

Renders the map to an image

ImageToWorld ( System p ) : SharpMap.Geometries.Point

Converts a point from image coordinates to world coordinates based on the current zoom, center and mapsize.

Map ( ) : System

Initializes a new map

Map ( System size ) : System

Initializes a new map

WorldToImage ( SharpMap p ) : System.Drawing.PointF

Converts a point from world coordinates to image coordinates based on the current zoom, center and mapsize.

ZoomToBox ( SharpMap bbox ) : void

Zooms the map to fit a bounding box

NOTE: If the aspect ratio of the box and the aspect ratio of the mapsize isn't the same, the resulting map-envelope will be adjusted so that it contains the bounding box, thus making the resulting envelope larger!

ZoomToExtents ( ) : void

Zooms to the extents of all layers

Method Details

Dispose() public méthode

Disposes the map object
public Dispose ( ) : void
Résultat void

FindLayer() public méthode

Returns an enumerable for all layers containing the search parameter in the LayerName property
public FindLayer ( string layername ) : IEnumerable
layername string Search parameter
Résultat IEnumerable

GetExtents() public méthode

Gets the extents of the map based on the extents of all the layers in the layers collection
public GetExtents ( ) : SharpMap.Geometries.BoundingBox
Résultat SharpMap.Geometries.BoundingBox

GetLayerByName() public méthode

Returns a layer by its name
public GetLayerByName ( string name ) : SharpMap.Layers.ILayer
name string Name of layer
Résultat SharpMap.Layers.ILayer

GetMap() public méthode

Renders the map to an image
public GetMap ( ) : System.Drawing.Image
Résultat System.Drawing.Image

ImageToWorld() public méthode

Converts a point from image coordinates to world coordinates based on the current zoom, center and mapsize.
public ImageToWorld ( System p ) : SharpMap.Geometries.Point
p System Point in image coordinates
Résultat SharpMap.Geometries.Point

Map() public méthode

Initializes a new map
public Map ( ) : System
Résultat System

Map() public méthode

Initializes a new map
public Map ( System size ) : System
size System Size of map in pixels
Résultat System

WorldToImage() public méthode

Converts a point from world coordinates to image coordinates based on the current zoom, center and mapsize.
public WorldToImage ( SharpMap p ) : System.Drawing.PointF
p SharpMap Point in world coordinates
Résultat System.Drawing.PointF

ZoomToBox() public méthode

Zooms the map to fit a bounding box
NOTE: If the aspect ratio of the box and the aspect ratio of the mapsize isn't the same, the resulting map-envelope will be adjusted so that it contains the bounding box, thus making the resulting envelope larger!
public ZoomToBox ( SharpMap bbox ) : void
bbox SharpMap
Résultat void

ZoomToExtents() public méthode

Zooms to the extents of all layers
public ZoomToExtents ( ) : void
Résultat void