ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin
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.
This class is the base class for all types of WMS Plug-ins. The WmsLayerPlugin class is where all other types of WMS Plug-ins are inherited from. It provides the base set of functionality. As it is abstract, there are a number of methods you need to implement. The first one is GetMapConfigurationCore. In this method, you are responsible for generating a MapConfiguration which includes layers collection and TileCache object you will use. The other two required methods are GetProjectionCore and GetBoundingBoxCore. These get projection string and the BoundingBox for your WMS Plug-in. Another required method is GetNameCore which returns the layer name which will used in the GetMap WMS operation.
Inheritance Hierarchy
Members Summary
Public Constructors
Protected Constructors
WmsLayerPlugin()
Parameters
Public Methods
GetTitle()
Return Value
Parameters
GetName()
Return Value
Parameters
GetProjections()
Return Value
Parameters
GetStyles()
Return Value
Parameters
GetGeographyUnit(String)
Return Value
Parameters
GetMapConfiguration(String,String)
This method returns the MapConfiguration object which includes TileCache and Layers collection backed by a group of layers depend on the style, projection. This method is only called once per style and crs. In it you should create your layers and add them to the MapConfiguration. If you want to use tile caching you can also specify that in the MapConfiguration under the TileCache property. If you have setup multiple styles or projections this method will get called for each unique combination
Return Value
Parameters
GetBoundingBox(String)
Return Value
Parameters
GetCapabilities()
Return Value
Parameters
GetMap(GetMapRequest,MapConfiguration,HttpContext)
Return Value
Type:Bitmap
Description:N/A
Parameters
context
Type:HttpContext
Description:A System.Web.HttpContext object that provides references to the intrinsic server objects (for example: Request, Response, Session, and Server) used to service HTTP requests.
GetFeatureInfo(GetFeatureInfoRequest,MapConfiguration,HttpContext)
This abstract method is called from the concrete public method GetFeatureInfo. The canonical use case for GetFeatureInfo is that a user sees the response of a GetMap request and chooses a point on that map for which to obtain more information. The basic operation provides the ability for a client to specify which pixel is being asked about, which layer(s) should be investigated, and what format the information should be returned in.
Return Value
Parameters
context
Type:HttpContext
Description:A System.Web.HttpContext object that provides references to the intrinsic server objects (for example: Request, Response, Session, and Server) used to service HTTP requests.
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
GetTitleCore()
Return Value
Parameters
GetNameCore()
Return Value
Parameters
GetProjectionsCore()
Return Value
Parameters
GetStylesCore()
Return Value
Parameters
GetGeographyUnitCore(String)
Return Value
Parameters
GetMapConfigurationCore(String,String)
This method returns the MapConfiguration object which includes TileCache and Layers collection backed by a group of layers depend on the style, projection. This method is only called once per style and crs. In it you should create your layers and add them to the MapConfiguration. If you want to use tile caching you can also specify that in the MapConfiguration under the TileCache property. If you have setup multiple styles or projections this method will get called for each unique combination
Return Value
Parameters
GetBoundingBoxCore(String)
Return Value
Parameters
GetCapabilitiesCore()
Return Value
Parameters
GetMapCore(GetMapRequest,MapConfiguration,HttpContext)
Return Value
Type:Bitmap
Description:N/A
Parameters
context
Type:HttpContext
Description:A System.Web.HttpContext object that provides references to the intrinsic server objects (for example: Request, Response, Session, and Server) used to service HTTP requests.
GetFeatureInfoCore(GetFeatureInfoRequest,MapConfiguration,HttpContext)
This abstract method is called from the concrete public method GetFeatureInfo. The canonical use case for GetFeatureInfo is that a user sees the response of a GetMap request and chooses a point on that map for which to obtain more information. The basic operation provides the ability for a client to specify which pixel is being asked about, which layer(s) should be investigated, and what format the information should be returned in.
Return Value
Parameters
context
Type:HttpContext
Description:A System.Web.HttpContext object that provides references to the intrinsic server objects (for example: Request, Response, Session, and Server) used to service HTTP requests.
Finalize()
Return Value
Type:Void
Description:N/A
Parameters
MemberwiseClone()
Return Value
Type:Object
Description:N/A
Parameters
Public Properties
WmsQueryMode
This enumeration specifies whether a WmsLayerPlugin support GetFeatureInfo WMS operation or not. If it doesn't support GetFeatureInfo operation, and it will throw an Service Exception XML.
Return Value
JpegQuality
Gets or sets the Jpeg quality , this property only take effects when setting the ImageFormat to Jpeg.
Return Value
BrowerCacheExpiration
Represents the number of hours before the browser cache expires.
Return Value
Protected Properties
RRQ=
N/A
Return Value
Public Events