C# 클래스 SharpMap.Map

상속: IDisposable
파일 보기 프로젝트 열기: jumpinjackie/fdotoolbox 1 사용 예제들

공개 메소드들

메소드 설명
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