C# 클래스 MapAround.Web.MapServerBase

Базова реализация сервера WMxS
상속: IMapServer
파일 보기 프로젝트 열기: gkrsu/maparound.core

보호된 프로퍼티들

프로퍼티 타입 설명
serverType string
version string

공개 메소드들

메소드 설명
GetResponse ( NameValueCollection requestParams, Stream responseOutputStream, string &responseContentType ) : void

Create response

WmsException ( WmsExceptionCode code, string Message, Stream responseOutputStream, string &responseContentType ) : void

Writes an error message into specified stream in compliance to WMS standard.

WmtsException ( WmtsExceptionCode code, string Message, Stream responseOutputStream, string &responseContentType ) : void

Writes an error message into specified stream in compliance to WMTS standard.

보호된 메소드들

메소드 설명
CheckRequestParams ( NameValueCollection requestParams, Stream responseOutputStream, string &responseContentType, BoundingRectangle &originalBbox, int &width, int &height ) : void

Checks and tries to parse special request params for WMxS server WMS: BBOX, WIDTH, HEIGHT, SRS WMTS: TILEMATRIXSET, TILEMATRIX, TILEROW, TILECOL, SRS

GetCapabilities ( NameValueCollection requestParams, Stream responseOutputStream, string &responseContentType ) : void

Запрос GetCapabilities

GetFeatureInfo ( NameValueCollection requestParams, Stream responseOutputStream, string &responseContentType ) : void

Запрос GetFeatureInfo

GetImage ( int width, int height, Color backColor, LayerBase useLayers, BoundingRectangle bboxWithGutters ) : Image

Gets image

GetImageFromChach ( LayerBase layer, byte &titleInfo, BoundingRectangle bboxWithGutters ) : Image

Загрузка данных из кэша

GetJSONFromCache ( LayerBase layer, NameValueCollection requestParams ) : string

Gets a JSON object from a cache

GetVector ( int layerNumber, int width, int height, LayerBase useLayers, BoundingRectangle bboxWithGutters, NameValueCollection requestParams ) : string

Returns a vector of objects

GetVectorInfo ( NameValueCollection requestParams, Stream responseOutputStream, string &responseContentType ) : void

Получение информации о карте в формате json.

MapServerBase ( string Version, string ServiceType, BaseServiceDescription description ) : System

Конструктор.

OnBeforeRenderNewImage ( RenderNewImageEventArgs args ) : void

Вызвать событие BeforeRenderNewImage

OnFeaturesInfoNeeded ( WmsFeaturesInfoNeededEventArgs args ) : void

Вызвать событие FeaturesInfoNeeded

OnPrepareRenderFeatureLayer ( PrepareRenderFeatureLayerArgs args ) : void

Вызвать событие PrepareRenderFeatureLayer

OnUnknownRequest ( WmsUnknownRequestEventArgs args ) : void

Вызвать событие UnknownRequest

ParseBbox ( string bboxStr ) : BoundingRectangle

Чтение BBOX;

RequestAction ( NameValueCollection requestParams, Stream responseOutputStream, string &responseContentType ) : bool

Перенаправляет на обработчик запроса.

SetImageToChach ( LayerBase layer, Image image, byte titleInfo, BoundingRectangle bboxWithGutters ) : void

Сохранения данных в кэш.

SetJSONToCache ( LayerBase layer, string jsonObject, NameValueCollection requestParams ) : void

Sets a JSON object to a cache

TestCommonParams ( NameValueCollection requestParams, Stream responseOutputStream, string &responseContentType ) : bool

Проверка общих параметров запроса.

TestEnvironment ( Stream responseOutputStream, string &responseContentType ) : bool

Проверка настройки окружения.

WriteLayer ( JObject json, FeatureLayer layer, BoundingRectangle bboxWithGutters, BoundingRectangle mapViewBox, double scaleFactor, NameValueCollection requestParams ) : void

Writes information about layers

비공개 메소드들

메소드 설명
CopyImage ( Image bmpLayer, Image bmpWithGutters ) : void
CopyImageClipped ( Image bmp, Image bmpWithGutters, int width, int height ) : void

