User Tools

Site Tools


map_suite_wms_server_edition_quick_start_guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
map_suite_wms_server_edition_quick_start_guide [2015/09/11 06:42]
admin
map_suite_wms_server_edition_quick_start_guide [2017/03/17 05:11] (current)
tgwikiupdate
Line 1: Line 1:
 ====== Map Suite WMS Server Edition Quick Start Guide ====== ====== Map Suite WMS Server Edition Quick Start Guide ======
 +
 +{{section>​upgrade_map_suite_to_10.0}}
  
 <div msgbox> <div msgbox>
Line 13: Line 15:
  
 ===== Download the Sample ===== ===== Download the Sample =====
-<faicon fa fa-download>​ {{:File:HelloWorld WMSServer.zip|Download Sample Code From This Exercise}} //(1.75 MB)//+<faicon fa fa-download ​ fa-lg {{filehistory:HelloWorld WMSServer.zip|Download Sample Code From This Exercise}} //(1.75 MB)//
  
 ===== Setting Up Your Environment ===== ===== Setting Up Your Environment =====
Line 26: Line 28:
 The Class Library is created in a new solution called "​HelloWmsPlugin",​ which includes a default file named "​Class1.cs"​. Let's change its name, as well as the class name, from "​Class1"​ to "​Countries02Plugin"​. The Class Library is created in a new solution called "​HelloWmsPlugin",​ which includes a default file named "​Class1.cs"​. Let's change its name, as well as the class name, from "​Class1"​ to "​Countries02Plugin"​.
  
-Right-click the "​HelloWmsPlugin"​ project in Solution Explorer and select "Add Reference..."​ Next, navigate to the <kbd>C:\Program Files (x86)\ThinkGeo\Map Suite 9.0\Map Suite WMS Server\Current Version\Managed Assemblies</kbd> ​directory and add "​WmsServerEdition.dll",​ "​MapSuiteCore.dll",​ "​GeoAPI.dll"​ and "​MapSuiteCore.dll"​ to the project references. The references should then look like the image below.+Right-click the "​HelloWmsPlugin"​ project in Solution Explorer and select "Add Reference..."​ Next, navigate to the //C:\Program Files (x86)\ThinkGeo\Map Suite 9.0\Map Suite WMS Server\Current Version\Managed Assemblies/directory and add "​WmsServerEdition.dll",​ "​MapSuiteCore.dll",​ "​GeoAPI.dll"​ and "​MapSuiteCore.dll"​ to the project references. The references should then look like the image below.
  
 {{wmsserveredition:​QSG_WMSServerEdition_Img03.png}} {{wmsserveredition:​QSG_WMSServerEdition_Img03.png}}
Line 112: Line 114:
  
 ===== Managing Your Plugins ===== ===== Managing Your Plugins =====
-Add the existing WmsPluginService Project where you can download it from <faicon fa fa-download>​ {{:File:​WorldMapWmsService.zip|worldmapwms service}} to the "​HelloWmsPlugin"​ solution we just created, as illustrated by the screenshot below. ​+Add the existing WmsPluginService Project where you can download it from <faicon fa fa-download>​ {{filehistory:​WorldMapWmsService.zip|worldmapwms service}} to the "​HelloWmsPlugin"​ solution we just created, as illustrated by the screenshot below. ​
  
 **Important Notes: You may need to delete the files within the ''​WmsLayerPlugins''​ folder to remove any existing plugins. Also, if you are using Windows 7 or Windows Server 2008, you may need to copy the WmsPluginService Project to another folder where you have permission to write; otherwise you may not be able to compile the project properly.** **Important Notes: You may need to delete the files within the ''​WmsLayerPlugins''​ folder to remove any existing plugins. Also, if you are using Windows 7 or Windows Server 2008, you may need to copy the WmsPluginService Project to another folder where you have permission to write; otherwise you may not be able to compile the project properly.**
Line 122: Line 124:
 {{wmsserveredition:​QSG_WMSServerEdition_Img07.png}} {{wmsserveredition:​QSG_WMSServerEdition_Img07.png}}
  
-Copy "​HelloWmsPlugin.dll"​ to the //​WmsPluginService\WmsLayerPlugins//​ folder (which is specified by <​code>​appSetting</​code> ​in "​Web.config";​ feel free to change it if you prefer) and then the default page should look like the screenshot below: ​+Copy "​HelloWmsPlugin.dll"​ to the //​WmsPluginService\WmsLayerPlugins//​ folder (which is specified by ''​appSetting'' ​in "​Web.config";​ feel free to change it if you prefer) and then the default page should look like the screenshot below: ​
  
 {{wmsserveredition:​QSG_WMSServerEdition_Img08.png?​800}} {{wmsserveredition:​QSG_WMSServerEdition_Img08.png?​800}}
Line 330: Line 332:
  
   - A WMS plugin assembly contains one or more public classes, and each of them should inherit from the WmsLayerPlugin abstract class. A WMS plugin assembly should have a name that ends with "​plugin"​.   - A WMS plugin assembly contains one or more public classes, and each of them should inherit from the WmsLayerPlugin abstract class. A WMS plugin assembly should have a name that ends with "​plugin"​.
-  - You must implement the <​code>​GetMapConfigurationCore</​code> ​method, which is used to define your own layers. +  - You must implement the ''​GetMapConfigurationCore'' ​method, which is used to define your own layers. 
-  - You must implement the <​code>​GetBoundingBoxCore</​code> ​method, which returns the boundingBox of all the layers you defined. +  - You must implement the ''​GetBoundingBoxCore'' ​method, which returns the boundingBox of all the layers you defined. 
-  - You need to implement the <​code>​GetNameCore</​code> ​method to specify the name of a WMS layer. +  - You need to implement the ''​GetNameCore'' ​method to specify the name of a WMS layer. 
-  - You need to implement the <​code>​GetProjectionsCore</​code> ​method, which is used to add the projection string code (such as "EPSG: 4326") that you want to support.+  - You need to implement the ''​GetProjectionsCore'' ​method, which is used to add the projection string code (such as "EPSG: 4326") that you want to support.
   - Each public class inherited from the WmsLayerPlugin abstract class represents one Layer element in the WMS specification.   - Each public class inherited from the WmsLayerPlugin abstract class represents one Layer element in the WMS specification.
   - All custom WmsPlugin DLLs need to be copied to a specified directory, which can be changed in the "​Web.config"​ file.   - All custom WmsPlugin DLLs need to be copied to a specified directory, which can be changed in the "​Web.config"​ file.
  
-<faicon fa fa-download>​ {{:File:HelloWorld WMSServer.zip|Download Sample Code From This Exercise}} //(1.75 MB)// +<faicon fa fa-download ​ fa-lg {{filehistory:HelloWorld WMSServer.zip|Download Sample Code From This Exercise}} //(1.75 MB)//
  
map_suite_wms_server_edition_quick_start_guide.1441953757.txt.gz · Last modified: 2015/09/11 06:42 by admin