Publish Shapefile file

Feedback


You can publish Shapefile data files as data sources directly to data services and map services, such as REST data services, REST, Map services, WFS service, WMS service, WCS service.

You can publish the existing Shapefile directory as services by following these steps:

  1. In the service management homepage, click on quick service publishing or in the Servcie->Service management page, click on quick service creation to enter the publishing wizard;
  2. Select datasource as "Shapefile file directory" and click "Next";
  3. Click the "Select" button to select the Shapefile directory to be published, for example: E:\data\shp; or click the upload data button to upload the .zip compressed file containing shapefile and will be automatically decompressed after uploading, and then select the directory of the decompressed Shapefile file. Then, select the encoding format of the Shapefile file. Click Next;
  4. Select the published service type, such as rest data service, and click Next;
  5. Configure the corresponding service according to the selected service type, and click Publish;
  1. After publishing, you can see the name and link of the currently published service. Click it to access the service directly.

Tip:

You can generate a custom style file using the iDesktopX. The specific steps are as follows:

1. Load a ShapeFile file in iDesktopX, generate a map, and then configure the style of the map layers. And then, save the map.

2. Generate map tiles for the saved map. In the tiling task window, choose vector tiles for the tile type, check the box for generating tile styles, and use the original format for storage. Click next and the generate button sequentially. After generation, find the styles directory in the locally generated vector tile directory. The files in this directory are the generated style.json. When publishing the ShapeFile file, select the style file and choose the generated style.json.