Копирования картинки с обрезанием.

GetImage ( BoundingRectangle bboxWithGutters, string key ) : Image
MapServerBase ( ) : System
SetImage ( BoundingRectangle bboxWithGutters, Image image, string key ) : void
getEncoderInfo ( string mimeType ) : ImageCodecInfo
getTileString ( BoundingRectangle bbox ) : string

Получение текстового описания области видимости.

메소드 상세

CheckRequestParams() 보호된 추상적인 메소드

Checks and tries to parse special request params for WMxS server WMS: BBOX, WIDTH, HEIGHT, SRS WMTS: TILEMATRIXSET, TILEMATRIX, TILEROW, TILECOL, SRS
protected abstract CheckRequestParams ( NameValueCollection requestParams, Stream responseOutputStream, string &responseContentType, BoundingRectangle &originalBbox, int &width, int &height ) : void
requestParams System.Collections.Specialized.NameValueCollection
responseOutputStream Stream
responseContentType string
originalBbox BoundingRectangle
width int
height int
리턴 void

GetCapabilities() 보호된 추상적인 메소드

Запрос GetCapabilities
protected abstract GetCapabilities ( NameValueCollection requestParams, Stream responseOutputStream, string &responseContentType ) : void
requestParams System.Collections.Specialized.NameValueCollection
responseOutputStream Stream
responseContentType string
리턴 void

GetFeatureInfo() 보호된 추상적인 메소드

Запрос GetFeatureInfo
protected abstract GetFeatureInfo ( NameValueCollection requestParams, Stream responseOutputStream, string &responseContentType ) : void
requestParams System.Collections.Specialized.NameValueCollection
responseOutputStream Stream
responseContentType string
리턴 void

GetImage() 보호된 메소드

Gets image
protected GetImage ( int width, int height, Color backColor, LayerBase useLayers, BoundingRectangle bboxWithGutters ) : Image
width int
height int
backColor Color
useLayers LayerBase
bboxWithGutters BoundingRectangle
리턴 Image

GetImageFromChach() 보호된 메소드

Загрузка данных из кэша
protected GetImageFromChach ( LayerBase layer, byte &titleInfo, BoundingRectangle bboxWithGutters ) : Image
layer LayerBase
titleInfo byte
bboxWithGutters BoundingRectangle
리턴 Image

GetJSONFromCache() 보호된 메소드

Gets a JSON object from a cache
protected GetJSONFromCache ( LayerBase layer, NameValueCollection requestParams ) : string
layer LayerBase
requestParams System.Collections.Specialized.NameValueCollection
리턴 string

GetResponse() 공개 메소드

Create response
public GetResponse ( NameValueCollection requestParams, Stream responseOutputStream, string &responseContentType ) : void
requestParams System.Collections.Specialized.NameValueCollection
responseOutputStream Stream
responseContentType string
리턴 void

GetVector() 보호된 메소드

Returns a vector of objects
protected GetVector ( int layerNumber, int width, int height, LayerBase useLayers, BoundingRectangle bboxWithGutters, NameValueCollection requestParams ) : string
layerNumber int
width int
height int
useLayers LayerBase
bboxWithGutters BoundingRectangle
requestParams System.Collections.Specialized.NameValueCollection
리턴 string

GetVectorInfo() 보호된 메소드

Получение информации о карте в формате json.
protected GetVectorInfo ( NameValueCollection requestParams, Stream responseOutputStream, string &responseContentType ) : void
requestParams System.Collections.Specialized.NameValueCollection
responseOutputStream Stream
responseContentType string
리턴 void

MapServerBase() 보호된 메소드

Конструктор.
protected MapServerBase ( string Version, string ServiceType, BaseServiceDescription description ) : System
Version string Версия.
ServiceType string Тип сервиса.
description MapAround.Web.Wms.BaseServiceDescription Описание сервиса
리턴 System

OnBeforeRenderNewImage() 보호된 메소드

Вызвать событие BeforeRenderNewImage
protected OnBeforeRenderNewImage ( RenderNewImageEventArgs args ) : void
args MapAround.Web.Wms.RenderNewImageEventArgs
리턴 void

