配置影像服务提供者

发送反馈


配置一个影像服务提供者,如下所示:

 <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>全国 .tif 格式影像数据</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>覆盖中国区域的影像数据,坐标系为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>

其中<provider>中的 class 标识的是 UGC 服务提供者的实现类,<config>中的 class 标识的是服务提供者对应的配置类,即 ImageProviderSetting 。

下面详细介绍<provider>中的配置内容,<provider>中配置内容分为两大部分:第一:基本信息配置。第二:服务中影像结合配置(<collectionConfigs>)。

基本信息配置

影像集合配置

影像服务中的影像会组织在影像集合中,一个影像服务可以包含多个影像集合,同一影像集合中只能添加相同像素格式和波段数目的影像。

<com.supermap.services.components.ImageCollectionSetting> 为一个影像服务集合的配置,因此,<collectionConfigs>下可以包含多个<com.supermap.services.components.ImageCollectionSetting> 。

下面详细介绍影像集合配置项: