Configuring map service provider |
SuperMap iServer supports the following types of map providers:
Configure a UGC map service provider as shown below:
<provider name="ugcMapProvider1" class="com.supermap.services.providers.UGCMapProvider"> <config class="com.supermap.services.providers.UGCMapProviderSetting"> <outputPath>../webapps/iserver/output</outputPath> <outputSite>http://localhost:8090/iserver/output/</outputSite> <workspacePath>server=../samples/data/World/World.sxwu;password=supermap</workspacePath> <cacheVersion>4.0</cacheVersion> <useCompactCache>false</useCompactCache> <multiThread>true</multiThread> <!-- Whether to disable the expanded query range function --> <inflatDisabled>true</inflatDisabled;> <poolSize>0</poolSize> <preferedPNGType>PNG</preferedPNGType> <queryExpectCount>1000</queryExpectCount> <leftTopCorner> <x>-180.0</x> <y>90.0</y> </leftTopCorner> <!-- Set the exclusion fields --> <excludedFieldsInMaps> <com.supermap.services.providers.ExcludedFieldsInMap> <mapName>World</mapName> <excludedFieldsInLayers> <com.supermap.services.providers.ExcludedFieldsInLayer> <layerName>Captial@World</layerName> <excludedFields>SMID,NAME</excludedFields> </com.supermap.services.providers.ExcludedFieldsInLayer> </excludedFieldsInLayers> </com.supermap.services.providers.ExcludedFieldsInMap> </excludedFieldsInMaps> </config> </provider>
The class attribute in <provider> represents the implementation class of the UGC service provider, the class attribute in the <config> represents the configuration class of UGC service provider, that is UGCMapProviderSetting, and the contents of <config> are the configuration items of UGCMapProviderSetting as follows:
<workspacePath>server=../samples/data/World/World.sxwu;password=supermap</workspacePath>
In addition, the workspace path supports reading from environment variables and system configuration files. It can be written as:
<workspacePath>server=${datapath1}/World.sxwu;password=supermap</workspacePath>For details, see: Presetting local workspace path
Where, com.supermap.services.providers.ExcludedFieldsInMap and com.supermap.services.providers.ExcludedFieldsInLayer are the implementation class for exclusion fields. <mapName> is the map name, <layerName> is the name of dataset, <excludedFields> is the fields you want to exclude.
SuperMap iServer also supports Oracle and SQL Server database workspaces as the service provider. Table1 shows the parameters need to be set. If there are no special instructions, the two types both need these parametesr.
Table 1. The parameters for setting database workspace information
Parameter name | Description |
type | The workspace type. Currently, the supported database workspaces are the Oracle workspace and the SQL Server workspace. Their values are ORACLE and SQL. ORACLE represents that the workspace is saved in the oracle database, And the SQL represents that the workspace is saved in the SQL Server database. |
name | The name of the workspace in the database. |
username | The user name used to login database. |
password | The password used to login database. |
server | The server name. For the Oracle database, the server name is the TNS server name; For the SQL Server database, the server name is the Database System Name. |
database | The database name. |
driver | The driver name when using the ODBC connection. Only SQL Server database uses the ODBC connection, the driver name can be SQL Server or SQL Native Client. |
<workspacePath>type=ORACLE;name=testOralce;username=cq;password=cq;server=ISERVER;database=iserver</workspacePath>
<workspacePath>type=SQL;name=testSQL;username=sa;password=iserver;server=ISERVICE\SQL2005;driver= SQL Server;database=iserver</workspacePath>
In addition, multiple <provider>can be bound as a whole, namely, as a <providerSet> to provide services to <component>. See Configuring Service Provider Sets through XML File. The structure of <provider> and <providerSet> in the configuration file is shown as follows:
<server> ... <application> ... <providerSets> ... <providerSet> ... </providerSet> </providerSets> <providers> ... <provider> ... </provider> </providers> </application> </server>
The configuration of REST ServiceProvider is in <provider>node:
<provider name="restMapProvider1" class="com.supermap.services.providers.RESTMapProvider"> <config class="com.supermap.services.providers.RESTMapProviderSetting"> <restServiceRootURL>http://localhost:8090/iserver/services/rest</restServiceRootURL> <token>GsXST0cE0CumxQUFXBX7Oopin4<token> </config> </provider>
The class attribute in <provider> represents the implementation class of the REST service provider, the class attribute in the <config> represents the configuration class of REST service provider, that is RESTMapProviderSetting, and the contents of <config> are the configuration items of RESTMapProviderSetting as follows:
The configuration of SuperMap Cloud service provider is in <provider>node. The configuration detail is shown as below:
<provider name="CloudMapProvider1" class="com.supermap.services.providers.CloudMapProvider"> <config class="com.supermap.services.providers.CloudMapProviderSetting"> <outputPath>../webapps/iserver/output</outputPath> <outputSite>http://localhost:8090/iserver/output/</outputSite> <servicesUrl>http://t2.supermapcloud.com/FileService/image</servicesUrl> <cacheEnabled>true</cacheEnable> </config> </provider>
The class attribute in <provider> represents the implementation class of the SuperMap Cloud map service provider, the class attribute in the <config> represents the configuration class of SuperMap Cloud service provider, that is CloudMapProviderSetting, and the contents of <config> are the configuration items of CloudMapProviderSetting as follows:
The configuration of FastDFS service provider is in <provider>node. The configuration detail is shown as below:
<provider class="com.supermap.services.providers.FastDFSTileProvider" enabled="true" name="fastDfs"> <config class="com.supermap.services.providers.FastDFSTileProviderSetting"> <fdfsTrackers> <string>192.168.112.251:22122</string> </fdfsTrackers> <fdhtGroups> <string-array> <string>192.168.112.250:11411</string> </string-array> </fdhtGroups> </config> </provider>
The class attribute in <provider> represents the implementation class of the FastDFS service provider, the class attribute in the <config> represents the configuration class of FastDFS service provider, that is FastDFSTileProviderSetting, and the contents of <config> are the configuration items of FastDFSTileProviderSetting as follows:
The configuration of GDP map service provider is in <provider> node. The configuration detail is shown as below:
<provider class="com.supermap.services.providers.GDPMapProvider" enabled="true" name="gdpMapProvider-"> <config class="com.supermap.services.providers.GDPMapProviderSetting"> <cacheVersion>5.0</cacheVersion> <filesPath>F:\SuperMap\China_58b994e9-5856-4a10-a0dc-0e0e177d7962\7_0000_0000_192.168.120.42_2014_03_03_14_01_56.zip</filesPath> <dpi>96.0</dpi> <tileSize>256</tileSize> <zoom0ScaleDenator>5.916587109091312E8</zoom0ScaleDenator> </config> </provider>
The class attribute in <provider> represents the implementation class of the GDP service provider, the class attribute in the <config> represents the configuration class of GDP service provider, that is DPMapProviderSetting, and the contents of <config> are the configuration items of GDPMapProviderSetting as follows:
The configuration of MongoDB service provider is in <provider>node. The configuration detail is shown below:
<provider class="com.supermap.services.providers.MongoDBTileProvider" enabled="true" name="mongoDBMapProvider-China"> <config class="com.supermap.services.providers.MongoDBTileProviderSetting"> <serverAdresses> <string>localhost:27017</string> </serverAdresses> <mapName>China</mapName> <tilesetName>1181328118</tilesetName> <database>smtiles</database> <username>iserver</username> <password>iserver</password> </config> </provider>
The class attribute in <provider> represents the implementation class of the MongoDB service provider, the class attribute in the <config> represents the configuration class of MongoDB service provider, that is MongoDBTileProviderSetting, and the contents of <config> are the configuration items of MongoDBTileProviderSetting as follows:
The configuration of MongoDB MVT service provider is in <provider>node. The configuration detail is shown below:
<provider class="com.supermap.services.providers.MongoDBMVTTileProvider" enabled="true" name="mongodbMvt-China"> <config class="com.supermap.services.providers.MongoDBTileProviderSetting"> <outputPath>./output</outputPath> <outputSite>http://{ip}:{port}/iserver/output/</outputSite> <serverAdresses> <string>localhost:27017</string> </serverAdresses> <mapName>China</mapName> <tilesetName>China</tilesetName> <database>mvt</database> <username>iserver</username> <password>iserver</password> </config> </provider>
The class attribute in <provider> represents the implementation class of the MongoDB MVT service provider, the class attribute in the <config> represents the configuration class of MongoDB MVT service provider, that is MongoDBTileProviderSetting, and the contents of <config> are the configuration items of MongoDBTileProviderSetting as follows:
The configuration of OTS service provider is in <provider> node. The configuration detail is shown below:
<provider class="com.supermap.services.providers.OTSTileProvider" enabled="true" name="ots-map"> <config class="com.supermap.services.providers.OTSTileProviderSetting"> <outputPath>D:\SuperMap\SuperMapiServer9D\webapps\iserver\output</outputPath> <outputSite>http://{ip}:{port}/iserver/output/</outputSite> <nodeName>cn-hangzhou</nodeName> <instanceName>tileStore</instanceName> <accessKeyId>accessKeyId</accessKeyId> <accessKeySecret>accessKeySecret</accessKeySecret> <fromPublic>true</fromPublic> </config> </provider>
The class attribute in <provider> represents the implementation class of the OTS service provider, the class attribute in the <config> represents the configuration class of OTS service provider, that is OTSTileProviderSetting, and the contents of <config> are the configuration items of OTSTileProviderSetting as follows:
The configuration of SMTiles service provider is in<provider> node. The configuration detail is shown below:
<provider name="smtilesMapProvider1" class="com.supermap.services.providers.SMTilesMapProvider"> <config class="com.supermap.services.providers.SMTilesMapProviderSetting"> <filePath>../webapps/iserver/output/sqlite/World_-411043745_256X256_PNG.smtiles</filePath> </config> </provider>
The class attribute in <provider> represents the implementation class of the SMTiles map service provider, the class attribute in the <config> represents the configuration class of SMTiles map service provider, that is SMTilesMapProviderSetting, and the contents of <config> are the configuration items of SMTilesMapProviderSetting as follows:
The configuration of SVTiles service provider is in <provider>node. The configuration detail is shown below:
<provider name="svtilesMapProvider1" class="com.supermap.services.providers.SVTilesMapProvider"> <config class="com.supermap.services.providers.SVTilesMapProviderSetting"> <filePath>../webapps/iserver/output/sqlite/World_1715141636_256X256.svtiles</filePath> </config> </provider>
The class attribute in <provider> represents the implementation class of the SVTiles map service provider, the class attribute in the <config> represents the configuration class of SVTiles map service provider, that is SVTilesMapProviderSetting, and the contents of <config> are the configuration items of SVTilesMapProviderSetting as follows:
The configuration of UGCV5 service provider is in <provider>node.The configuration detail is shown below:
<provider class="com.supermap.services.providers.UGCV5TileProvider" enabled="true" name="ugcv5-China"> <config class="com.supermap.services.providers.UGCV5TileProviderSetting"> <watermark> <imageUrl>F:/test/test.png</imageUrl> <imageAlpha>0.5</imageAlpha> <txtContent>ABCD</txtContent> <fontSize>5</fontSize> <fontColor> <red>255</red> <green>0</green> <blue>0</blue> <alpha>255</alpha> </fontColor> <fontStyle>Microsoft YaHei</fontStyle> <xIndex>4</xIndex> <yIndex>5</yIndex> <random>50</random> </watermark> <configFile>../webapps/iserver/output/cache/China/China.sci</configFile> </config> </provider>
The class attribute in <provider> represents the implementation class of the UGCV5 service provider, the class attribute in the <config> represents the configuration class of UGCV5 service provider, that is UGCV5TileProviderSetting, and the contents of <config> are the configuration items of UGCV5TileProviderSetting as follows:
The configuration of WMS service provider is in <provider>node:
<!-- WMS map service provider example, using remote WMS service as data source.--> <provider name="wmsMapProvider" class="com.supermap.services.providers.WMSMapProvider"> <config class="com.supermap.services.providers.WMSMapProviderSetting"> <serviceRootURL>http://localhost:7070/geoserver/wms</serviceRootURL> <username></username> <password></password> <version>1.1.1</version>
<reverseLayerOrder>false</reverseLayerOrder> </config> </provider>
The class attribute in <provider> represents the implementation class of the WMS service provider, the class attribute in the <config> represents the configuration class of WMS service provider, that is WMSMapProviderSetting, and the contents of <config> are the configuration items of WMSMapProviderSetting as follows:
The configuration of WMTS service provider is in <provider>node:
<!-- WMTS map service provider example, using remote WMTS service as data source.--> <provider name="wmtsMapProvider" class="com.supermap.services.providers.WMTSMapProvider"> <config class="com.supermap.services.providers.WMTSMapProviderSetting"> <serviceRootURL>http://server:7070/geoserver/wmts</serviceRootURL> <username></username> <password></password> <version>1.0.0</version> <dpi>90.7142857142857</dpi> <layers> <com.supermap.services.providers.WMTSMapLayer> <identifier>world:Countries</identifier> <tileMatrixSet>EPSG:4610</tileMatrixSet> </com.supermap.services.providers.WMTSMapLayer> <com.supermap.services.providers.WMTSMapLayer> <identifier>nurc:Img_Sample</identifier> <tileMatrixSet>EPSG:900913</tileMatrixSet> </com.supermap.services.providers.WMTSMapLayer> </layers> <reverseTopLeftCorner>EPSG:4610</reverseTopLeftCorner> <reverseBoundingBox>urn:ogc:def:crs:EPSG::4610</reverseBoundingBox> <cacheEnabled>true</cacheEnabled> <resolutions>0.01903568804664224,0.00951784402332112,......</resolutions> </config> </provider>
The class attribute in <provider> represents the implementation class of the WMTS service provider, the class attribute in the <config> represents the configuration class of WMTS service provider, that is WMTSMapProviderSetting, and the contents of <config> are the configuration items of WMTSMapProviderSetting as follows:
The configuration of Bing Maps service provider is in <provider>node. The configuration detail is shown below:
<provider name="BingMapsMapProvider1" class="com.supermap.services.providers.BingMapsMapProvider"> <config class="com.supermap.services.providers.BingMapsMapProviderSetting"> <outputPath>../webapps/iserver/output</outputPath> <outputSite>http://localhost:8090/iserver/output/</outputSite> <apiKey>fdskjkfdsk</apiKey> <bingmapsRootUrl>http://localhost:9876/bingmaps/</bingmapsRootUrl> <imagerySet>Road</imagerySet> <mapVersion>v1</mapVersion> <cacheEnabled>true</cacheEnable> </config> </provider>
The class attribute in <provider> represents the implementation class of the Bing Maps service provider, the class attribute in the <config> represents the configuration class of Bing Maps service provider, that is BingMapsMapProviderSetting, and the contents of <config> are the configuration items of BingMapsMapProviderSetting as follows:
The configuration of Google map service provider is in <provider> node. The configuration detail is shown below:
<provider class="com.supermap.services.providers.GoogleMapsMapProvider" enabled="true" name="googlemap"> <config class="com.supermap.services.providers.GoogleMapsMapProviderSetting"> <outputPath/> <outputSite/> <cacheEnabled>false</cacheEnabled> <googleMapLanguage>zh-cn</googleMapLanguage> <googleMapCryptoKey>abcdefghijklmn=</googleMapCryptoKey> <googleMapClientID>myClientID</googleMapClientID> <googleMapWidth>400</googleMapWidth> <googleMapHeight>400</googleMapHeight> <googleProxyAddress>127.0.0.1</googleProxyAddress> <googleProxyPort>8787</googleProxyPort> <useTileImage>true</useTileImage> </config> </provider>
The class attribute in <provider> represents the implementation class of the Google map service provider, the class attribute in the <config> represents the configuration class of Google service provider, that is GoogleMapsMapProviderSetting, and the contents of <config> are the configuration items of GoogleMapsMapProviderSetting as follows:
The configuration of BaiduMap map service provider is in<provider>node. The configuration detail is shown below:
<provider name="baiduMapProvider1" class="com.supermap.services.providers.BaiduMapProvider"> <config class="com.supermap.services.providers.BaiduMapProviderSetting"> <outputPath>../webapps/iserver/output</outputPath> <outputSite>http://localhost:8090/iserver/output/</outputSite> <mapUrl>http://online0.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=pl</mapUrl> <mapName>true</mapName> <cacheEnabled>true</cacheEnable> </config> </provider>
The class attribute in <provider> represents the implementation class of the BaiduMap map service provider, the class attribute in the <config> represents the configuration class of BaiduMap map service provider, that is BaiduMapProviderSetting, and the contents of <config> are the configuration items of BaiduMapProviderSetting as follows:
The configuration of OpenStreetMap map service provider is in <provider> node. The configuration detail is shown below:
<provider name="openStreetMapProvider1" class="com.supermap.services.providers.OpenStreetMapProvider"> <config class="com.supermap.services.providers.OpenStreetMapProviderSetting"> <outputPath>../webapps/iserver/output</outputPath> <outputSite>http://localhost:8090/iserver/output/</outputSite> <mapUrl>http://a.tile.openstreetmap.org/{z}/{x}/{y}.png</mapUrl> <mapName>true</mapName> <cacheEnabled>true</cacheEnable> </config> </provider>
The class attribute in <provider> represents the implementation class of the OpenStreetMap map service provider, the class attribute in the <config> represents the configuration class of OpenStreetMap service provider, that is OpenStreetMapProviderSetting, and the contents of <config> are the configuration items of OpenStreetMapProviderSetting as follows:
The configuration of MapWorld service provider is in<provider>node. The configuration detail is shown below.
<provider class="com.supermap.services.providers.TiandituMapProvider" enabled="true" name="tiandituMapProvider1"> <config class="com.supermap.services.providers.TiandituMapProviderSetting"> <outputPath>../webapps/iserver/output</outputPath> <outputSite>http://localhost:8090/iserver/output/</outputSite> <servicesUrl>http://t5.tianditu.gov.cn</servicesUrl> <cacheEnabled>true</cacheEnable> <key>efb100fb46e3849b93f508c8fb949926</key> </config> </provider>
The class attribute in <provider> represents the implementation class of the Tianditu service provider, the class attribute in the <config> represents the configuration class of Tianditu service provider, that is TiandituMapProviderSetting, and the contents of <config> are the configuration items of TiandituMapProviderSetting as follows:
The configuration of ArcGIS REST Service provider is in <provider>node. The configuration detail is shown below.
<provider class="com.supermap.services.providers.ArcGISRestMapProvider" enabled="true" name="arcgis-Countries2"> <config class="com.supermap.services.providers.ArcGISRestMapProviderSetting"> <restServiceRootURL>http://localhost:6080/arcgis/rest/services/mytest/Countries/MapServer</restServiceRootURL> <cacheEnabled>false</cacheEnabled> <token>_jLYzPo-SEJRXfB3Q-W2EearDDnaIZTqQqUfju4GD8Owd6PIiUVmabUJiSdZeX1V</token> <httpReferer>ISERVER</httpReferer> </config> </provider>
The class attribute in <provider> represents the implementation class of the ArcGIS REST map service provider, the class attribute in the <config> represents the configuration class of ArcGIS REST map service provider, that is ArcGISRestMapProviderSetting, and the contents of <config> are the configuration items of ArcGISRestMapProviderSetting as follows:
The configuration of TPK service provider is in <provider> node. The configuration method is shown below:
<provider class="com.supermap.services.providers.TPKMapProvider" enabled="true" name="tpk-map1"> <config class="com.supermap.services.providers.TPKMapProviderSetting"> <tilePackagePath>../samples/data/map1.tpk</tilePackagePath> </config> </provider>
The class attribute in <provider> represents the implementation class of the TPK map service provider, the class attribute in the <config> represents the configuration class of TPK map service provider, that is TPKMapProviderSetting, and the contents of <config> are the configuration items of TPKMapProviderSetting as follows:
The configuration of GeoPackage service provider is in<provider>node. The configuration method is shown below:
<provider class="com.supermap.services.providers.GeoPackageMapProvider" enabled="true" name="gpkgMap-map"> <config class="com.supermap.services.providers.GeoPackageMapProviderSetting"> <outputPath>F:\dev\trunk\etc\iserver-debug\src\test\webapps\iserver\output</outputPath> <outputSite>http://localhost:8090/iserver/output/</outputSite> <filePath>E:/data/geopackage/map.gpkg</filePath> <defaultMapPrjCoordSys>0</defaultMapPrjCoordSys> <queryExpectCount>1000</queryExpectCount> <axisPositiveDirection>RightUp</axisPositiveDirection> <originalPoint>-180,-90</originalPoint> </config> </provider>
The class attribute in <provider> represents the implementation class of the GeoPackage map service provider, the class attribute in the <config> represents the configuration class of GeoPackage map service provider, that is GeoPackageMapProviderSetting, and the contents of <config> are the configuration items of GeoPackageMapProviderSetting as follows:
The configuration of ZXYTiles service provider is in <provider> node. The configuration method is shown below:
<provider class="com.supermap.services.providers.ZXYTilesMapProvider" enabled="true" name="zxytest"> <config class="com.supermap.services.providers.ZXYTilesMapProviderSetting"> <outputPath>../../webapps/iserver/output</outputPath> <outputSite>http://{ip}:{port}/iserver/output/</outputSite> <filePath>E:/data/ZXYTilesSample.zip</filePath> </provider>
The class attribute in <provider> represents the implementation class of the ZXYTiles map service provider, the class attribute in the <config> represents the configuration class of ZXYTiles map service provider, that is ZXYTilesMapProviderSetting, and the contents of <config> are the configuration items of ZXYTilesMapProviderSetting as follows:
The configuration of ArcGIS service provider is in <provider> node. The configuration method is shown below:
<provider class="com.supermap.services.providers.ArcGISCacheMapProvider" enabled="true" name="agscache-WorldCitiesPopulation"> <config class="com.supermap.services.providers.ArcGISCacheMapProviderSetting"> <outputPath>../../webapps/iserver/output</outputPath> <outputSite>http://{ip}:{port}/iserver/output/</outputSite> <configFile>E:/data/arcgiscache/sample/World Cities Population/conf.xml</configFile> </config> </provider>
The class attribute in <provider> represents the implementation class of the ArcGIS cache map service provider, the class attribute in the <config> represents the configuration class of ArcGIS cache service provider, that is ArcGISCacheMapProviderSetting, and the contents of <config> are the configuration items of ArcGISCacheMapProviderSetting as follows:
<provider class="com.supermap.services.providers.MVTTileProvider" enabled="true" name="UGCV5-MVT-MAP"> <config class="com.supermap.services.providers.MVTTileProviderSetting"> <outputPath>./output</outputPath> <outputSite>http://{ip}:{port}/iserver/output/</outputSite> <configFilePath>E:/supermap_packages/data/China_mvt/China.sci</configFilePath> </config> </provider>
The class attribute in <provider> represents the implementation class of the UGCV5(MVT) map service provider, the class attribute in the <config> represents the configuration class of UGCV5(MVT) service provider, that is MVTTileProviderSetting, and the contents of <config> are the configuration items of MVTTileProviderSetting as follows:
The configuration of a Shape map service provider is shown below:
<provider class="com.supermap.services.providers.ShapeFileMapProvider" enabled="true" name="shpMap-shp"> <config class="com.supermap.services.providers.ShapeFileMapProviderSetting"> <outputPath>./output</outputPath>
<outputSite>http://{ip}:{port}/iserver/output/</outputSite>
<cacheDisabled>false</cacheDisabled>
<shpDir>E:/supermap/data/shp</filePath>
<styleFile>E:/data/styles/style.json</styleFile> <charset>UTF-8</charset> </config> </provider>
The class attribute in <provider> represents the implementation class of the Shape map service provider, the class attribute in the <config> represents the configuration class of Shape map service provider, that is ShapeFileMapProviderSetting, and the contents of <config> are the configuration items of ShapeFileMapProviderSetting as follows:
The configuration of PostGIS map service provider is in <provider>node. The configuration detail is shown below:
<provider class="com.supermap.services.providers.PostgisMapProvider" enabled="true" name="map-postGIS"> <config class="com.supermap.services.providers.PostgisMapProviderSetting"> <outputPath>./output</outputPath> <outputSite>http://{ip}:{port}/iserver/output/</outputSite> <cacheDisabled>false</cacheDisabled>
<dbType>postgis</dbType> <host>192.168.17.212</host> <port>5432</port> <database>postGIS</database> <user>postgres</user> <passwd>iserver</passwd> <styleFile>E:/data/styles/style.json</styleFile> </config> </provider>
The class attribute in <provider> represents the implementation class of the PostGIS map service provider, the class attribute in the <config> represents the configuration class of PostGIS service provider, that is PostgisMapProviderSetting, and the contents of <config> are the configuration items of PostgisMapProviderSetting as follows:
The configuration of HBase map service provider is in <provider>node. The configuration detail is shown below:
<provider class="com.supermap.services.providers.HBaseMapProvider" enabled="true" name="map-hbase"> <config class="com.supermap.services.providers.HBaseMapProviderSetting"> <outputPath>./output</outputPath> <outputSite>http://{ip}:{port}/iserver/output/</outputSite>
<styleFile>E:/data/styles/style.json</styleFile> <cacheDisabled>false</cacheDisabled> <catalog>postgis</catalog> <zookeepers>192.168.17.212:2181</zookeepers> <threadsPerCore>8</threadsPerCore> <!-- Set the datasource, dataset info to be published --> <filterDatasource> <com.supermap.services.providers.FilteredDatasourceInfo> <datasourceName>Hbase</datasourceName> <includedDatasetNames> <string>newyorkRoads_L</string> </includedDatasetNames> </com.supermap.services.providers.FilteredDatasourceInfo> </filterDatasource> </config> </provider>
The class attribute in <provider> represents the implementation class of the HBase map service provider, the class attribute in the <config> represents the configuration class of HBase service provider, that is HBaseMapProviderSetting, and the contents of <config> are the configuration items of HBaseMapProviderSetting as follows: