Domain service extension

Feedback


GIS services include Generic Spatial Services and Domain Spatial Services.

SuperMap iServer classifies spatial services into two categories: 1. Generic Spatial Services (GSS), e.g. map services, spatial data services, spatial analysis services, network analysis services, etc., and SuperMap iServer provides this type of services by default; 2. Domain Spatial Services (DSS), which are spatial information related services constructed by the user according to domain-specific professional logics.

SuperMap iServer provides a flexible mechanism for constructing and publishing services that applies to both GSS and DSS.

Below is an example of how to create a DSS and configure it into the SuperMap iServer system.

This example mainly implements the query of the weather information of a specific city and the map display of this information. The following shows the specifics:

The example mainly consists of the following steps, with each step implemented as an independent example that can be deployed and published on SuperMap iServer. The source code of the example can be found in the %SuperMap iServer_HOME%\samples\code\DSSE folder.

  1. Create a Temperature service component that implements the GetMapImage and the GetTemperature methods as in the example Temperature_SC.
  2. Create a TemperatureProvider service provider and get the weather information by reading the TemperatureInfo.txt file through the GetTemperature method of the service provider as in the example Temperature_SPSC.
  3. Create a TemperatureServlet service interface, through which one can access the functions of the weather service as in the example Temperature_SPSCSI.

Note:

From SuperMap iServer 7C(2015) SP2, when extending domain service, the annotation supporting common Java class changed to that must use interface.

So when extend the service component and service provider, it needs to be defined as an interface. Then implement the detailed functions through the interfaces.

Please refer to