Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to implement Arcgis Server Publishing data Service Reading

Shulou Source: shulou.com Published: 2022-06-01 06:48:27 09月26日 Update

This article will explain in detail how to realize the reading of Arcgis Server publishing data service. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

For reference, study and use only

QGIS connects Arcgis Server to publish data, and QGIS acquires data and styles by calling Arcgis Server's data service interface. What are these specific data interfaces, which are briefly introduced in the following article. In the Arcgis Server data interface, click on the view preview window of a layer to open a web version of the data browser with an address similar to this:

Preview of the opening position and effect of the http://localhost:6080/arcgis/rest/services/SampleWorldCities/MapServer?f=jsapi view:

If you change the parameter in the above address to f=json, you will return a json version of the basic data information. Includes some information such as layers, slices, and resolution:

The above data contains three vector layers. According to the id of the data, the latter part of the above url is replaced with the following form to obtain the data of a single layer:

The data result returned by MapServer/0/query?f=json&where=1%3D1&returnIdsOnly=true is mainly used to obtain the id information in the data:

According to the objectIds obtained above, change the back of the service request address to the following form:

MapServer/0/query?f=json&&objectIds=1,2,3

Objectids is the ids returned for the last service request, and you can write more than one. Here, only the first three id are selected for testing, and the returned data results are as follows:

It contains the coordinates of the data, attributes and other details.

Through the above methods and steps, we can get all the data information by parsing the code request.

This is the end of the article on "how to achieve Arcgis Server Publishing data Service Reading". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Tags: Data service information address form article interface article more result view good practical for reference only three code location content resolution single Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Apple Shulou Information MariaDB Microsoft