The oblique photographic model can display the real physical world in an all-round and full-element manner. It has become an important data source for 3D GIS due to its high precision, high efficiency, high realism and low cost. The full range of SuperMap GIS products support oblique photography models, and in order to optimize the transmission and analysis of models in a network environment, SuperMap iClient3D for WebGL (hereinafter referred to as WebGL client) uses a three-dimensional tile cache (*.S3M) format to store and publish model data. Improved the performance and efficiency of WebGL client browsing oblique photography models.
This document mainly describes the detailed operation process of WebGL client to browse oblique photography model data. The main operation process is as follows:
The following will use the sample data MaSai for detailed operation demonstration.
The "Generate Configuration File" function can generate a *.scp format model configuration file for multiple original oblique photography models in *.osgb format stored in multiple folders, it records the relative path, name, insertion point position and coordinate system information of the oblique photography model file.
If you already have a configuration file in *.scp format, you can skip this step and proceed directly to 2. Generate S3M data.
(1). In the "Tilt Photography" tab of the SuperMap iDesktop desktop product, click the "Generate Configuration File" button, as shown in the figure below.
Figure 1 Click the "Generate Configuration File" tool
(2). The "Generate Oblique Photography Configuration File" dialog box pops up, as shown in the figure below.
Figure 2 "Generate Oblique Photography Configuration File" dialog box
(3). In the dialog box "Source Data", set the following:
Figure 3 "Specify Root Node" dialog box
(4). In the dialog box "Result Settings", set the following:
(5). Set the X, Y, and Z values at "Model Reference Point" in the dialog box. The default model reference point is (0,0,0).
(6). If the oblique photogrammetric model is in the ENU coordinate system, check "ENU". Otherwise, check "Projection Settings" and set the projection information of the *.scp file. Currently, two methods are provided:
(7). If the oblique photogrammetric model requires coordinate conversion, check the "Coordinate Conversion Parameter Setting" check box to set the target coordinate system and reference system conversion settings. The parameter settings are as follows:
Figure 4 "Projection Conversion" dialog box
(8). After setting the above parameters, click the "OK" button to execute the configuration file generation operation.
After the operation is completed, a *.scp file is generated under the target path, as shown in the figure below:
Figure 5 Generate OSGB cache result
The *scp configuration file generated in the previous step records the relative path, name and other information of the tilt model file, and the "Generate S3M Data" function which take oblique photographic data to reconstruct LOD, texture compression, model singulation and modify the center point of the model, etc., to realize batch processing of oblique photographic models and integrat processing of oblique operators, and to support multi-threading。
(1). Open SuperMap iDesktop, and click "Tilt Photography" in the "Data Processing" group of the "S3M Data" tab; as shown below.
Figure 6 Click the "Tilt Photography" tool
(2). The "OSGB->S3M" dialog box pops up, as shown in the figure below.
Figure 7 "OSGB->S3M" dialog box
(3). In the dialog box "Source configuration file", click "Add scp configuration file", and in the pop-up "Open" dialog box, select the *.scp file, or click the "Open all scp files in the folder" button to add the source configuration file.
(4). In the dialog box "Parameter Settings", the parameter settings are described as follows:
(5). In the dialog box "modify center point": Optional, after checking "modify center point", set the X, Y, Z coordinate values of the model center point.
(6). In the dialog box "Rebuild LODs": After checking "Rebuild LOD", set the rebuild index.The reconstruction index is used to set the number of merges, the default value is 1, and the system will rebuild a block file by 4^n blocks. After checking "Boundary Fusion", the boundary effect between the oblique photographic data tiles can be weakened, mainly for oblique photographic data with a small amount of intersecting tile boundaries.
(7). "Rebuild Type": Rebuild Type: Rebuild All Levels is a reconstruction level for the original OSGB oblique photographic model. Rebuilding only the top layer is to re-designate the finer layer data as the new root node for the S3MB data whose top layer effect is not good after reconstruction, and then rebuild the top layer.
(8). In the dialog box "Model singularization": Optional, after checking "Model singulation",set the data source where the vector plane superimposed on the model is located , Data set and target field. For more information, please refer to "Compression and Singleization" in SuperMap iDesktop 11i Help.chm.
(9). There are currently two ways to set the projection:
(10). After setting the above parameters, click the "OK" button and wait for the oblique builder to be completed.
The operation result of "Generate S3M data" is shown on the right side of the figure below. This step generates a target folder consistent with the original file structure; open any model folder respectively, and you can see the OSGB format model and the S3M format model one by one The corresponding relationship is as shown in the figure below.
Figure 8 The result of generating S3M data (picture right) and the corresponding relationship of the model
In the previous step, the configuration file of the oblique photographic model was generated, and then the oblique photographic model was published to a local or remote server in the form of a three-dimensional service to realize Web network resource sharing.
(1). In the "Workspace Manager" of the SuperMap iDesktop desktop product, under "Scene", right-click "New spherical scene".
Figure 9 New spherical scene
(2). Select "Common Layer" under "Layer Manager", and right-click "Add OSGB cache layer ", select the *.scp configuration file.
Figure 10 Add OSGB cache to the scene
(3). After loading the data, directly save the scene and workspace.
(4). After saving the workspace, in the %SuperMap iServer_HOME%/bin directory, click the "startup.bat" batch file to start the SuperMap iServer service.
(5). Open the browser, enter http://localhost:8090/iserver/manager in the address bar and enter "Service Management" page, click the "Quickly publish a service or a group of services" button under "Home".
Figure 11 Quickly publish one or a group of services
(6). The "Quick Publish Service-Select Data Source" dialog box pops up, select "Data Source" "Workspace", click "Next".
Figure 12 Data source selection workspace
(7). The "Quick Publish Service-Configuration Data" dialog box pops up, click "Remote Browse" button to select the previously saved workspace, click "Next".
Figure 13 Select workspace configuration data
(8). "Quick Publish Service-Select the type of service to publish" dialog box pops up, check "REST -3D Service", click "Next".
Figure 14 Check the 3D service
At this point, the service publishing has been configured. Follow the prompts to click the "Finish" and "Close" buttons.
After the service is published, the 3D service will be displayed in the service list, as shown in the figure below.
Figure 15 shows newly released services under 3D service
After publishing the 3D service, you can browse the terrain data through the WebGL client in this step.
Reminder: Please store the WebGL product package in the %SuperMap iServer_HOME%/webapps directory before operation.
(1) Obtain the 3D data url address, click to obtain in the following order:
Figure 16 Copy URL address
(2) Enter the storage path of WebGL product package (%SuperMap iServer_HOME%/webapps), under the "examples" folder, open "S3MTiles.html "For example, modify the content as shown in the figure below.
Figure 17 Modify some parameters of the example
(3) Open the "S3MTiles.html" webpage in localhost, and the browser input address is: http://localhost:8090/%WebGL product package%/examples/ S3MTiles.html
After opening the webpage, the camera flies to the position of the tilted photography model, the display effect is as follows:
Figure 18 WebGL browsing oblique photogrammetric model effect