Configure to use the new extended tile format
|
Feedback
|
Configuring tile storage
- Compile sample code and export it into JAR pacakge. Add the JAR file to %SuperMap iServer_HOME%/webapps/iserver/WEB-INF/lib directory.
- Open the system configuration file iserver-system.xml (located at %SuperMap iServer_HOME%/webapps/iserver/WEB-INF/config), add storage ID and tile storage location in the <storages> node (you can name it, NationalCacheSample1 for instance in this example). Example is as follows:
<storages>
<storage>
<id>NationalCacheSample1</id>
<tileSourceInfo class="com.supermap.services.tilesource.NationalCacheStandardTileSourceInfo">
<outputPath>F:/tempcache>/outputPath>
</tileSourceInfo>
</storage>
</storages>
- Restart iServer.
Using extended tile format
Access http://localhost:8090/iserver/manager/tileservice/jobs page. Custom tile format can be employed while creating tiling task, please refer to Creating Tiling Task.
Except general operation, you still need to pay attention to:
- Storage type needs to be set to "UserDefined". Storage type for all extended tile format should be "UserDefined".
- Storage ID needs to be set to id in the configuration information, NationalCacheSample1 in this example for instance.
- Scale scheme is set to Custom, then you need to input scales supported by the regulation. If the input scales are not standard scales in the regulation, the tiling task will fail.
Scale set supported in the regulation: [295829355.45, 147914677.73, 73957338.86, 36978669.43, 18489334.72, 9244667.36, 4622333.68, 2311166.84, 1155583.42, 577791.71, 288895.85, 144447.93, 72223.96, 36111.98, 18055.99, 9028.00, 4514.00, 2257.00, 1128.50, 564.25]