Using iServer services in iDesktop
|
Feedback
|
The OGC services and REST services published in Server can be opened and edited in SuperMap iDesktop. You can also save as a new workspace. The published 3D services can also be opened in SuperMap iDesktop, which are used to create the 3D scenes. This article will show you how to open the OGC services and REST services in SuperMap iDesktop and open iServer service layer in a 3D scene.
Open the services published by iServer
Open the OGC services published by iServer
- After starting the iServer service, open or create a new scene in SuperMap iDesktop. At the "General Layers" node of the "Layer Manager", right-click and select "Open OGC Service Layer...", the "Open OGC Service Layer" dialog box is displayed.
- Service URL: Input the address of the published OGC service layer in the text box. If the "Layer Type" is set to WMS, the service address must be set to the layer name level. For example, if you want to open the layer "China", the server service should be filled with "http://supermapiserver:8090/iserver/services/map-China400/wms111/China"; If the "Layer Type" is WMTS, the service address must be set to the published layer level: "http://supermapiserver:8090/iserver/services/map-china400/wmts-china".
- Layer Name: Input the name of the service layer published via iServer. If it is a WMS service layer, you can input the published layer name or an alias. If it's a WMTS service layer, you need to input the Tile of the Layer in the service address, which is consistent with the published layer name.
- Layer Type: SuperMap GIS desktop supports WMS service layer and WMTS service layer.
- Click the "OK", then the data will be added as a 3D layer and displayed on the simulated Earth in the scene. And a 3D layer subnode will be added to the "General Layers" node in the Layer Manager, which corresponds to the OGC service layer that was just opened.
Open the REST services published by iServer
REST (Representational State Transfer) is a resource oriented software architecture style. SuperMap REST service is to provide the REST style GIS service for GIS users. Please refer to REST Service.
Steps:
- Open SuperMap iDesktop, right click the "Datasources" node of the "Workspace Manager", then select "Open Web Datasource...".
- Select the iServerREST item in the list of datasource types on the left.
- Input the REST service address you want to open in the "Service Address" box on the right side of the dialog, such as http://localhost:8090/iserver/services/map-china400/rest/maps/China.
- Input the datasource alias after the REST service is opened in the "Datasource Alias" box.
- Click the "Open" button to open the REST datasource.
Use iServer services in 3D scene
Add iServer service layer in the scene
The "Open iServer Service Layer..." under the "General Layers" node of the "Layer Manager" is used to add the data from the published iServer service scene to the scene as a layer.
Steps:
- After starting the iServer service, open or create a new scene in SuperMap iDesktop. At the "General Layers" node of the "Layer Manager", right-click and select "Open iServer Service Layer...", the "Open iServer Service Layer" dialog box is displayed.
- Service URL: Input the address of the published iServer service layer in the text box. If the Layer Type is set to Map, the service address must be set to the layer name level. For example, if you want to open the layer "World" and the "Layer Type" is Map, you need to fill in "http://supermapiserver:8090/ Iserver/services/map-world/rest/maps/World"; if the "Layer Type" is other types, the service address needs to be set to the service root node; if the Layer Type" is Vector, the server address should be set to "http://supermapiserver:8090/iserver/services/3D-Pipe3D/rest/realspace".
- Scene Name: Input the name of the service scene published through iServer.
- Layer Name: Input the name of the service layer published via iServer.
- Layer Type. The supported layer types include Image, KML, Map, Vector, and OSGB.
- Image: When the opened service layer is the image layer, select this option. Such as: http://localhost:8090/iserver/services/3D-sample/rest/realspace/datas/BeijingImg.
- KML: It means the opened layer type is the KML layer. Such as: http://localhost:8090/iserver/services/3D-sample/rest/realspace/datas/flyRoute2.
- Map: When open the iServer REST map service layer, select this option. Such as http://localhost:8090/iserver/services/map-world/rest/maps/World.
- Vector: When the opened layer type is the vector layer, select this option. Such as http://localhost:8090/iserver/services/3D-sample/rest/realspace/datas/ConventionCenter@ConventionCenter.
- OSGB: When the opened layer type is the OSGB layer, select this option. Such as http://localhost:8090/iserver/services/3D-osgb/rest/realspace/datas/jinjiang_Compressed-test.
- Click the "OK", then the data will be added as a 3D layer and displayed on the simulated Earth in the scene. And a 3D layer subnode will be added to the "General Layers" node in the Layer Manager, which corresponds to the iServer service layer that was just opened.
Add the iServer 3D service terrain data in the scene
The "Open iServer Terrain Layer..." under the "Terrain Layers" node of the "Layer Manager" is used to add the data from the published iServer service scene to the scene as a terrain layer.
Steps:
- Right-click the "Terrain Layers" node of the "Layer Manager", then click "Open iServer Terrain Layer...".
- On the "Open iServer Terrain Layer..." dialog box, input the address and name of the terrain data in the iServer service scene you published, and then click the "OK" button to open the terrain data.
- The newly loaded terrain data will be added as a terrain layer and displayed on the simulated earth in the scene. And a terrain layer subnode will be added to the "Terrain Layers" node in the Layer Manager, which corresponds to the iServer terrain layer that was just opened.
- iServer Service URL: Input the address of the terrain layer published by the iServer. The format should be http://<service address>: <port> /iserver/services/realspace-workspaceName/rest/realspace/datas/terrainLayerName, for example: http://supermapiserver:8090/iserver/services/realspace-sample/rest/realspace/datas/Beijing@RealspaceSample_Terrain.
- Layer Name: Input the name of the terrain layer published via iServer. This name is an alias for the layer and can be inconsistent with the published layer name.
Open the scene in iServer 3D service
The "Open iServer Scene..." under the "Scenes" node of the "Workspace Manager" is used to open a scene published by iServer.
Steps:
- Right-click the "Scene" node in the "Workspace Manager" and select the "Open iServer scene...".
- The Open iServer Service Scenario dialog box is displayed. Enter the information of the iServer service scenario to be opened in the dialog box. Then, click the OK button in the dialog box to open the iServer service scenario.
- On the "Open iServer scene" dialog box, input the iServer scene address and scene name, then click "OK" to open the iServer service scene.
- iServer Service URL: Input the address of the scene layer published by the iServer. The format should be http://<service address>: <port>/iserver/services/realspace-workspaceName/rest/realspace, for example: http://supermapiserver:8090 /iserver/services/realspace-sample/rest/realspace.
- Scene Name: Input the name of the scene published by iServer. The scene name must be consistent with the published scene name.