ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
This is an old revision of the document!
<!– Class –> 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.
*System.Object **ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin
Name | Parameters | DeclaringType | Summary |
---|
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() | This is the default constructor for the WmsLayerPlugin class. |
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() | Object | Object | |
![]() | String | This method returns the bounding box of the Layer. | |
![]() | This method gets the general information about the plug-in itself. | ||
![]() | GetFeatureInfoRequest, MapConfiguration, HttpContext | This method implements the WMS GetFeatureInfo operation and returns feature information depending on the request from client. | |
![]() | String | This method returns the exact map unit (dependent on the crs) in order to support multiple projections. | |
![]() | Object | ||
![]() | GetMapRequest, MapConfiguration, HttpContext | Produce a map, which is defined as either a pictorial image or a set of graphical elements. | |
![]() | 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 | |
![]() | This method returns a single word used for machine-to-machine communication. | ||
![]() | This method returns the projection string collection that are supported. | ||
![]() | This method you need to return the styels that are supported. | ||
![]() | This method returns the human-readable name of the WmsLayerPlugin. | ||
![]() | Object | ||
![]() | Object |
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() | Object | ||
![]() | String | This method returns the bounding box of the Layer. | |
![]() | This method gets the general information about the plug-in itself. | ||
![]() | GetFeatureInfoRequest, MapConfiguration, HttpContext | This method implements the WMS GetFeatureInfo operation and returns feature information depending on the request from client. | |
![]() | String | This method returns the exact map unit (dependent on the crs) in order to support multiple projections. | |
![]() | 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 | |
![]() | GetMapRequest, MapConfiguration, HttpContext | Produce a map, which is defined as either a pictorial image or a set of graphical elements. | |
![]() | This method returns a single word used for machine-to-machine communication. | ||
![]() | This method returns the projection string collection that are supported. | ||
![]() | This method you need to return the styels that are supported. | ||
![]() | This method returns the human-readable name of the WmsLayerPlugin. | ||
![]() | Object |
Name | Return | DeclaringType | Summary |
---|---|---|---|
![]() | TimeSpan | Represents the number of hours before the browser cache expires. | |
![]() | Int16 | Gets or sets the Jpeg quality , this property only take effects when setting the ImageFormat to Jpeg. | |
![]() | 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. |
Name | Return | DeclaringType | Summary |
---|
Name | Event Arguments | DeclaringType | Summary |
---|
This is the default constructor for the WmsLayerPlugin class.
This is the default constructor for the WmsLayerPlugin class.
Name | Type | Description |
---|
Return Type | Description |
---|---|
Boolean<!– System.Boolean –> |
Name | Type | Description |
---|---|---|
obj | Object<!– System.Object –> |
<!– System.Object –> Go Back
This method returns the bounding box of the Layer.
This method returns the bounding box of the Layer.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns the bounding box of the Layer. |
Name | Type | Description |
---|---|---|
crs | String<!– System.String –> | User gets the exact bounding box depend on crs in order to support multiple projections. |
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
This method gets the general information about the plug-in itself.
Return Type | Description |
---|---|
String<!– System.String –> | This method gets the general information about the plug-in itself. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
This method implements the WMS GetFeatureInfo operation and returns feature information depending on the request from client.
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 Type | Description |
---|---|
String<!– System.String –> | This method returns feature information depending on the request from the client. |
Name | Type | Description |
---|---|---|
getFeatureInfoRequest | GetFeatureInfoRequest<!– ThinkGeo.MapSuite.WmsServerEdition.GetFeatureInfoRequest –> | The RequestInfo object corresponding to the QueryString from the client's request. |
cachedMapConfiguration | MapConfiguration<!– ThinkGeo.MapSuite.WmsServerEdition.MapConfiguration –> | MapConfiguration object from HttpContext.Application. |
context | HttpContext<!– System.Web.HttpContext –> | 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. |
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
This method returns the exact map unit (dependent on the crs) in order to support multiple projections.
This method returns the exact map unit (dependent on the crs) in order to support multiple projections.
Return Type | Description |
---|---|
GeographyUnit<!– ThinkGeo.MapSuite.Core.GeographyUnit –> | This method returns the exact map unit (dependent on the crs) in order to support multiple projections. |
Name | Type | Description |
---|---|---|
crs | String<!– System.String –> | The user gets the exact map unit (dependent on the crs) in order to support multiple projections. |
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
Return Type | Description |
---|---|
Int32<!– System.Int32 –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
Produce a map, which is defined as either a pictorial image or a set of graphical elements.
Return Type | Description |
---|---|
Bitmap<!– System.Drawing.Bitmap –> |
Name | Type | Description |
---|---|---|
getMapRequest | GetMapRequest<!– ThinkGeo.MapSuite.WmsServerEdition.GetMapRequest –> | The RequestInfo object corresponding to the QueryString from the client's request. |
cachedMapConfiguration | MapConfiguration<!– ThinkGeo.MapSuite.WmsServerEdition.MapConfiguration –> | MapConfiguration object from HttpContext.Application. |
context | HttpContext<!– System.Web.HttpContext –> | 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. |
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
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 Type | Description |
---|---|
MapConfiguration<!– ThinkGeo.MapSuite.WmsServerEdition.MapConfiguration –> | Return the MapConfiguration object which represents a layer backed by a group of layers depend on the style. |
Name | Type | Description |
---|---|---|
style | String<!– System.String –> | The style parameter string. |
crs | String<!– System.String –> | The projectin parameter string. |
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
This method returns a single word used for machine-to-machine communication.
This method is the concrete wrapper for the abstract method GetNameCore. It returns returns a single word used for machine-to-machine communication.
Return Type | Description |
---|---|
String<!– System.String –> | This method returns a single word used for machine-to-machine communication. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
This method returns the projection string collection that are supported.
This method returns the projection string collection that are supported.
Return Type | Description |
---|---|
Collection<String><!– System.Collections.ObjectModel.Collection{System.String} –> | This method returns the projection string collection that are supported. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
This method you need to return the styels that are supported.
Return Type | Description |
---|---|
Collection<WmsLayerStyle><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WmsServerEdition.WmsLayerStyle} –> | This method you need to return the styels that are supported. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
This method returns the human-readable name of the WmsLayerPlugin.
This method is the concrete wrapper for the virtual method GetTitleCore. It returns the human-readable name of the WmsLayerPlugin.
Return Type | Description |
---|---|
String<!– System.String –> | This method returns the human-readable name of the WmsLayerPlugin. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
Return Type | Description |
---|---|
Type<!– System.Type –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
Return Type | Description |
---|---|
String<!– System.String –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
This method returns the bounding box of the Layer.
This method returns the bounding box of the Layer.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns the bounding box of the Layer. |
Name | Type | Description |
---|---|---|
crs | String<!– System.String –> | User gets the exact bounding box depend on crs in order to support multiple projections. |
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
This method gets the general information about the plug-in itself.
Return Type | Description |
---|---|
String<!– System.String –> | This method gets the general information about the plug-in itself. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
This method implements the WMS GetFeatureInfo operation and returns feature information depending on the request from client.
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 Type | Description |
---|---|
String<!– System.String –> | This method returns feature information depending on the request from the client. |
Name | Type | Description |
---|---|---|
getFeatureInfoRequest | GetFeatureInfoRequest<!– ThinkGeo.MapSuite.WmsServerEdition.GetFeatureInfoRequest –> | The RequestInfo object corresponding to the QueryString from the client's request. |
cachedMapConfiguration | MapConfiguration<!– ThinkGeo.MapSuite.WmsServerEdition.MapConfiguration –> | MapConfiguration object from HttpContext.Application. |
context | HttpContext<!– System.Web.HttpContext –> | 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. |
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
This method returns the exact map unit (dependent on the crs) in order to support multiple projections.
This method returns the exact map unit (dependent on the crs) in order to support multiple projections.
Return Type | Description |
---|---|
GeographyUnit<!– ThinkGeo.MapSuite.Core.GeographyUnit –> | This method returns the exact map unit (dependent on the crs) in order to support multiple projections. |
Name | Type | Description |
---|---|---|
crs | String<!– System.String –> | The user gets the exact map unit (dependent on the crs) in order to support multiple projections. |
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
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 Type | Description |
---|---|
MapConfiguration<!– ThinkGeo.MapSuite.WmsServerEdition.MapConfiguration –> | Return the MapConfiguration object which represents a layer backed by a group of layers depend on the style. |
Name | Type | Description |
---|---|---|
style | String<!– System.String –> | The style parameter string. |
crs | String<!– System.String –> | The projectin parameter string. |
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
Produce a map, which is defined as either a pictorial image or a set of graphical elements.
Return Type | Description |
---|---|
Bitmap<!– System.Drawing.Bitmap –> |
Name | Type | Description |
---|---|---|
getMapRequest | GetMapRequest<!– ThinkGeo.MapSuite.WmsServerEdition.GetMapRequest –> | The RequestInfo object corresponding to the QueryString from the client's request. |
cachedMapConfiguration | MapConfiguration<!– ThinkGeo.MapSuite.WmsServerEdition.MapConfiguration –> | MapConfiguration object from HttpContext.Application. |
context | HttpContext<!– System.Web.HttpContext –> | 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. |
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
This method returns a single word used for machine-to-machine communication.
This method is called from the concrete public method GetName. It returns a single word used for machine-to-machine communication.
Return Type | Description |
---|---|
String<!– System.String –> | This method returns a single word used for machine-to-machine communication. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
This method returns the projection string collection that are supported.
This method returns the projection string collection that are supported.
Return Type | Description |
---|---|
Collection<String><!– System.Collections.ObjectModel.Collection{System.String} –> | This method returns the projection string collection that are supported. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
This method you need to return the styels that are supported.
Return Type | Description |
---|---|
Collection<WmsLayerStyle><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WmsServerEdition.WmsLayerStyle} –> | This method you need to return the styels that are supported. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
This method returns the human-readable name of the WmsLayerPlugin.
This method is called from the concrete public method GetTitle. This method returns the human-readable name of the WmsLayerPlugin.
Return Type | Description |
---|---|
String<!– System.String –> | This method returns the human-readable name of the WmsLayerPlugin. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
Return Type | Description |
---|---|
Object<!– System.Object –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
Represents the number of hours before the browser cache expires.
Return Type |
---|
TimeSpan<!– System.TimeSpan –> |
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
Gets or sets the Jpeg quality , this property only take effects when setting the ImageFormat to Jpeg.
Return Type |
---|
Int16<!– System.Int16 –> |
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back
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 Type |
---|
WmsQueryMode<!– ThinkGeo.MapSuite.WmsServerEdition.WmsQueryMode –> |
<!– ThinkGeo.MapSuite.WmsServerEdition.WmsLayerPlugin –> Go Back