C# Класс SharpMap.Map

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

Dispose() публичный Метод

Disposes the map object
public Dispose ( ) : void
Результат void

FindLayer() публичный Метод

Returns an enumerable for all layers containing the search parameter in the LayerName property
public FindLayer ( string layername ) : IEnumerable
layername string Search parameter
Результат IEnumerable

GetExtents() публичный Метод

Gets the extents of the map based on the extents of all the layers in the layers collection
public GetExtents ( ) : SharpMap.Geometries.BoundingBox
Результат SharpMap.Geometries.BoundingBox

GetLayerByName() публичный Метод

Returns a layer by its name
public GetLayerByName ( string name ) : SharpMap.Layers.ILayer
name string Name of layer
Результат SharpMap.Layers.ILayer

GetMap() публичный Метод

Renders the map to an image
public GetMap ( ) : System.Drawing.Image
Результат System.Drawing.Image

ImageToWorld() публичный Метод

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
Результат SharpMap.Geometries.Point

Map() публичный Метод

Initializes a new map
public Map ( ) : System
Результат System

Map() публичный Метод

Initializes a new map
public Map ( System size ) : System
size System Size of map in pixels
Результат System

WorldToImage() публичный Метод

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
Результат System.Drawing.PointF

ZoomToBox() публичный Метод

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
Результат void

ZoomToExtents() публичный Метод

Zooms to the extents of all layers
public ZoomToExtents ( ) : void
Результат void