For the Vector Tile Service V2, SuperMap iServer provides publishing capabilities based on PostGIS service. This section will introduce the specific publishing process and considerations.
Steps
Feature Entry:
- Service Management Home Page‐>Publish Service button
- Service Management Home Page‐>Services‐>Service Management tab page‐>Quickly Publish Service button
Operation Instructions:
- Select Data Source, choose PostGIS service, and click Next.
- Configure Data, set the address of the PostGIS service. Enter the server address (e.g., "192.168.112.251"), server port, database name, schema name, username, and password in sequence. After confirming the correctness of all entered PostGIS service addresses and ports, click Next.
- Select Service Type, choose "REST Vector Tile Service V2 (Pre-Beta)", and click Next.
- Configure Service.
- Select the datasets corresponding to the layers required by the map service, and click Next;
- Set the service name and service alias. The service name will be used synchronously as the serverName field in the request URLs of interfaces such as getMap, pickup, and serverInfo. If not set, the default service name provided by iServer will be used.
- Click Publish to complete the publishing of the REST Vector Tile Service V2. After publishing, go to the service details to configure relevant styles, data, and cache.
Considerations
- The current version only supports publishing land use polygon datasets, and only supports data in EPSG:3857, EPSG:4326, and EPSG:4490 coordinate systems.
- The PostGIS database used must be version 3.1.1 or higher. You can check the version using the command `SELECT PostGIS_VERSION();`.
- The data used must ensure that the dataset name is consistent with the database table name. That is, do not modify the dataset name through iDesktopX; use the default name.
- The primary key in the database table must be of integer or numeric type, not character type.
- The service does not currently support multi-process on single machine functionality.
Related Topics