Configure Plot Service Provider

Feedback


SuperMap iServer supports the following types of plot service providers:

Configure Plot Service Provider

Configure a UGC plot service provider as follows:

<!--Local plotting service provider-->
<provider class="com.supermap.services.providers.UGCPlotProvider" enabled="true" name="plot-TY">
      <config class="com.supermap.services.providers.UGCPlotProviderSetting">
        <symbolLibPaths>
          <string>../../TY.plot</string>
        </symbolLibPaths>   
      </config>
</provider> 

The class in < provider > identifies the implementation class of the UGC plot service provider, and the class in < config > identifies the configuration class corresponding to the UGC plotting service provider, that is, UGCPlotProviderSetting, and the contents in < config > are configuration item corresponding to UGCPlotProviderSetting:

Configure REST Plot Service Provider

Configure a REST plot service provider as follows:

<provider class="com.supermap.services.providers.RestPlotProvider" enabled="true" name="rest-JY">
      <config class="com.supermap.services.providers.RestPlotProviderSetting">
        <restServiceRootURL>http://localhost:8090/iserver/services/plot-JY/rest</restServiceRootURL>
          <useCache>true<useCache>
          <restProviderCacheConfig>
            <maxElementsInMemory>1<maxElementsInMemory>
            <maxSizeOnDisk>2048<maxSizeOnDisk>
            <timeToLiveSeconds>0<timeToLiveSeconds>
            <timeToIdleSeconds>0<timeToIdleSeconds>
          <restProviderCacheConfig>
      </config>
</provider> 

The class in < provider > identifies the implementation class of the REST plot service provider, and The class in < config > identifies the configuration class corresponding to the REST plotting service provider, that is, RestPlotProviderSetting. The contents in < config > are configuration item corresponding to.RestPlotProviderSetting: