ThinkGeo.MapSuite.Core.WmsRasterSource
Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.
Represents an object that encapsulates a Web Map Service (WMS) source.
Inheritance Hierarchy
Members Summary
Public Constructors
WmsRasterSource()
Parameters
WmsRasterSource(Uri)
Parameters
uri
Type:Uri
Description:
URI of the WMS server.
WmsRasterSource(Uri,WebProxy)
Parameters
uri
Type:Uri
Description:
URI of the WMS server.
Protected Constructors
Public Methods
GetServerLayerNames()
Return Value
Parameters
GetServerStyleNames()
Return Value
Parameters
GetServerOutputFormats()
Return Value
Parameters
GetServerCrss()
Return Value
Type:Collection<String>
Description:N/A
Parameters
GetServerExceptionFormats()
Return Value
Parameters
GetServiceVersion()
This API gets the WMS server version of the service.
Return Value
Parameters
GetServerFeatureInfoFormats()
This API gets the WMS server FeatureInfo formats of the service.
Return Value
Type:Collection<String>
Description:This
API returns the FeatureInfo formats supported on the server-side.
Parameters
GetServerCapabilitiesXml()
This API gets the GetCapabilites document of the service.
Return Value
Type:String
Description:This
API returns the GetCapabilites document of the service.
Parameters
GetRequestUrl(RectangleShape,Int32,Int32)
Get the request URL from the client to the WMS.
Return Value
Type:String
Description:The request
URL from the client to the WMS.
Parameters
GetFeatureInfo(ScreenPointF)
Return Value
Type:Dictionary<String,Collection<
Feature»
Description:N/A
Parameters
GetFeatureInfo(ScreenPointF,String)
Return Value
Type:Dictionary<String,Collection<
Feature»
Description:N/A
Parameters
infoFormat
Type:String
Description:N/A
GetFeatureInfo(ScreenPointF,Int32)
Return Value
Type:Dictionary<String,Collection<
Feature»
Description:N/A
Parameters
maxFeatures
Type:Int32
Description:N/A
GetFeatureInfo(ScreenPointF,String,Int32)
Return Value
Type:Dictionary<String,Collection<
Feature»
Description:N/A
Parameters
infoFormat
Type:String
Description:N/A
maxFeatures
Type:Int32
Description:N/A
CloneDeep()
Return Value
Parameters
GetWorldFileText()
Return Value
Type:String
Description:N/A
Parameters
GetImageWidth()
Return Value
Type:Int32
Description:N/A
Parameters
GetImageHeight()
Return Value
Type:Int32
Description:N/A
Parameters
GetHorizontalResolution()
Return Value
Type:Single
Description:N/A
Parameters
GetVerticalResolution()
Return Value
Type:Single
Description:N/A
Parameters
GetBoundingBox()
Return Value
Parameters
GetProjectionText()
Return Value
Type:String
Description:N/A
Parameters
Open()
Return Value
Type:Void
Description:N/A
Parameters
Close()
Return Value
Type:Void
Description:N/A
Parameters
GetImage(RectangleShape,Int32,Int32)
Return Value
Parameters
canvasWidth
Type:Int32
Description:N/A
canvasHeight
Type:Int32
Description:N/A
ToString()
Return Value
Type:String
Description:N/A
Parameters
Equals(Object)
Return Value
Type:Boolean
Description:N/A
Parameters
obj
Type:Object
Description:N/A
GetHashCode()
Return Value
Type:Int32
Description:N/A
Parameters
GetType()
Return Value
Type:Type
Description:N/A
Parameters
Protected Methods
SendWebRequest(WebRequest)
Return Value
Type:WebResponse
Description:N/A
Parameters
webRequest
Type:WebRequest
Description:N/A
SendWebRequestCore(WebRequest)
Return Value
Type:WebResponse
Description:N/A
Parameters
webRequest
Type:WebRequest
Description:N/A
OnSendingWebRequest(SendingWebRequestEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnSentWebRequest(SentWebRequestEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
GetRequestUrlCore(RectangleShape,Int32,Int32)
Return Value
Type:String
Description:N/A
Parameters
canvasWidth
Type:Int32
Description:N/A
canvasHeight
Type:Int32
Description:N/A
GetImageWidthCore()
Return Value
Parameters
GetImageHeightCore()
Return Value
Parameters
OpenCore()
This protected virtual method is called from the concrete public method Open. The Open method plays an important role, as it is responsible for initializing the RasterSource. Most methods on the RasterSource will throw an exception if the state of the RasterSource is not opened. When the map draws each layer, it will open the RasterSource as one of its first steps; then, after it is finished drawing with that layer, it will close it. In this way, we are sure to release all resources used by the RasterSource. When implementing this abstract method, consider opening files for file-based sources, connecting to databases in the database-based sources and so on. You will get a chance to close these in the Close method of the RasterSource.
Return Value
Type:Void
Description:None
Parameters
CloseCore()
Return Value
Type:Void
Description:N/A
Parameters
GetBoundingBoxCore()
Return Value
Parameters
GetImageCore(RectangleShape,Int32,Int32)
Return Value
Parameters
BuildWmsGetFeatureInfoUri(ScreenPointF,String,Int32)
Return Value
Parameters
infoFormat
Type:String
Description:N/A
maxFeatures
Type:Int32
Description:N/A
GetFeatureInfoCore(ScreenPointF,String,Int32)
Return Value
Type:Dictionary<String,Collection<
Feature»
Description:N/A
Parameters
infoFormat
Type:String
Description:N/A
maxFeatures
Type:Int32
Description:N/A
HandleResponse(WebRequest)
Return Value
Type:Dictionary<String,Collection<
Feature»
Description:N/A
Parameters
reqeust
Type:WebRequest
Description:N/A
HandleResponseCore(WebRequest)
Return Value
Type:Dictionary<String,Collection<
Feature»
Description:N/A
Parameters
request
Type:WebRequest
Description:N/A
HandleXmlInfoFormatResponse(XmlDocument)
Return Value
Type:Dictionary<String,Collection<
Feature»
Description:N/A
Parameters
xmlDocument
Type:XmlDocument
Description:N/A
HandleXmlInfoFormatResponseCore(XmlDocument)
Return Value
Type:Dictionary<String,Collection<
Feature»
Description:N/A
Parameters
xmlDocument
Type:XmlDocument
Description:N/A
OnOpeningRasterSource(OpeningRasterSourceEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnOpenedRasterSource(OpenedRasterSourceEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnClosingRasterSource(ClosingRasterSourceEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnClosedRasterSource(ClosedRasterSourceEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
CloneDeepCore()
Return Value
Parameters
GetProjectionTextCore()
Return Value
Type:String
Description:N/A
Parameters
GetWrappingImageLeft(RectangleShape,Double,Double,RectangleShape)
Return Value
Parameters
screenWidth
Type:Double
Description:N/A
screenHeight
Type:Double
Description:N/A
GetWrappingImageRight(RectangleShape,Double,Double,RectangleShape)
Return Value
Parameters
screenWidth
Type:Double
Description:N/A
screenHeight
Type:Double
Description:N/A
Finalize()
Return Value
Type:Void
Description:N/A
Parameters
MemberwiseClone()
Return Value
Type:Object
Description:N/A
Parameters
Public Properties
ActiveLayerNames
This property allows the active layers requested from the client to be shown on the map.
When requesting a map, a client may specify the layers to be shown on the map.
Return Value
ActiveStyleNames
This property allows the active styles requested from the client to be shown on the map.
When requesting a map, a client may specify the styles to be shown on the map.
Return Value
Uri
This property specifies the URI of the WMS server.
Return Value
IsTransparent
This property gets or sets whether the response map image's background color is transparent or not.
Return Value
OutputFormat
This property gets or sets the desired output format for the map being requested from the WMS.
When requesting a map, a client may specify the output format in which to show the map. Formats are specified as MIME types such as “image/gif” or “image/png”.
Return Value
Proxy
This property gets or sets the proxy used for requesting a Web Response.
Return Value
TimeoutInSecond
This property specifies the timeout of the web request in seconds. The default timeout value is 20 seconds.
Return Value
Crs
This property gets or sets the projected or geographic coordinate reference system to be used.
Return Value
Credentials
This property gets or sets the base authentication interface for retrieving credentials for Web Client authentication.
Return Value
Exceptions
This property indicates the format in which the client wishes to be notified of service exceptions.
Upon receiving a request that is invalid according to the OGC standard, the server shall issue a service exception report. The service report is meant to describe to the client application or its human user the reason(s) that the request is invalid.
Return Value
Parameters
This property specifies a dictionary used to update the request sent from the client to the WMS server.
Return Value
AxisOrder
N/A
Return Value
CapabilitesCacheTimeout
N/A
Return Value
Projection
N/A
Return Value
Transparency
N/A
Return Value
BlueTranslation
N/A
Return Value
RedTranslation
N/A
Return Value
GreenTranslation
N/A
Return Value
IsNegative
N/A
Return Value
IsGrayscale
N/A
Return Value
IsOpen
N/A
Return Value
HasProjectionText
N/A
Return Value
Protected Properties
HasProjectionTextCore
N/A
Return Value
Public Events
SendingWebRequest
This event is called before sending the reqeust for raster image.
This event is called before sending the reqeust for raster image. It is typical that user want to get the url of reqeust and modify it according to their requirements. For example, user could create a signiture for it, and verify it on the server side.
Event Arguments:SendingWebRequestEventArgs
SentWebRequest
This event is called after sent the request for raster image and the HttpWebResponse has come back.