Configure the Image Service Provider

Feedback


Configure an image service provider as follows:

 <provider class="com.supermap.services.providers.UGCImageServiceProvider" enabled="true" name="imageservice-ChinaImages"> 
      <config class="com.supermap.services.providers.ImageProviderSetting"> 
        <id>ChinaImages</id>
        <title>ChinaImages</title>
        <collectionConfigs> 
          <com.supermap.services.components.ImageCollectionSetting> 
            <id>ChinaTIFF</id>
            <title>National. tif format image data</title>
            <crs>EPSG:4326</crs>
            <dataConnectionInfo>
              <type>IMAGEFOLDER</type>
              <server>H:\ChinaImages</server>
              <ext>.tif</ext>
              <datasetName>ChinaTIFF</datasetName>
            </dataConnectionInfo>
            <editable>false</editable>
            <downloadable>false</downloadable>
            <cacheEnable>true</cacheEnable>
          </com.supermap.services.components.ImageCollectionSetting>
        </collectionConfigs>
        <description>Image data covering the Chinese region, coordinate system WGS84</description>
        <datasourceConnectionInfo>
          <engineType>UDBX</engineType>
          <server>E:/imageserver/imageService/ChinaImages.udbx</server>
        </datasourceConnectionInfo>
        <outputPath>../../webapps/iserver/output</outputPath>
        <outputSite>http://{ip}:{port}/iserver/output/</outputSite> 
      </config> 
</provider>

The class in <provider> identifies the implementation class of the UGC service provider, while the class in <config> identifies the configuration class corresponding to the service provider, namely ImageLayoutSetting.

The following is a detailed description of the configuration contents in < provider >. The configuration contents in < provider > are divided into two parts: First: basic information configuration. Second: Image combination configuration in the service (< collectionConfigs >).

The basic information configuration

The image management configuration

Images in an image service are organized in an image management. An image service can contain multiple image managements. Only images with the same pixel format and number of bands can be added to the same image management.

<com.supermap.services.components. ImageCollections Setting> is a configuration for a collection of image services, therefore,can contain multiple <com. supermap. services. components ImageCollectionSetting>.

The following describes the image management configuration item in detail: