Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use sfs or sgs's model layer query service

Shulou Source: shulou.com Published: 2022-06-02 00:18:56 09月12日 Update

This article shows you how to use sfs or sgs model layer query service, the content is concise and easy to understand, can definitely make your eyes bright, through the detailed introduction of this article, I hope you can learn something.

Connect the 3dml model layer published by sfs or sgs in TE, and select each model will pop up the corresponding attribute information, or right-click on the layer to query the attribute information of the model layer.

Individual model attribute information:

List of model attribute information:

In fact, in the process of data release, these data query services can be called with code to query, as long as the form of the query meets the data service requirements of sfs or sgs, the query results can be returned.

For example, a single model attribute information query, through the network grab packet, found that the query is sent to the server through post, a string in xml format, and then returns a string of attribute information in xml format

The specific query network address is: http://localhost/SG/streamer.ashx

Query method: POST

Incoming data: _ _ fid__21

TypeName can be found in the publishing layer of sfs or sgs, as shown below:

_ _ fid__ and object label, which can be obtained through secondary development. For more information, please see API.

The returned data:

106.712475632682,26.5755894852759 106.712756127271,26.5760308712863 106.713418738278,26.5756940678533 106.713138241961,26.5752526831408 106.712475632682,26.5755894852759MODELSPRINGMALLSPRINGMALL.xpl2000000101000

This data is the same as using sqlite to open the 3dml tool. For more information, please see the article "description of 3dml data format". The returned data is the same as that in the chart below:

The request address, request content and return content of the service are determined. In C # development, WebClient is used. In js development, jquery or other ajax methods can be used for data request and return.

The above is how to use the model layer query service of sfs or sgs. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Tags: Query data model service information attribute content method format development query service single address character string skill article knowledge network conciseness Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info macOS MySQL Linux Apple