OnFeaturesInfoNeeded() 보호된 메소드

Вызвать событие FeaturesInfoNeeded
protected OnFeaturesInfoNeeded ( WmsFeaturesInfoNeededEventArgs args ) : void
args MapAround.Web.Wms.WmsFeaturesInfoNeededEventArgs
리턴 void

OnPrepareRenderFeatureLayer() 보호된 메소드

Вызвать событие PrepareRenderFeatureLayer
protected OnPrepareRenderFeatureLayer ( PrepareRenderFeatureLayerArgs args ) : void
args MapAround.Web.Wms.PrepareRenderFeatureLayerArgs
리턴 void

OnUnknownRequest() 보호된 메소드

Вызвать событие UnknownRequest
protected OnUnknownRequest ( WmsUnknownRequestEventArgs args ) : void
args MapAround.Web.Wms.WmsUnknownRequestEventArgs
리턴 void

ParseBbox() 보호된 정적인 메소드

Чтение BBOX;
protected static ParseBbox ( string bboxStr ) : BoundingRectangle
bboxStr string
리턴 BoundingRectangle

RequestAction() 보호된 메소드

Перенаправляет на обработчик запроса.
protected RequestAction ( NameValueCollection requestParams, Stream responseOutputStream, string &responseContentType ) : bool
requestParams System.Collections.Specialized.NameValueCollection
responseOutputStream Stream
responseContentType string
리턴 bool

SetImageToChach() 보호된 메소드

Сохранения данных в кэш.
protected SetImageToChach ( LayerBase layer, Image image, byte titleInfo, BoundingRectangle bboxWithGutters ) : void
layer LayerBase
image Image
titleInfo byte
bboxWithGutters BoundingRectangle
리턴 void

SetJSONToCache() 보호된 메소드

Sets a JSON object to a cache
protected SetJSONToCache ( LayerBase layer, string jsonObject, NameValueCollection requestParams ) : void
layer LayerBase
jsonObject string
requestParams NameValueCollection
리턴 void

TestCommonParams() 보호된 메소드

Проверка общих параметров запроса.
protected TestCommonParams ( NameValueCollection requestParams, Stream responseOutputStream, string &responseContentType ) : bool
requestParams NameValueCollection
responseOutputStream Stream
responseContentType string
리턴 bool

TestEnvironment() 보호된 메소드

Проверка настройки окружения.
protected TestEnvironment ( Stream responseOutputStream, string &responseContentType ) : bool
responseOutputStream Stream
responseContentType string
리턴 bool

WmsException() 공개 정적인 메소드

Writes an error message into specified stream in compliance to WMS standard.
public static WmsException ( WmsExceptionCode code, string Message, Stream responseOutputStream, string &responseContentType ) : void
code WmsExceptionCode The WMS error code
Message string The error message
responseOutputStream Stream The System.IO.Stream to write the error message
responseContentType string String for mime-type of response
리턴 void

WmtsException() 공개 정적인 메소드

Writes an error message into specified stream in compliance to WMTS standard.
public static WmtsException ( WmtsExceptionCode code, string Message, Stream responseOutputStream, string &responseContentType ) : void
code WmtsExceptionCode The WMTS error code
Message string The error message
responseOutputStream Stream The System.IO.Stream to write the error message
responseContentType string String for mime-type of response
리턴 void

WriteLayer() 보호된 메소드

Writes information about layers
protected WriteLayer ( JObject json, FeatureLayer layer, BoundingRectangle bboxWithGutters, BoundingRectangle mapViewBox, double scaleFactor, NameValueCollection requestParams ) : void
json JObject
layer FeatureLayer
bboxWithGutters BoundingRectangle
mapViewBox BoundingRectangle
scaleFactor double
requestParams NameValueCollection
리턴 void

프로퍼티 상세

serverType 보호되어 있는 프로퍼티

Тип Сервера.
protected string serverType
리턴 string

version 보호되어 있는 프로퍼티

Версия сервера.
protected string version
리턴 string