Domain service extension |
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.
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.