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:
- 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;
- Select datasource as "Shapefile file
directory" and click "Next";
- 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;
- Select the published service type, such
as rest data service, and click Next;
- Configure the corresponding service according
to the selected service type, and click Publish;
- When data service is selected as the service type, such as
rest data service, wfs1.0.0 service, and ArcGIS rest feature service,
it is required to set whether data services is "editable",
and the default is not editable;
- When the service type is selected as a map service, such as
REST map service, WMS 1.0.0 service, or WMTS 1.0.0 service, you
can specify the map's style (optional; for instructions on how
to generate custom style files, see the tips below) or directly
click the publish button. iServer will use the default style file
located in [SuperMapiServer installation directory]\webapps\iserver\WEB-INF\config\mapboxstyles\defaultstyle.json;
- 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.