The oblique photogrammtric model is often referred to as a "one skin" model. In order to exert the application value of the oblique photogrammetric model, the oblique photogrammetric model must be singulated. Hypergraph 3D takes the lead in singularizing the oblique photogrammetric model by means of the model superimposition vector region. This method is simple in operation, and stores various attribute information of the business in the attribute table of the vector region data to realize singulation. Ability to perform attribute query on oblique photogrammetric model.
At present, SuperMap iClient3D for WebGL provides a number of demonstration programs, and the "oblique photogrammetric attribute query" example demonstrates the effect of oblique photogrammetric model to achieve singular selection and attribute query.
This document will guide users how to use their oblique photogrammetric model to implement attribute query on the WebGL client according to the effect of the example. The main flow of this operation is as follows:
The necessary data includes:
For the demonstration, the author made a modified vector region data whose properties are structured as shown below, where the "Name/Name" and "Des/Description" fields Is the business field of this example that will be used for attribute queries.
Select the dataset in the Workspace Manager and open its property sheet. Click Property Structure in the Edit tab of the ribbon's Property Sheet tab to view and modify it. The attribute structure of the data, and add attribute fields to the vector data according to business requirements, and improve the attribute values.
In order to be able to display images when the model is selected as in the example, optionally prepare the image resource (*.jpg) and store the image resource in the "%WebGLProducts%\examples\images" folder. under. The name of the image is the same as the value of the Name/Name field of the vector polygon property sheet.
Through the singularization of the model, it is equivalent to the vector plane data matching the position of the "bundled" position of the oblique photogrammetric model.
(1). Open the file-type data source (*.udb) that holds the vector-side data in the Workspace Manager and Data Sources;
(2) Click the Model Singulation button on the "OSGB" tab of the SuperMap iDesktop desktop product, as shown below.
(3). The model singulation dialog box is displayed, as shown in the following figure.
Fill in the oblique photogrammetric model configuration file (*.scp) storage path in the oblique photogrammetric data dialog, click the icon button on the right to select the file path, or enter it directly in the text box.
(5). In the Association Settings of the dialog box, you can set the data source, dataset and associated fields where the vector data is located, as follows:
(6). Fill in the singulated target file storage path in the Target Path of the dialog box, click the icon button on the right to select the file path, or enter it directly in the text box.
(7). After setting the above parameters, click the "OK" button and wait for the processing to complete.
After the operation is completed, a *.scp file and multiple folders with models are generated in the target path. The directory structure and the number and name of the files are the same as the original files. To verify the singulation effect, add the singularized model to the spherical scene in SuperMap iDesktop by adding the OSGB Cache Layer. Locate the layer and click on a house model in the scene. The model is highlighted, and it can be seen that the singulation process is successful.
In order to improve the efficiency of WebGL client parsing and browsing, in this step, the OSG format tilt photography model is converted into S3M format 3D slice buffer, and the SuperMap iDesktop desktop product is used to provide the "Generate S3M Data" function button.
(1).Open SuperMap iDesktop and click Generate S3M Data in the "Scene Photography" tab "WebGL Client" group. >" button.
(2). The "OSGB->S3M" dialog box pops up, as shown below.
(3). Fill in the path of the scp configuration file in the Oblique Photogrammetric Data dialog box.
(4). Fill in the path of the converted target file in the Destination Path of the dialog box.
(5). There are three options for Common PC device, Android series device, IOS series device in the Compression type of the dialog box. Please use according to the usage. Terminal selection.
(6). After setting the above parameters, click the OK button and wait for the conversion to complete.
The result of the "Generate S3M Data" operation is as shown on the right side of the figure. This step generates a target folder that is consistent with the original file structure. Open any model folder separately and you can see the OSGB format model and the S3M format model. Correspondence relationship, as shown below.
It is worth noting that after generating the 3D slice buffer in S3M format, the amount of model data is greatly reduced.
In this step, the oblique photogrammetric model of the S3M format is distributed to a local or remote server in the form of a three-dimensional service to realize web network resource sharing, and a data service is also released for attribute query.
(1). In the “Workspace Manager” of SuperMap iDesktop desktop product, right click “Open File Datasource” in “Data Source” to open the datasource with Vector Region Data ( *.udb);
(2). Create a new spherical scene, select "Normal Layer" under "Layer Manager", right click "Add OSGB Cache" Layer, select the *.scp configuration file generated by the "Generate S3M Data" operation.
(3). After loading the data, locate the layer and set the appropriate viewing angle to save the scene and workspace. After saving, you must close the current workspace, which may cause subsequent service publishing to fail.
(4). Start the SuperMap iServer service: In the %SuperMap iServer_HOME%/bin directory, click the "startup.bat" batch file to start the service.
(5). Open your browser and enter http://localhost:8090/iserver/manager in the address bar to enter "< Strong>Service Management page, click Quickly publish one or a group of services button under Homepage.
(6). Pop up the "Quick Publishing Service-Select Published Datasources" dialog and select "Datasource" "Workspace", click "Next".
(7). Pop up the Quick Publishing Service-Configure Data dialog box and click Remote Browsing > "The button selects the saved workspace as described above and clicks "Next".
(8). Pop up the "Quick Publishing Service - Select Published Service Type" dialog box, check "REST-Data Service" and "REST" - 3D service ", click "Next".
At this point, the service release has been configured, click the "Finish" and "Close" buttons as prompted.
After the service is released, the 3D service will be displayed in the service list, as shown in the following figure.
After the 3D service is released, the terrain data can be viewed through the WebGL client in this step.
Tip: Store the WebGL product package in the %SuperMap iServer_HOME%/webapps directory before proceeding.
(1) Obtain the 3D service url address and click to get it in the following order:
(2) Enter the WebGL product package storage path (%SuperMap iServer_HOME%/webapps), under the "examples" folder, open the text S3MTiles.html "Example, modify the content of the following figure.
(3) Obtain the data service url address and click to get it in the following order:
(4) In the "S3MTiles.html" example, set the property query parameters, that is, modify the layer.setQueryParameter() section, as shown below:
(5) After the example is modified, open the S3MTiles.html page in localhost mode. The browser input address is: http://localhost:8090/%WebGL package%/examples/S3MTiles. Html
After opening the webpage, the camera flies to the position where the oblique photography model is located, clicks on any model, the model is highlighted and the pop-up window displays the properties. The effect is as follows:
Throughout the operational process, the following key points are for reference and understanding: